FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

meta: post comment when pr labeled fast-track by jasnell · Pull Request #38446 · nodejs/node · GitHub

/ node Public

meta: post comment when pr labeled fast-track - #38446

Closed
jasnell wants to merge 2 commits into
nodejs:masterfrom
jasnell:fast-track-github-action
Closed

meta: post comment when pr labeled fast-track#38446
jasnell wants to merge 2 commits into
nodejs:masterfrom
jasnell:fast-track-github-action

Conversation

jasnell commented Apr 28, 2021

Copy link
Copy Markdown
Member

Automatically adds a comment when a pull requests is labeled "fast-track"

Signed-off-by: James M Snell jasnell@gmail.com

github-actions Bot added the meta Issues and PRs related to the general management of the project. label Apr 28, 2021
jasnell added fast-track PRs that do not need to wait for 48 hours to land. and removed fast-track PRs that do not need to wait for 48 hours to land. labels Apr 28, 2021

jasnell commented Apr 28, 2021

Copy link
Copy Markdown
Member Author

@nodejs/build ... my github actions skill is still fairly weak so I'd appreciate if someone could help verify this.

targos commented Apr 28, 2021
edited
Loading

Copy link
Copy Markdown
Member

Unfortunately you cannot test changes to a workflow that uses the pull_request_target event without landing them on a branch and opening a PR against that branch

Comment thread .github/workflows/fast-track.yml Outdated
Comment thread .github/workflows/fast-track.yml Outdated

aduh95 commented Apr 28, 2021

Copy link
Copy Markdown
Contributor

Maybe this should be merged with .github/workflows/comment-stalled.yml and called something like auto-comments.yml? I suppose we may want to add more automation in the future, adding a new workflow each time seems unnecessary.

jasnell force-pushed the fast-track-github-action branch from b893fb0 to eb2b228 Compare April 28, 2021 18:14
Signed-off-by: James M Snell <jasnell@gmail.com>
jasnell force-pushed the fast-track-github-action branch from eb2b228 to eedb34c Compare April 28, 2021 18:29

jasnell commented Apr 28, 2021

Copy link
Copy Markdown
Member Author

@targos @aduh95 ... updated! I combined the label actions into a single workflow and I'm using the gh cli for the fast track action. The gh cli could also be used for the stalled action but I'd prefer to do that in a separate PR.

targos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM. The file could be renamed to "comment-labeled.yml" or "labeled.yml"

jasnell added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Apr 28, 2021

mmarchini left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Personally I would prefer the files to remain separate, merging them doesn't bring any value because there's no reuse between the two flows, and the only thing they share is the labeled event for PRs. Plus merging the files increase the complexity because now we need an extra condition in the if statement to skip the fast track job on issues.

I don't feel strong enough about it to ask to go back to separate files though.

jasnell commented Apr 30, 2021
edited
Loading

Copy link
Copy Markdown
Member Author

@mmarchini ... I don't know if I was doing something wrong or what, but I actually had a difficult time getting the fastTrack workflow to run consistently when it was in a separate file.... and by that I mean in testing on my personal fork, the stalled label workflow would run but the fast track wouldn't. The only way I was able to get both to run consistently was putting them both in a single workflow file. Not opposed to separating them back out into separate files if that works and is preferred but let's go ahead and land this PR and we can separate them out later if necessary in another commit.

jasnell commented Apr 30, 2021

Copy link
Copy Markdown
Member Author

Landed in d85929c

jasnell closed this Apr 30, 2021
jasnell added a commit that referenced this pull request Apr 30, 2021
Signed-off-by: James M Snell <jasnell@gmail.com>

PR-URL: #38446
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
targos pushed a commit that referenced this pull request May 3, 2021
Signed-off-by: James M Snell <jasnell@gmail.com>

PR-URL: #38446
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
targos mentioned this pull request May 3, 2021
targos pushed a commit that referenced this pull request May 30, 2021
Signed-off-by: James M Snell <jasnell@gmail.com>

PR-URL: #38446
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
targos pushed a commit that referenced this pull request Jun 5, 2021
Signed-off-by: James M Snell <jasnell@gmail.com>

PR-URL: #38446
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
targos pushed a commit that referenced this pull request Jun 5, 2021
Signed-off-by: James M Snell <jasnell@gmail.com>

PR-URL: #38446
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
targos pushed a commit that referenced this pull request Jun 11, 2021
Signed-off-by: James M Snell <jasnell@gmail.com>

PR-URL: #38446
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. meta Issues and PRs related to the general management of the project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants


Back | FazBrowse Home | New Git URL