fix(issuerpc): list only issues opened by users with write access (#1830)
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:
6 files changed
+108
-3
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user