From 04da1ca5be7215595a765b9f2efba0e111b98122 Mon Sep 17 00:00:00 2001 From: Tiago Lubiana Date: Tue, 15 Sep 2026 13:38:23 -0300 Subject: [PATCH 1/5] Add a component_owners custom file It uses a GH Action instead of base CODEOWNERS so people without "write" access can be given review-level ownership of parts of the repository. This allows e.g. auto assigning RFC authors as reviewers for changes that are related to their RFC. --- .github/component_owners.yml | 30 ++++++++++++++++++++++++++ .github/workflows/component-owners.yml | 18 ++++++++++++++++ specifications/dev | 2 +- 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 .github/component_owners.yml create mode 100644 .github/workflows/component-owners.yml diff --git a/.github/component_owners.yml b/.github/component_owners.yml new file mode 100644 index 000000000..b577fffd1 --- /dev/null +++ b/.github/component_owners.yml @@ -0,0 +1,30 @@ +components: + boilerplate/: + - lubianat + community/: + - lubianat + contributing/: + - lubianat + help-desk/: + - lubianat + images/: + - lubianat + resources/: + - lubianat + specifications/: + - lubianat + - jo-mueller + rfc/3/: + - jni + rfc/4/: + - thewtex + rfc/9/: + - jwindhager + +ignored-authors: + - dependabot + - dependabot[bot] + - renovate-bot + - renovate[bot] + - github-actions[bot] + - pre-commit-ci[bot] diff --git a/.github/workflows/component-owners.yml b/.github/workflows/component-owners.yml new file mode 100644 index 000000000..91bf24052 --- /dev/null +++ b/.github/workflows/component-owners.yml @@ -0,0 +1,18 @@ +name: Component Owners +on: + pull_request_target: + +permissions: + contents: read + pull-requests: write + +jobs: + assign: + runs-on: ubuntu-latest + name: Request Owner Reviews + steps: + - uses: dyladan/component-owners@7ff2b343629407c4dbe1c28ae66f55f723543d2b # main @ 2026-01-22 + with: + config-file: .github/component_owners.yml + assign-owners: "false" + request-owner-reviews: "true" diff --git a/specifications/dev b/specifications/dev index 465dd6fb5..c69c54c2c 160000 --- a/specifications/dev +++ b/specifications/dev @@ -1 +1 @@ -Subproject commit 465dd6fb54f599717d121cf4bddb3621309b4a89 +Subproject commit c69c54c2cd7f7bc36845c9c81d24c7e2721fd251 From 56c7e0419aff14cccd499649b3db6f50d7eecf89 Mon Sep 17 00:00:00 2001 From: Tiago Lubiana Date: Tue, 15 Sep 2026 13:41:09 -0300 Subject: [PATCH 2/5] Make sure that PRs tagged 'infra' don't trigger the action --- .github/workflows/component-owners.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/component-owners.yml b/.github/workflows/component-owners.yml index 91bf24052..d8ce1a6ab 100644 --- a/.github/workflows/component-owners.yml +++ b/.github/workflows/component-owners.yml @@ -8,6 +8,7 @@ permissions: jobs: assign: + if: ${{ !contains(github.event.pull_request.labels.*.name, 'infra') }} runs-on: ubuntu-latest name: Request Owner Reviews steps: From f383e043624d87e08edd3f239db270eff7206e1e Mon Sep 17 00:00:00 2001 From: Tiago Lubiana Date: Tue, 15 Sep 2026 13:49:32 -0300 Subject: [PATCH 3/5] revert submodule changes --- specifications/dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specifications/dev b/specifications/dev index c69c54c2c..465dd6fb5 160000 --- a/specifications/dev +++ b/specifications/dev @@ -1 +1 @@ -Subproject commit c69c54c2cd7f7bc36845c9c81d24c7e2721fd251 +Subproject commit 465dd6fb54f599717d121cf4bddb3621309b4a89 From ca6e5d3f8454c7d2cf4cec4844159d01edfec1a7 Mon Sep 17 00:00:00 2001 From: Tiago Lubiana Date: Tue, 15 Sep 2026 13:58:31 -0300 Subject: [PATCH 4/5] add lubianat to .github/ owners --- .github/component_owners.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/component_owners.yml b/.github/component_owners.yml index b577fffd1..90787a499 100644 --- a/.github/component_owners.yml +++ b/.github/component_owners.yml @@ -1,4 +1,6 @@ components: + .github/: + - lubianat boilerplate/: - lubianat community/: From 2b6665a4c495f43477157ed8b1843c918c3440d9 Mon Sep 17 00:00:00 2001 From: Tiago Lubiana Date: Wed, 16 Sep 2026 16:48:21 -0300 Subject: [PATCH 5/5] Rename files and use different GH Action See https://github.com/necojackarc/auto-request-review/tree/9a4b11888f2d60c79120c5413f13eb63febc2b68/ --- .github/component_owners.yml | 32 ------------------------- .github/reviewers.yml | 17 +++++++++++++ .github/workflows/component-owners.yml | 19 --------------- .github/workflows/request-reviewers.yml | 20 ++++++++++++++++ 4 files changed, 37 insertions(+), 51 deletions(-) delete mode 100644 .github/component_owners.yml create mode 100644 .github/reviewers.yml delete mode 100644 .github/workflows/component-owners.yml create mode 100644 .github/workflows/request-reviewers.yml diff --git a/.github/component_owners.yml b/.github/component_owners.yml deleted file mode 100644 index 90787a499..000000000 --- a/.github/component_owners.yml +++ /dev/null @@ -1,32 +0,0 @@ -components: - .github/: - - lubianat - boilerplate/: - - lubianat - community/: - - lubianat - contributing/: - - lubianat - help-desk/: - - lubianat - images/: - - lubianat - resources/: - - lubianat - specifications/: - - lubianat - - jo-mueller - rfc/3/: - - jni - rfc/4/: - - thewtex - rfc/9/: - - jwindhager - -ignored-authors: - - dependabot - - dependabot[bot] - - renovate-bot - - renovate[bot] - - github-actions[bot] - - pre-commit-ci[bot] diff --git a/.github/reviewers.yml b/.github/reviewers.yml new file mode 100644 index 000000000..f26581eaa --- /dev/null +++ b/.github/reviewers.yml @@ -0,0 +1,17 @@ +# People listed here only get a review request when a PR touches the path. +# No special permissions are granted. +files: + '.github/**': [lubianat] + 'boilerplate/**': [lubianat] + 'community/**': [lubianat] + 'contributing/**': [lubianat] + 'help-desk/**': [lubianat] + 'images/**': [lubianat] + 'resources/**': [lubianat] + 'specifications/**': [lubianat, jo-mueller] + 'rfc/3/**': [jni] + 'rfc/4/**': [thewtex] + 'rfc/9/**': [jwindhager] + +options: + ignore_draft: true diff --git a/.github/workflows/component-owners.yml b/.github/workflows/component-owners.yml deleted file mode 100644 index d8ce1a6ab..000000000 --- a/.github/workflows/component-owners.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Component Owners -on: - pull_request_target: - -permissions: - contents: read - pull-requests: write - -jobs: - assign: - if: ${{ !contains(github.event.pull_request.labels.*.name, 'infra') }} - runs-on: ubuntu-latest - name: Request Owner Reviews - steps: - - uses: dyladan/component-owners@7ff2b343629407c4dbe1c28ae66f55f723543d2b # main @ 2026-01-22 - with: - config-file: .github/component_owners.yml - assign-owners: "false" - request-owner-reviews: "true" diff --git a/.github/workflows/request-reviewers.yml b/.github/workflows/request-reviewers.yml new file mode 100644 index 000000000..ca5a6b5e9 --- /dev/null +++ b/.github/workflows/request-reviewers.yml @@ -0,0 +1,20 @@ +name: Request Reviewers +on: + pull_request_target: + types: [opened, ready_for_review, reopened] + +permissions: + contents: read + pull-requests: write + +jobs: + request: + # Skip PRs labeled 'infra' and PRs opened by bots + if: ${{ !contains(github.event.pull_request.labels.*.name, 'infra') && !endsWith(github.event.pull_request.user.login, '[bot]') }} + runs-on: ubuntu-latest + name: Request Reviewers + steps: + - uses: necojackarc/auto-request-review@9a4b11888f2d60c79120c5413f13eb63febc2b68 # v0.14.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + config: .github/reviewers.yml