From d433831996eb88a5cbec05d7d6e78000cd29e2dc Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Sat, 25 Apr 2026 17:19:39 -0400 Subject: [PATCH] feat(ci): add codeowners --- .github/CODEOWNERS | 41 +++++++++++++++++++ .../workflows/request-codeowner-review.yml | 31 ++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/request-codeowner-review.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..2062f32 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,41 @@ +* @nodejs/nodejs-website +/.* @nodejs/web-infra + +/pages/asynchronous-work/ @nodejs/timers +/pages/asynchronous-work/the-nodejs-event-emitter.md @nodejs/events + +/pages/command-line/how-to-use-the-nodejs-repl.md @nodejs/repl + +/pages/diagnostics/ @nodejs/diagnostics +/pages/diagnostics/memory/ @nodejs/diagnostics @nodejs/v8 +/pages/diagnostics/live-debugging/ @nodejs/diagnostics +/pages/diagnostics/live-debugging/using-inspector.md @nodejs/diagnostics @nodejs/inspector +/pages/diagnostics/poor-performance/ @nodejs/diagnostics @nodejs/performance +/pages/diagnostics/flame-graphs.md @nodejs/diagnostics @nodejs/performance + +/pages/getting-started/an-introduction-to-the-npm-package-manager.md @nodejs/npm +/pages/getting-started/debugging.md @nodejs/diagnostics +/pages/getting-started/profiling.md @nodejs/diagnostics @nodejs/performance +/pages/getting-started/the-v8-javascript-engine.md @nodejs/v8 +/pages/getting-started/security-best-practices.md @nodejs/security-wg +/pages/getting-started/userland-migrations.md @nodejs/userland-migrations +/pages/getting-started/nodejs-with-webassembly.md @nodejs/wasi +/pages/getting-started/fetch.md @nodejs/undici @nodejs/web-standards +/pages/getting-started/websocket.md @nodejs/web-standards + +/pages/http/ @nodejs/http + +/pages/manipulating-files/ @nodejs/fs + +/pages/modules/ @nodejs/loaders +/pages/modules/how-to-use-streams.md @nodejs/streams +/pages/modules/backpressuring-in-streams.md @nodejs/streams +/pages/modules/abi-stability.md @nodejs/node-api +/pages/modules/publishing-node-api-modules.md @nodejs/node-api +/pages/modules/publishing-a-package.md @nodejs/npm + +/pages/test-runner/ @nodejs/test_runner + +/pages/typescript/ @nodejs/typescript + +/pages/node-api/ @nodejs/node-api diff --git a/.github/workflows/request-codeowner-review.yml b/.github/workflows/request-codeowner-review.yml new file mode 100644 index 0000000..60d59c4 --- /dev/null +++ b/.github/workflows/request-codeowner-review.yml @@ -0,0 +1,31 @@ +name: Request Codeowner Reviews + +on: + pull_request_target: + types: [opened] + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + request-reviews: + name: Request Codeowner Reviews + runs-on: ubuntu-latest + permissions: + # Required to request reviews and post comments + pull-requests: write + steps: + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + + - name: Request Codeowner Reviews + uses: pkgjs/request-codeowner-review@d39b61c5e1399655dce6287b3b119af93dee235a # v1.1.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + output-mode: comment