diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index dffd5748c8015..7037998ac1bd6 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -41,6 +41,10 @@ SECURITY.md @nodejs/security-wg apps/site/pages/en/blog/release @nodejs/releasers apps/site/pages/en/blog/announcements @nodejs/releasers -# Specific content +# The following users DO NOT have write access, and their review is requested +# via a GitHub action. +apps/site/pages/en/learn/diagnostics @nodejs/diagnostics apps/site/pages/en/learn/getting-started/security-best-practices.md @nodejs/security-wg +apps/site/pages/en/learn/manipulating-files @nodejs/fs +apps/site/pages/en/learn/test-runner @nodejs/test_runner apps/site/pages/en/learn/typescript @nodejs/typescript diff --git a/.github/workflows/bundle-compare.yml b/.github/workflows/bundle-compare.yml index b32a848e9882a..7d7be0d0af666 100644 --- a/.github/workflows/bundle-compare.yml +++ b/.github/workflows/bundle-compare.yml @@ -15,6 +15,7 @@ jobs: compare: name: Compare Bundle Stats runs-on: ubuntu-latest + if: github.event.workflow_run.event == 'pull_request' steps: - name: Harden Runner @@ -30,7 +31,7 @@ jobs: with: name: webpack-stats path: head-stats - run-id: ${{ github.event.workflow_run.workflow_id }} + run-id: ${{ github.event.workflow_run.id }} github-token: ${{ secrets.GITHUB_TOKEN }} - name: Get Run ID from BASE @@ -66,3 +67,4 @@ jobs: with: comment-tag: 'compare_bundle_size' message: ${{ steps.compare-bundle-size.outputs.comment }} + pr-number: ${{ github.event.workflow_run.pull_requests[0].number }} diff --git a/.github/workflows/request-codeowner-review.yml b/.github/workflows/request-codeowner-review.yml new file mode 100644 index 0000000000000..08850d562e64e --- /dev/null +++ b/.github/workflows/request-codeowner-review.yml @@ -0,0 +1,22 @@ +name: Request Codeowner Reviews + +on: + pull_request_target: + types: [opened] + +permissions: + contents: read + pull-requests: write + +jobs: + request-reviews: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Request Codeowner Reviews + uses: pkgjs/request-codeowner-review@d39b61c5e1399655dce6287b3b119af93dee235a # v1.1.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + output-mode: comment