Skip to content

Commit 7a8d8e2

Browse files
committed
Initial Commit
1 parent da8dd9a commit 7a8d8e2

File tree

12 files changed

+116
-68
lines changed

12 files changed

+116
-68
lines changed

.github/scripts/inactive-collaborator-report.js

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import { readFile } from 'node:fs/promises';
1+
import { readFile } from "node:fs/promises";
22

33
const CONFIG = {
4-
FILE: 'MEMBERS.md',
5-
HEADER: '## Node.js Website Team (`@nodejs/nodejs-website`)',
4+
FILE: "MEMBERS.md",
5+
HEADER: "## Node.js Website Team (`@nodejs/nodejs-website`)",
66
INACTIVE_MONTHS: 12,
7-
ISSUE_TITLE: 'Inactive Collaborator Report',
8-
ISSUE_LABELS: ['meta', 'inactive-collaborator-report'],
7+
ISSUE_TITLE: "Inactive Collaborator Report",
8+
ISSUE_LABELS: ["meta", "inactive-collaborator-report"],
99
};
1010

1111
// Get date N months ago in YYYY-MM-DD format
1212
const getDateMonthsAgo = (months = CONFIG.INACTIVE_MONTHS) => {
1313
const date = new Date();
1414
date.setMonth(date.getMonth() - months);
15-
return date.toISOString().split('T')[0];
15+
return date.toISOString().split("T")[0];
1616
};
1717

1818
// Check if there's already an open issue
@@ -21,7 +21,7 @@ async function hasOpenIssue(github, context) {
2121
const { data: issues } = await github.rest.issues.listForRepo({
2222
owner,
2323
repo,
24-
state: 'open',
24+
state: "open",
2525
labels: CONFIG.ISSUE_LABELS[1],
2626
per_page: 1,
2727
});
@@ -31,17 +31,16 @@ async function hasOpenIssue(github, context) {
3131

3232
// Parse collaborator usernames from governance file
3333
async function parseCollaborators() {
34-
const content = await readFile(CONFIG.FILE, 'utf8');
35-
const lines = content.split('\n');
34+
const content = await readFile(CONFIG.FILE, "utf8");
35+
const lines = content.split("\n");
3636
const collaborators = [];
3737

38-
const startIndex =
39-
lines.findIndex(l => l.startsWith(CONFIG.HEADER)) + 1;
38+
const startIndex = lines.findIndex((l) => l.startsWith(CONFIG.HEADER)) + 1;
4039
if (startIndex <= 0) return collaborators;
4140

4241
for (let i = startIndex; i < lines.length; i++) {
4342
const line = lines[i];
44-
if (line.startsWith('#')) break;
43+
if (line.startsWith("#")) break;
4544

4645
const match = line.match(/^\s*-\s*\[([^\]]+)\]/);
4746
if (match) collaborators.push(match[1]);
@@ -90,7 +89,7 @@ Checking for inactivity since: ${cutoffDate}
9089
9190
| Login |
9291
| ----- |
93-
${inactiveMembers.map(m => `| @${m} |`).join('\n')}
92+
${inactiveMembers.map((m) => `| @${m} |`).join("\n")}
9493
9594
## What happens next?
9695
@@ -122,10 +121,10 @@ export default async function (github, context) {
122121
const inactiveMembers = await getInactiveUsers(
123122
github,
124123
collaborators,
125-
`${context.repo.owner}/${context.repo.repo}`,
126-
cutoffDate
124+
"nodejs/nodejs.org",
125+
cutoffDate,
127126
);
128127
const report = formatReport(inactiveMembers, cutoffDate);
129128

130129
await createIssue(github, context, report);
131-
}
130+
}

.github/workflows/codeql.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
# the `language` matrix defined below to confirm you have the correct set of
1010
# supported CodeQL languages.
1111
#
12-
name: 'CodeQL'
12+
name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: ['main']
16+
branches: ["main"]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: ['main']
19+
branches: ["main"]
2020
schedule:
21-
- cron: '0 0 * * 1'
21+
- cron: "0 0 * * 1"
2222
workflow_call:
2323

2424
permissions:
@@ -36,7 +36,7 @@ jobs:
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
language: ['javascript', 'typescript']
39+
language: ["javascript", "typescript"]
4040
# CodeQL supports [ $supported-codeql-languages ]
4141
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
4242

@@ -76,4 +76,4 @@ jobs:
7676
- name: Perform CodeQL Analysis
7777
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
7878
with:
79-
category: '/language:${{matrix.language}}'
79+
category: "/language:${{matrix.language}}"

.github/workflows/dependency-review.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Dependency Review'
1+
name: "Dependency Review"
22

33
on:
44
pull_request:
@@ -11,8 +11,8 @@ jobs:
1111
dependency-review:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: 'Checkout Repository'
14+
- name: "Checkout Repository"
1515
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616

17-
- name: 'Dependency Review'
18-
uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9 # v4.7.1
17+
- name: "Dependency Review"
18+
uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9 # v4.7.1

.github/workflows/inactive-collaborator-report.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Find inactive collaborators
22

33
on:
44
schedule:
5-
- cron: '0 0 1 * *' # Runs at 00:00 UTC on the 1st day of every month
5+
- cron: "0 0 1 * *" # Runs at 00:00 UTC on the 1st day of every month
66

77
workflow_dispatch:
88

@@ -12,7 +12,7 @@ permissions:
1212

1313
jobs:
1414
find:
15-
if: github.repository == 'nodejs/nodejs.org'
15+
if: github.repository == 'nodejs/web-team'
1616
runs-on: ubuntu-latest
1717

1818
steps:
@@ -29,4 +29,4 @@ jobs:
2929
with:
3030
script: |
3131
const { default: report } = await import("${{github.workspace}}/.github/scripts/report-inactive-collaborators.mjs");
32-
report(github, context);
32+
report(github, context);

.github/workflows/scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
# To guarantee that the Maintained check is occasionally updated. See
1111
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
1212
schedule:
13-
- cron: '20 7 * * 2'
13+
- cron: "20 7 * * 2"
1414
push:
1515
branches:
1616
- main
@@ -62,4 +62,4 @@ jobs:
6262
- name: Upload Scan Results
6363
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
6464
with:
65-
sarif_file: results.sarif
65+
sarif_file: results.sarif

CODE_OF_CONDUCT.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

GOVERNANCE.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ The Node.js Web Team (`@nodejs/web`) maintains Node.js's web presence and relate
1111
### 1. Node.js Website Team (`@nodejs/nodejs-website`)
1212

1313
**Responsibilities:**
14+
1415
- Day-to-day technical development of [nodejs.org](https://nodejs.org)
1516
- Feature development and enhancement
1617
- Website component creation
@@ -22,16 +23,18 @@ The Website Team maintains final decision authority on website issues and pull r
2223
### 2. Node.js Web Infrastructure Team (`@nodejs/web-infra`)
2324

2425
**Responsibilities:**
26+
2527
- Maintenance of CI/CD pipelines for web projects
26-
- Management of web infrastructure providers*
28+
- Management of web infrastructure providers\*
2729
- Establishment of technical standards and best practices
2830
- Infrastructure access management
2931

30-
*Note: This team manages infrastructure specific to the Website (e.g., Vercel). Other shared infrastructure (e.g., Cloudflare) may be managed by other teams such as the Node.js Build WG.
32+
\*Note: This team manages infrastructure specific to the Website (e.g., Vercel). Other shared infrastructure (e.g., Cloudflare) may be managed by other teams such as the Node.js Build WG.
3133

3234
### 3. Node.js Web Standards Team (`@nodejs/web-standards`)
3335

3436
**Responsibilities:**
37+
3538
- Advisory role on web standards (e.g., Ecma262)
3639
- Consultation for Node.js Collaborators, TSC, and Web Team on standards-related matters
3740
- Guidance on standards compliance
@@ -41,6 +44,7 @@ This team consists of Node.js Collaborators and external experts with significan
4144
### 4. Node.js UX & Design Team (`@nodejs/ux-and-design`)
4245

4346
**Responsibilities:**
47+
4448
- Advisory role on UX and design matters
4549
- Development of design guidelines and best practices
4650
- Consultation on:
@@ -62,19 +66,22 @@ Members are nominated according to the [Collaborator Guide](https://github.com/n
6266
### Web Infrastructure Team Membership
6367

6468
Members are nominated by:
69+
6570
- Node.js Technical Steering Committee (TSC)
6671
- Node.js Build WG, following their Collaborator Guidelines
6772
- Existing Node.js Web Team members (recommendation only)
6873

6974
### Web Standards Team Membership
7075

7176
Members are nominated by:
77+
7278
- Node.js Technical Steering Committee (TSC)
7379
- Existing Node.js Web Team members (recommendation only)
7480

7581
### UX & Design Team Membership
7682

7783
Members are nominated by:
84+
7885
- Node.js Technical Steering Committee (TSC)
7986
- Existing Node.js Web Team members (recommendation only)
8087

@@ -87,6 +94,7 @@ The current list of all Web Team members across all subteams is maintained in [M
8794
### TSC Oversight
8895

8996
Any website change that expresses a position about a global event or group of people requires explicit [TSC](https://github.com/nodejs/TSC/blob/main/TSC-Charter.md#section-4-responsibilities-of-the-tsc) approval through one of these methods:
97+
9098
- Pinging `@nodejs/tsc` and receiving no objections after seven days
9199
- Emailing `[email protected]` and receiving at least one approval with no objections after seven days
92100

@@ -110,10 +118,12 @@ The Web Team follows a [Consensus Seeking](http://en.wikipedia.org/wiki/Consensu
110118
For pull requests to the governance repository:
111119

112120
**Items requiring consensus seeking:**
121+
113122
- Governance changes
114123
- Significant process modifications
115124

116125
**Items that may be merged with reasonable review time and no dissent:**
126+
117127
- Errata fixes
118128
- Editorial changes
119129
- Meeting minutes
@@ -136,24 +146,24 @@ Together, these teams work to deliver the best possible web experience for the N
136146

137147
By making a contribution to this project, I certify that:
138148

139-
* (a) The contribution was created in whole or in part by me and I
149+
- (a) The contribution was created in whole or in part by me and I
140150
have the right to submit it under the open source license
141151
indicated in the file; or
142152

143-
* (b) The contribution is based upon previous work that, to the best
153+
- (b) The contribution is based upon previous work that, to the best
144154
of my knowledge, is covered under an appropriate open source
145155
license and I have the right under that license to submit that
146156
work with modifications, whether created in whole or in part
147157
by me, under the same open source license (unless I am
148158
permitted to submit under a different license), as indicated
149159
in the file; or
150160

151-
* (c) The contribution was provided directly to me by some other
161+
- (c) The contribution was provided directly to me by some other
152162
person who certified (a), (b) or (c) and I have not modified
153163
it.
154164

155-
* (d) I understand and agree that this project and the contribution
165+
- (d) I understand and agree that this project and the contribution
156166
are public and that a record of the contribution (including all
157167
personal information I submit with it, including my sign-off) is
158168
maintained indefinitely and may be redistributed consistent with
159-
this project or the open source license(s) involved.
169+
this project or the open source license(s) involved.

MEMBERS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@
4848
## Node.js UX & Design Team (`@nodejs/ux-and-design`)
4949

5050
- [@kyliewd](https://github.com/kyliewd) - **Kylie Wagar-Dirks** (she/her)
51-
- [@ovflowd](https://github.com/ovflowd) - **Claudio Wunder** (they/them)
51+
- [@ovflowd](https://github.com/ovflowd) - **Claudio Wunder** (they/them)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ The Node.js Web Team consists of four specialized subteams:
1212
- **UX & Design Team** (`@nodejs/ux-and-design`) - User experience and design
1313

1414
For detailed information about each team's responsibilities, see [GOVERNANCE.md](GOVERNANCE.md).
15-
For current team membership, see [MEMBERS.md](MEMBERS.md).
15+
For current team membership, see [MEMBERS.md](MEMBERS.md).

actions/notify-on-push/action.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1-
name: 'Slack Notify Composite'
2-
description: 'Sends a Slack notification for direct pushes to a branch'
1+
name: "Slack Notify Composite"
2+
description: "Sends a Slack notification for direct pushes to a branch"
3+
4+
inputs:
5+
webhook:
6+
description: "The Slack webhook"
7+
required: true
38

49
runs:
510
using: "composite"
611
steps:
712
- name: Slack Notification
813
uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661
914
env:
10-
SLACK_COLOR: '#DE512A'
15+
SLACK_COLOR: "#DE512A"
1116
SLACK_ICON: https://github.com/nodejs.png?size=48
1217
SLACK_TITLE: ${{ github.actor }} directly pushed to ${{ github.ref }}
1318
SLACK_MESSAGE: |
@@ -16,4 +21,4 @@ runs:
1621
Before: <https://github.com/${{ github.repository }}/commit/${{ github.event.before }}|${{ github.event.before }}>
1722
After: <https://github.com/${{ github.repository }}/commit/${{ github.event.after }}|${{ github.event.after }}>
1823
SLACK_USERNAME: nodejs-bot
19-
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
24+
SLACK_WEBHOOK: ${{ inputs.webhook }}

0 commit comments

Comments
 (0)