forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: add workflow to ensure
README
lists are in sync with gh teams
- Loading branch information
Showing
3 changed files
with
84 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# We need a separate workflow file so failures on the README are not reported on | ||
# all PRs, only on the ones that update the README. | ||
name: Linters (README.md) | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
paths: [README.md] | ||
push: | ||
branches: | ||
- main | ||
- v[0-9]+.x-staging | ||
- v[0-9]+.x | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
PYTHON_VERSION: '3.12' | ||
NODE_VERSION: lts/* | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
lint-readme-lists: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
with: | ||
persist-credentials: false | ||
- name: Get ${{ env.TEAM }} team members | ||
id: team_members | ||
run: | | ||
get_list_members() { | ||
TEAM="$1" | ||
QUOTE='"' | ||
gh api "/orgs/nodejs/teams/$TEAM/members" -X GET -f per_page=100 --jq "map(.login) | @sh ${QUOTE}${TEAM}=\(tojson)${QUOTE}" | ||
} | ||
get_list_members "collaborators" >> "$GITHUB_OUTPUT" | ||
get_list_members "issue-triage" >> "$GITHUB_OUTPUT" | ||
get_list_members "tsc" >> "$GITHUB_OUTPUT" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- run: tools/lint-readme-lists.mjs "$TEAMS" | ||
env: | ||
TEAMS: ${{ tojson(steps.team_members.outputs) }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -735,20 +735,18 @@ maintaining the Node.js project. | |
**Daeyeon Jeong** <<[email protected]>> (he/him) | ||
* [F3n67u](https://github.com/F3n67u) - | ||
**Feng Yu** <<[email protected]>> (he/him) | ||
* [himadriganguly](https://github.com/himadriganguly) - | ||
**Himadri Ganguly** <<himadri.tech@gmail.com>> (he/him) | ||
* [gireeshpunathil](https://github.com/gireeshpunathil) - | ||
**Gireesh Punathil** <<[email protected].com>> (he/him) | ||
* [iam-frankqiu](https://github.com/iam-frankqiu) - | ||
**Frank Qiu** <<[email protected]>> (he/him) | ||
* [kvakil](https://github.com/kvakil) - | ||
**Keyhan Vakil** <<[email protected]>> | ||
* [marsonya](https://github.com/marsonya) - | ||
**Akhil Marsonya** <<[email protected]>> (he/him) | ||
* [meixg](https://github.com/meixg) - | ||
**Xuguang Mei** <<[email protected]>> (he/him) | ||
* [mertcanaltin](https://github.com/mertcanaltin) - | ||
**Mert Can Altin** <<[email protected]>> | ||
* [Mesteery](https://github.com/Mesteery) - | ||
**Mestery** <<[email protected]>> (he/him) | ||
* [PoojaDurgad](https://github.com/PoojaDurgad) - | ||
**Pooja Durgad** <<[email protected]>> | ||
* [preveen-stack](https://github.com/preveen-stack) - | ||
**Preveen Padmanabhan** <<[email protected]>> (he/him) | ||
* [RedYetiDev](https://github.com/redyetidev) - | ||
|
This file contains 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