tools: add find-inactive-tsc · nodejs/node@b54d53b · GitHub
Skip to content

Commit b54d53b

Browse files
Trottdanielleadams
authored andcommitted
tools: add find-inactive-tsc
Automate the implementation of rules in the TSC Charter around automatic removal of members who do not participate in TSC votes and attend fewer than 25% of the meetings in a 3-month period. PR-URL: #40884 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 3e388ef commit b54d53b

4 files changed

Lines changed: 313 additions & 5 deletions

File tree

.github/workflows/find-inactive-collaborators.yml

Lines changed: 3 additions & 3 deletions
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Find inactive TSC members
2+
3+
on:
4+
schedule:
5+
# Run every Tuesday 12:05 AM UTC.
6+
- cron: '5 0 * * 2'
7+
8+
workflow_dispatch:
9+
10+
env:
11+
NODE_VERSION: lts/*
12+
13+
jobs:
14+
find:
15+
if: github.repository == 'nodejs/node'
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout the repo
20+
uses: actions/checkout@v2
21+
22+
- name: Clone nodejs/TSC repository
23+
uses: actions/checkout@v2
24+
with:
25+
fetch-depth: 0
26+
repository: nodejs/TSC
27+
path: .tmp
28+
29+
- name: Use Node.js ${{ env.NODE_VERSION }}
30+
uses: actions/setup-node@v2
31+
with:
32+
node-version: ${{ env.NODE_VERSION }}
33+
34+
- name: Find inactive TSC members
35+
run: tools/find-inactive-tsc.mjs
36+
37+
- name: Open pull request
38+
uses: gr2m/create-or-update-pull-request-action@v1
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
41+
with:
42+
author: Node.js GitHub Bot <github-bot@iojs.org>
43+
branch: actions/inactive-tsc
44+
body: This PR was generated by tools/find-inactive-tsc.yml.
45+
commit-message: "meta: move one or more TSC members to emeritus"
46+
labels: meta
47+
title: "meta: move one or more TSC members to emeritus"

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,9 @@ For information on reporting security vulnerabilities in Node.js, see
156156
For information about the governance of the Node.js project, see
157157
[GOVERNANCE.md](./GOVERNANCE.md).
158158

159-
<!-- node-core-utils depends on the format of the TSC list. If the
160-
format changes, those utilities need to be tested and updated. -->
159+
<!-- node-core-utils and find-inactive-tsc.mjs depend on the format of the TSC
160+
list. If the format changes, those utilities need to be tested and
161+
updated. -->
161162

162163
### TSC (Technical Steering Committee)
163164

tools/find-inactive-tsc.mjs

Lines changed: 260 additions & 0 deletions

0 commit comments

Comments
 (0)