fix(issuerpc): list only issues opened by users with write access (#1830)
deploy / gate (push) Canceled after 0s
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s
deploy / plan (push) Canceled after 7s

Adds Issue.Author to the forge contract; the daemon drops issues from
authors without write access and fails the listing closed when the forge
cannot answer.
This commit is contained in:
sam committed 2026-11-09 12:43:44 +11:00
1 parent 2ae471398b
commit e3dc7fc2e9
6 files changed
+108 -3

No files matched your search

+1 -1
View File
@@ -163,7 +163,7 @@ func prRef(owner, repo string, number int) *forgev1.PullRequestRef {
func issues(in []*forgev1.Issue) []forge.Issue {
out := make([]forge.Issue, 0, len(in))
for _, i := range in {
out = append(out, forge.Issue{Number: int(i.GetNumber()), Title: i.GetTitle(), Body: i.GetBody(), Labels: i.GetLabels()})
out = append(out, forge.Issue{Number: int(i.GetNumber()), Title: i.GetTitle(), Body: i.GetBody(), Labels: i.GetLabels(), Author: i.GetAuthor()})
}
return out
}