-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[skip-ci] Lock closed issues and PRs #19691
[skip-ci] Lock closed issues and PRs #19691
Conversation
Testing this workflow in https://github.com/containers/automation_sandbox:
Investigating fix... |
7c90268
to
b36c62c
Compare
...fixed by adding permissions. Manually tested the fix and now the workflow now behaves as intended. Edit: Clarify link |
@containers/podman-maintainers PTAL, this should be ready to go. It will need to be manually merged. I tested this as best as I could (see above), but there could be hiccups. I intend to open followup PRs as needed once we see what happens. |
I'm confused. In your test run (I think that's your test run?) I see |
Thanks for checking closely. I didn't look at the activity dates, since all/most of the PRs in that repo. are really really old. I'll go look and make sure they were really over 90-days old... |
The ones I see are |
...yeah, the most recent PR did not get the label. I think it's okay, there were no issues/PRs older than 1825 to close. |
In case it's not clear to others, this is the test run where I changed it to 90-days. It just happened there was only one closed PR newer than 90 days. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to drop a message explaining when an issue/PR gets locked.
Something down the lines of "Closed issues/PRs are getting locked after 90 days. Please open a new issue with the requested issue template if needed" .
Email filters can help in marking the bot message as read, so we don't get spammed by it. The reasoning for such a message is that I think most users are unaware that we prefer/need fresh issues rather than discussing on old ones. Some guidance may be required.
That is why we apply the label The locking and applying label part does not create a new notification. Maintainers may create filters for such messages but it will still generate noise for the other participants on the issue. @cevich I think you should also update CONTRIBUTING.md to mention this behaviour. |
Sorry, that went through the cracks.
I see that. It won't work using the GitHub web UI. OK, then please ignore my comment; I missed my chance. |
b36c62c
to
f3e3c0b
Compare
Force-push: Updated CONTRIBUTING.md as requested. |
Ref: containers#19012 Signed-off-by: Chris Evich <[email protected]>
This commit limits the blast-radius should the workflow fail catastrophically. It also instruments the workflow with a job-level test-failure to trigger a notification mail. This commit should be reverted once the workflow is deemed functional. Signed-off-by: Chris Evich <[email protected]>
f3e3c0b
to
f0e8e79
Compare
Force-push: Updated CONTRIBUTING.md again. |
LGTM, very welcome change |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cevich, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Post-merge note: I manually triggered a run of this action to test it. |
Result: The latest opened issue (#1313), closed on Aug 22, 2018 was correctly locked. Only 49 other issues were touched (limit built-in to the action itself). Then the workflow test-failed as designed, and the podman-monitor list received the test-failure notice. |
Looks good. The issue list shows suitable old IDs, and all of them are closed or merged: $ jq '.[].issue_number' < foo.js | while read i;do printf "%6d %s\n" $i "$(gh issue view $i|grep state:)";done
1313 state: CLOSED
1314 state: CLOSED
.... |
Ref: containers/podman#19012 and containers/podman#19691 and containers/podman#19700 Signed-off-by: Chris Evich <[email protected]>
Ref: containers/podman#19012 and containers/podman#19691 and containers/podman#19700 Signed-off-by: Chris Evich <[email protected]>
Lock discussions on closed PRs and Issues after 90-days of inactivity. Ref: containers/podman#19012 and containers/podman#19691 and containers/podman#19700 Signed-off-by: Chris Evich <[email protected]>
Lock discussions on closed PRs and Issues after 90-days of inactivity. Ref: containers/podman#19012 and containers/podman#19691 and containers/podman#19700 Signed-off-by: Chris Evich <[email protected]>
Thanks! |
Looks like it worked; a handful of PRs/issues are now starting to get locked. |
Lock discussions on closed PRs and Issues after 90-days of inactivity. Ref: containers/podman#19012 and containers/podman#19691 and containers/podman#19700 Signed-off-by: Chris Evich <[email protected]>
Lock discussions on closed PRs and Issues after 90-days of inactivity. Ref: containers/podman#19012 and containers/podman#19691 and containers/podman#19700 Signed-off-by: Chris Evich <[email protected]>
Lock discussions on closed PRs and Issues after 90-days of inactivity. Ref: containers/podman#19012 and containers/podman#19691 and containers/podman#19700 Signed-off-by: Chris Evich <[email protected]>
Lock closed issues and PRs after a reasonable amount of time to prevent spamming engineers with irreverent notifications. Should the workflow fail for some reason, notify the podman-monitor mailing list.
N/B: This PR includes a commit intended to help confirm this workflow functions w/o affecting potentially thousands of issues/PRs. It's intended to be reverted by a future PR.
Does this PR introduce a user-facing change?