-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
build: improve consistency between workflows #41791
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "authors update" | ||
name: Authors update | ||
on: | ||
schedule: | ||
# Run once a week at 00:05 AM UTC on Sunday. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Comment on issues and PRs when labelled | ||
name: Comment on issues and PRs when labeled | ||
on: | ||
issues: | ||
types: [labeled] | ||
|
@@ -12,7 +12,7 @@ env: | |
FAST_TRACK_MESSAGE: Fast-track has been requested by @${{ github.actor }}. Please 👍 to approve. | ||
|
||
jobs: | ||
staleComment: | ||
stale-comment: | ||
if: github.repository == 'nodejs/node' && github.event.label.name == 'stalled' | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -22,8 +22,8 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: gh issue comment "$NUMBER" --repo ${{ github.repository }} --body "$STALE_MESSAGE" | ||
|
||
fastTrack: | ||
if: github.repository == 'nodejs/node' && github.event_name == 'pull_request_target' && github.event.label.name == 'fast-track' | ||
fast-track: | ||
if: github.repository == 'nodejs/node' && github.event.issue.pull_request && github.event.label.name == 'fast-track' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't really understand this change, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This unfortunately broke the |
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Request Fast-Track | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: misc | ||
name: Test and upload documentation to artifacts | ||
|
||
on: | ||
pull_request: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: license update | ||
name: License update | ||
on: | ||
schedule: | ||
# 00:00:00 every Monday | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: test-asan | ||
name: Test ASan | ||
|
||
on: | ||
pull_request: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: test-internet | ||
name: Test internet | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -7,17 +7,15 @@ on: | |
|
||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
paths: | ||
- test/internet/** | ||
paths: [test/internet/**] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How does this improve the consistency? Are we following a rule or use an auto-formatting tool to decide what syntax to use when writing a list? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I noticed in the different files that when the list is short, this syntax is used. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not blocking comment: I don't think we should use this format of list here, if we add more paths in the future, the other syntax will be more convceniant. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we add more paths in the future and the list becomes more difficult to read or a bit long, we can always use the other syntax. |
||
push: | ||
branches: | ||
- master | ||
- main | ||
- canary | ||
- v[0-9]+.x-staging | ||
- v[0-9]+.x | ||
paths: | ||
- test/internet/** | ||
paths: [test/internet/**] | ||
|
||
env: | ||
PYTHON_VERSION: '3.10' | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: test-macOS | ||
name: Test macOS | ||
|
||
on: | ||
pull_request: | ||
|
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.
Do we need the quotes here?
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.
No, but I leave them for the other PR #41756.
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.
I think we do. Otherwise it's parsed as the number 3.1
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.
Maybe we should require quotes everywhere after all, YAML is not parsable by humans 😬