From 4532619603d40c2c1be2531aad307614eed7d847 Mon Sep 17 00:00:00 2001 From: Sarah Zinger Date: Wed, 21 Sep 2022 10:51:45 -0400 Subject: [PATCH] Remove label action on prs (#194) * Remove label action on prs * Use os instead of ioutil --- .github/workflows/issue_commands.yml | 3 --- pkg/timestream/mocks.go | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/issue_commands.yml b/.github/workflows/issue_commands.yml index 58cd5ec3..57a05f67 100644 --- a/.github/workflows/issue_commands.yml +++ b/.github/workflows/issue_commands.yml @@ -2,9 +2,6 @@ name: Run commands when issues are labeled on: issues: types: [labeled] - pull_request: - types: [labeled] - branches-ignore: "dependabot/**" jobs: main: runs-on: ubuntu-latest diff --git a/pkg/timestream/mocks.go b/pkg/timestream/mocks.go index b92c6d47..f2b570e2 100644 --- a/pkg/timestream/mocks.go +++ b/pkg/timestream/mocks.go @@ -4,7 +4,7 @@ import ( "context" "encoding/json" "fmt" - "io/ioutil" + "os" "github.com/aws/aws-sdk-go/service/timestreamquery" ) @@ -16,7 +16,7 @@ type MockClient struct { } func (c *MockClient) runQuery(ctx context.Context, input *timestreamquery.QueryInput) (*timestreamquery.QueryOutput, error) { - bs, err := ioutil.ReadFile("./testdata/" + c.testFileNames[c.index] + ".json") + bs, err := os.ReadFile("./testdata/" + c.testFileNames[c.index] + ".json") if err != nil { return nil, err }