Skip to content

Commit

Permalink
added In to search to restrict to title match
Browse files Browse the repository at this point in the history
  • Loading branch information
skahn007gl committed Sep 15, 2023
1 parent 88201c0 commit 6090dea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions v2/pkg/reporting/trackers/gitlab/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ func (i *Integration) CreateIssue(event *output.ResultEvent) error {
customLabels := gitlab.Labels(labels)
assigneeIDs := []int{i.userID}
if i.options.DuplicateIssueCheck {
searchIn := "title"
searchState := "all"
issues, _, err := i.client.Issues.ListProjectIssues(i.options.ProjectName, &gitlab.ListProjectIssuesOptions{
In: &searchIn,
State: &searchState,
Search: &summary,
})
Expand Down

0 comments on commit 6090dea

Please sign in to comment.