Skip to content

Commit 03e5768

Browse files
committed
issue #33829: allow pr-creator to work with GH app auth
1 parent 8120bc9 commit 03e5768

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

robots/pr-creator/updater/updater.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const (
3333
type updateClient interface {
3434
UpdatePullRequest(org, repo string, number int, title, body *string, open *bool, branch *string, canModify *bool) error
3535
BotUser() (*github.UserData, error)
36-
FindIssues(query, sort string, asc bool) ([]github.Issue, error)
36+
FindIssuesWithOrg(org, query, sort string, asc bool) ([]github.Issue, error)
3737
}
3838

3939
type ensureClient interface {
@@ -74,7 +74,7 @@ func updatePRWithQueryTokens(org, repo, title, body, queryTokensString string, g
7474
return nil, fmt.Errorf("bot name: %w", err)
7575
}
7676

77-
issues, err := gc.FindIssues(fmt.Sprintf("is:open is:pr archived:false repo:%s/%s author:%s %s", org, repo, me.Login, queryTokensString), "updated", false)
77+
issues, err := gc.FindIssuesWithOrg(org, fmt.Sprintf("is:open is:pr archived:false repo:%s/%s author:%s %s", org, repo, me.Login, queryTokensString), "updated", false)
7878
if err != nil {
7979
return nil, fmt.Errorf("find issues: %w", err)
8080
} else if len(issues) == 0 {

0 commit comments

Comments
 (0)