Skip to content

Commit

Permalink
update Predicate fields in AlertSource, RepoGrep, RepoSearch fragments (
Browse files Browse the repository at this point in the history
#407)

* update Predicate fields in AlertSource, RepoGrep, RepoSearch fragments

* add changie log
  • Loading branch information
davidbloss authored May 28, 2024
1 parent 844672b commit 88a11c0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .changes/unreleased/Refactor-20240528-111118.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Refactor
body: BREAKING CHANGE - pointers of Predicate fields updated for AlertSourceUsageCheckFragment, RepositoryGrepCheckFragment, and RepositorySearchCheckFragment
time: 2024-05-28T11:11:18.997688-05:00
2 changes: 1 addition & 1 deletion check_alert_source_usage.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package opslevel

type AlertSourceUsageCheckFragment struct {
AlertSourceNamePredicate Predicate `graphql:"alertSourceNamePredicate"`
AlertSourceNamePredicate *Predicate `graphql:"alertSourceNamePredicate"`
AlertSourceType AlertSourceTypeEnum `graphql:"alertSourceType"`
}

Expand Down
6 changes: 3 additions & 3 deletions check_repo_grep.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package opslevel

type RepositoryGrepCheckFragment struct {
DirectorySearch bool `graphql:"directorySearch"`
Filepaths []string `graphql:"filePaths"`
FileContentsPredicate *Predicate `graphql:"fileContentsPredicate"`
DirectorySearch bool `graphql:"directorySearch"`
Filepaths []string `graphql:"filePaths"`
FileContentsPredicate Predicate `graphql:"fileContentsPredicate"`
}

func (client *Client) CreateCheckRepositoryGrep(input CheckRepositoryGrepCreateInput) (*Check, error) {
Expand Down
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 88a11c0

Please sign in to comment.