| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Hmz, which subsystem this belongs to was obvious to me.. Looking at the bot's label choice, I should have used meta? |
Sorry, something went wrong.
|
Example of this in practise can be seen in phillipj/stale-action-with-manual-labelling. Only difference being days since being labelled stalled is set to 1 instead of 30. |
Sorry, something went wrong.
|
Should this be leaving a message when closing? |
Sorry, something went wrong.
build is fine, the labels applied by the bot doesn't necessarily reflect the actual subsystem (we might want to change the bot to label .github/workflows with build though). |
Sorry, something went wrong.
I like the idea and is luckily configurable with close-issue-message | close-pr-message. Some kind of explanation is probably better than nothing and opening up for questions if any is good etiquette, right? Closing this because it has stalled. Feel free to ping the collaborator who labelled it stalled if you have any questions. Does that sound good to you @mscdex? Or du you have a more eloquent alternative? |
Sorry, something went wrong.
|
Suggestion for the comments: Closing this because it has stalled. Feel free to reopen if this issue/PR is still relevant, or to ping the collaborator who labelled it stalled if you have any questions. |
Sorry, something went wrong.
|
IMO it would be also cool to have an automatic comment that it was marked stalled and will be closed in 30 days as adding a label AFAIK doesn't trigger a GitHub notification and people will only know about it when the issue/PR is already closed. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM after adding close-issue-message/close-pr-message
Sorry, something went wrong.
|
Also ping @Trott for closing message suggestions 😄. |
Sorry, something went wrong.
|
@lundibundi it would be a good idea, but it wouldn't work for pull requests (because the vast majority comes from forks, which means the action that runs when a label is added to the PR won't have write access or access to secrets) and therefore it would be inconsistent between issues and PRs. We'll need to trust collaborators to leave a comment when labeling something as stalled |
Sorry, something went wrong.
|
@phillipj I don't have any particular preference on the wording but I think there should be some kind of explanation provided so that everyone understands why the close happened. Doing so would keep things in line with how manual closes have occurred on past issues/PRs. |
Sorry, something went wrong.
|
@mmarchini That's unfortunate, though I think it would be better to at least have the message in the issues (and IMO it's more important for issues than it is for PRs) than to not have it in neither. |
Sorry, something went wrong.
|
@lundibundi great suggestion for a follow up if we see this auto closing behaviour confuses contributors. Although a bit tricky, it might be feasible.. Sounds a bit like what I've noticed the remove-stale-when-updated option activates; it goes through all stalled issues/PRs and removes the label if any comments are posted. As far as I've understood, it circumvents what @mmarchini is raising by running on a cron schedule rather than reacting to action events like push | labeled etc. Feels like something similar could be done to achieve what you're suggesting. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
Let me know if there's anything expected of me before this can land. I don't have any upcoming changes in mind.. |
Sorry, something went wrong.
|
Was about to land it and create the stalled label. Turns out we already have that label and we have 44 issues and PRs with it: stalled Issues and PRs that are stalled. . Do we want the 30 days to start counting once we land this PR, or when the label was originally added? If the former, we need to remove and re-add the label before landing this. |
Sorry, something went wrong.
|
There's a new GitHub Actions event which can be used on Pull Requests and has proper write access: pull_request_target. @phillipj can you add another Action which will automatically leave a comment when the label is added? Something like:
To run the action only when specific labels are added, you can do: on:
issue:
types: [labeled]
pull_request_target:
types: [labeled]
jobs:
staleComment:
runs-on: ubuntu-latest
if: github.event.label.name == 'stalled' |
Sorry, something went wrong.
There was a problem hiding this comment.
This won't work for existing PRs, but maybe that's ok.
Sorry, something went wrong.
There was a problem hiding this comment.
I fumbled around quite a bit myself before discovering that as well... You know ways to circumvent that by any chance?
Sorry, something went wrong.
There was a problem hiding this comment.
Not yet :/
Sorry, something went wrong.
|
As far as I'm concerned, this is the only unanswered question from @mmarchini:
Who can answer this? Is it a TSC concern? |
Sorry, something went wrong.
|
@nodejs/tsc question: this PR will auto-close issues and PRs 30 days after the staled label is added to them (the label will be added only manually, by collaborators and triage team). We have quite a few issues and PRs with the label already, do we want to close those 30 days from when the label was added (which might mean closing them right after this PR lands), or do we want those to be closed 30 days after this PR lands? |
Sorry, something went wrong.
|
If it's the second option, will there be an automatic message posted to the issues which have the label? |
Sorry, something went wrong.
Yes for Issues, no for PRs (because we're using the pull_request_target event, which needs to be present in the PR git log for it to run, so it will only run on rebased PRs or new PRs. We can't use pull_request event because it doesn't have permission to comment). |
Sorry, something went wrong.
Isn't that a simple fix that could be made by a repo admin? |
Sorry, something went wrong.
|
No, that's a built-in limitation with the pull_request event |
Sorry, something went wrong.
|
I mildly favor removing and re-adding the label so that the 30 days starts after the PR lands. But I also believe that people doing the work get to make the decisions when appropriate, and I think it's appropriate here, so if you want to auto-close those right away, that's fine too. People will get notifications and can always re-open them and/or remove the label and/or comment. |
Sorry, something went wrong.
Commit Queue failed- Loading data for nodejs/node/pull/34555 ✔ Done loading data for nodejs/node/pull/34555 ----------------------------------- PR info ------------------------------------ Title build: close stalled issues and PRs with GitHub Action (#34555) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch phillipj:close-stalled-github-action -> nodejs:master Labels meta Commits 4 - build: close stalled issues and PRs with github action - fixup! build: close stalled issues and PRs with github action - build: comment about auto close when stalled via with github action - fixup! build: comment about auto close when stalled via with github a… Committers 1 - Phillip Johnsen PR-URL: https://github.com/nodejs/node/pull/34555 Reviewed-By: James M Snell Reviewed-By: Mary Marchini Reviewed-By: Denys Otrishko Reviewed-By: Gus Caplan Reviewed-By: Zeyu Yang Reviewed-By: Michael Dawson Reviewed-By: Shelley Vohr ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/34555 Reviewed-By: James M Snell Reviewed-By: Mary Marchini Reviewed-By: Denys Otrishko Reviewed-By: Gus Caplan Reviewed-By: Zeyu Yang Reviewed-By: Michael Dawson Reviewed-By: Shelley Vohr -------------------------------------------------------------------------------- ✔ Last GitHub Actions successful ℹ Last Full PR CI on 2020-09-02T22:35:12Z: https://ci.nodejs.org/job/node-test-pull-request/33025/ - Querying data for job/node-test-pull-request/33025/ ✔ Build data downloaded - Querying failures of job/node-test-commit/40579/ ✔ Data downloaded ✖ 2 failure(s) on the last Jenkins CI run ℹ This PR was created on Wed, 29 Jul 2020 18:52:59 GMT ✔ Approvals: 7 ✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/34555#pullrequestreview-457802366 ✔ - Mary Marchini (@mmarchini) (TSC): https://github.com/nodejs/node/pull/34555#pullrequestreview-457930033 ✔ - Denys Otrishko (@lundibundi): https://github.com/nodejs/node/pull/34555#pullrequestreview-458181195 ✔ - Gus Caplan (@devsnek): https://github.com/nodejs/node/pull/34555#pullrequestreview-458544936 ✔ - Zeyu Yang (@himself65): https://github.com/nodejs/node/pull/34555#pullrequestreview-458629607 ✔ - Michael Dawson (@mhdawson) (TSC): https://github.com/nodejs/node/pull/34555#pullrequestreview-458746991 ✔ - Shelley Vohr (@codebytere) (TSC): https://github.com/nodejs/node/pull/34555#pullrequestreview-481308862 -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncu |
Sorry, something went wrong.
|
i'll just go ahead and will land it manually 🙃 |
Sorry, something went wrong.
This introduces a GitHub Action workflow to close issues and PRs which has been labelled `stalled` 30 days ago (or more). `stale` labelling and unlabelling of issues and PRs are still done manually by collaborators. Refs nodejs/github-bot#261 PR-URL: #34555 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Mary Marchini <oss@mmarchini.me> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
This introduces a GitHub Action workflow to close issues and PRs which has been labelled `stalled` 30 days ago (or more). `stale` labelling and unlabelling of issues and PRs are still done manually by collaborators. Refs nodejs/github-bot#261 PR-URL: #34555 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Mary Marchini <oss@mmarchini.me> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
As part of automatically closing issues and PRs 30 days after they got labelled with `stalled`, these changes adds a GitHub Action workflow posting a comment information about what will happen in 30 days upon being labelled. PR-URL: #34555 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Mary Marchini <oss@mmarchini.me> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
This introduces a GitHub Action workflow to close issues and PRs which has been labelled `stalled` 30 days ago (or more). `stale` labelling and unlabelling of issues and PRs are still done manually by collaborators. Refs nodejs/github-bot#261 PR-URL: #34555 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Mary Marchini <oss@mmarchini.me> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
As part of automatically closing issues and PRs 30 days after they got labelled with `stalled`, these changes adds a GitHub Action workflow posting a comment information about what will happen in 30 days upon being labelled. PR-URL: #34555 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Mary Marchini <oss@mmarchini.me> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
This introduces a GitHub Action workflow to close issues and PRs which has been labelled `stalled` 30 days ago (or more). `stale` labelling and unlabelling of issues and PRs are still done manually by collaborators. Refs nodejs/github-bot#261 PR-URL: #34555 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Mary Marchini <oss@mmarchini.me> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
As part of automatically closing issues and PRs 30 days after they got labelled with `stalled`, these changes adds a GitHub Action workflow posting a comment information about what will happen in 30 days upon being labelled. PR-URL: #34555 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Mary Marchini <oss@mmarchini.me> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
This introduces a GitHub Action workflow to close issues and PRs which has been labelled `stalled` 30 days ago (or more). `stale` labelling and unlabelling of issues and PRs are still done manually by collaborators. Refs nodejs/github-bot#261 PR-URL: nodejs#34555 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Mary Marchini <oss@mmarchini.me> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
As part of automatically closing issues and PRs 30 days after they got labelled with `stalled`, these changes adds a GitHub Action workflow posting a comment information about what will happen in 30 days upon being labelled. PR-URL: nodejs#34555 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Mary Marchini <oss@mmarchini.me> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
| Back | FazBrowse Home | New Git URL |
This introduces a GitHub Action workflow to close issues and PRs which has been labelled stalled 30 days ago (or more).
stale labelling and unlabelling of issues and PRs are still done manually by collaborators.
For the curious ones, all the stale action options are described here: stale/action.yml.
Refs nodejs/github-bot#261
Checklist