fix(forge): empty label lists every open issue (archie #1770)
publish / publish (push) Successful in 1m21s

This commit is contained in:
sam committed 2026-11-03 08:12:06 +11:00
1 parent 6f28cf9013
commit 5864e725e4
2 files changed
+7 -2

No files matched your search

+3 -1
View File
@@ -144,9 +144,11 @@ func (c *GitHubClient) IssuesWithLabel(ctx context.Context, owner, repo, label s
var out []forge.Issue
opts := &github.IssueListByRepoOptions{
State: "open",
Labels: []string{label},
ListOptions: github.ListOptions{PerPage: 50},
}
if label != "" {
opts.Labels = []string{label}
}
for {
issues, resp, err := c.gh.Issues.ListByRepo(ctx, owner, repo, opts)
if err != nil {