-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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: add authors.yml #35831
build: add authors.yml #35831
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 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,21 @@ | ||||||||||||||||||||
name: "authors update" | ||||||||||||||||||||
on: | ||||||||||||||||||||
workflow_dispatch: | ||||||||||||||||||||
silverwind marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||
|
||||||||||||||||||||
jobs: | ||||||||||||||||||||
authors_update: | ||||||||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||||||||
steps: | ||||||||||||||||||||
- uses: actions/checkout@v2 | ||||||||||||||||||||
with: | ||||||||||||||||||||
fetch-depth: '0' # this is required to actually get all the authors | ||||||||||||||||||||
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.
Suggested 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. I don't think this is a nit worth retesting the script's functionality for. It works as is, and I'd prefer not to rock the boat with changes. 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 is no need to retest, unless you have a doubt, in which case I think a simple YAML validator is sufficient. Otherwise, removing unnecessary quotes could make the workflow a bit more readable. Personally, I don't see any problem with that. |
||||||||||||||||||||
- run: "tools/update-authors.js" # run the AUTHORS tool | ||||||||||||||||||||
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.
Suggested 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. See previous comment (#35831 (comment)) |
||||||||||||||||||||
- uses: gr2m/create-or-update-pull-request-action@v1 # create a PR or update the Action's existing PR | ||||||||||||||||||||
env: | ||||||||||||||||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||||||
with: | ||||||||||||||||||||
title: "meta: update AUTHORS" | ||||||||||||||||||||
body: "If this PR exists, there's presumably new additions to the AUTHORS file. This is an automatically generated PR by the `authors.yml` GitHub Action, which runs `tools/update-authors.js` and submits a new PR or updates an existing PR.\n\nPlease note that there might be duplicate entries. If there are, please remove them and add the duplicate emails to .mailmap directly to this PR." | ||||||||||||||||||||
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.
Suggested 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. See previous comment (#35831 (comment)) |
||||||||||||||||||||
branch: "actions/authors-update" # custom branch *just* for this Action. | ||||||||||||||||||||
commit-message: "meta: update AUTHORS" | ||||||||||||||||||||
labels: meta |
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.
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 disagree with this, since it's following a similar pattern to https://github.com/nodejs/node/actions/workflows/license-builder.yml which uses
<name> update
.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.
Okay! But maybe the (useless) quotes could be removed?