mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
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
This commit is contained in:
@@ -11,7 +11,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
if: github.repository == 'google/gvisor'
|
||||
- run: make run TARGETS="//tools/github" ARGS="revive"
|
||||
- run: make run TARGETS="//tools/github" ARGS="-path=. revive"
|
||||
if: github.repository == 'google/gvisor'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -14,7 +14,7 @@ jobs:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
stale-issue-label: 'stale'
|
||||
stale-pr-label: 'stale'
|
||||
exempt-issue-labels: 'exported, type: bug, type: cleanup, type: enhancement, type: process, type: proposal, type: question'
|
||||
exempt-issue-labels: 'revived, exported, type: bug, type: cleanup, type: enhancement, type: process, type: proposal, type: question'
|
||||
exempt-pr-labels: 'ready to pull, exported'
|
||||
stale-issue-message: 'This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 30 days.'
|
||||
stale-pr-message: 'This pull request is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 30 days.'
|
||||
|
||||
@@ -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)},
|
||||
|
||||
Reference in New Issue
Block a user