@@ -33,7 +33,7 @@ const (
33
33
type updateClient interface {
34
34
UpdatePullRequest (org , repo string , number int , title , body * string , open * bool , branch * string , canModify * bool ) error
35
35
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 )
37
37
}
38
38
39
39
type ensureClient interface {
@@ -74,7 +74,7 @@ func updatePRWithQueryTokens(org, repo, title, body, queryTokensString string, g
74
74
return nil , fmt .Errorf ("bot name: %w" , err )
75
75
}
76
76
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 )
78
78
if err != nil {
79
79
return nil , fmt .Errorf ("find issues: %w" , err )
80
80
} else if len (issues ) == 0 {
0 commit comments