Skip to content

Commit

Permalink
Remove label action on prs (#194)
Browse files Browse the repository at this point in the history
* Remove label action on prs

* Use os instead of ioutil
  • Loading branch information
sarahzinger authored Sep 21, 2022
1 parent 5b3f07e commit 4532619
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/issue_commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pkg/timestream/mocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"os"

"github.com/aws/aws-sdk-go/service/timestreamquery"
)
Expand All @@ -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
}
Expand Down

0 comments on commit 4532619

Please sign in to comment.