From 1699d702cbfcf6f34bd14327b644738f996feb3b Mon Sep 17 00:00:00 2001 From: Ian Lewis Date: Mon, 10 May 2021 17:27:08 -0700 Subject: Fix issue reviver Fixes invocation of the Github issue reviver by including the required 'path' command line option. Also updates the issue reviver to add a 'revived' label to revived issues. Issues with a 'revived' label will no longer be marked as stale. PiperOrigin-RevId: 373046772 --- tools/github/reviver/github.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools') diff --git a/tools/github/reviver/github.go b/tools/github/reviver/github.go index c4b624f2a..d9773500e 100644 --- a/tools/github/reviver/github.go +++ b/tools/github/reviver/github.go @@ -110,6 +110,11 @@ func (b *GitHubBugger) Activate(todo *Todo) (bool, error) { return true, fmt.Errorf("failed to reactivate issue %d: %v", id, err) } + _, _, err = b.client.Issues.AddLabelsToIssue(ctx, b.owner, b.repo, id, []string{"revived"}) + if err != nil { + return true, fmt.Errorf("failed to set label on issue %d: %v", id, err) + } + cmt := &github.IssueComment{ Body: github.String(comment.String()), Reactions: &github.Reactions{Confused: github.Int(1)}, -- cgit v1.2.3