Skip to content

Commit

Permalink
make Predicate in repo_search a pointer like other checks (#406)
Browse files Browse the repository at this point in the history
* make Predicate in repo_search a pointer like other checks

* add changie log
  • Loading branch information
davidbloss authored May 17, 2024
1 parent 36eb1e9 commit 844672b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changes/unreleased/Bugfix-20240517-155327.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Bugfix
body: make FileContentsPredicate a pointer in RepositorySearchCheckFragment to allow unsetting
time: 2024-05-17T15:53:27.468499-05:00
4 changes: 2 additions & 2 deletions check_repo_search.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package opslevel

type RepositorySearchCheckFragment struct {
FileExtensions []string `graphql:"fileExtensions"`
FileContentsPredicate Predicate `graphql:"fileContentsPredicate"`
FileExtensions []string `graphql:"fileExtensions"`
FileContentsPredicate *Predicate `graphql:"fileContentsPredicate"`
}

func (client *Client) CreateCheckRepositorySearch(input CheckRepositorySearchCreateInput) (*Check, error) {
Expand Down

0 comments on commit 844672b

Please sign in to comment.