diff --git a/.github/component_owners.yml b/.github/component_owners.yml new file mode 100644 index 0000000000..4a8e9b4aed --- /dev/null +++ b/.github/component_owners.yml @@ -0,0 +1,6 @@ +# this file is used by .github/workflows/assign-reviewers.yml +components: + src/adservice: + - jack-berg + - mateuszrzeszutek + - trask diff --git a/.github/workflows/assign-reviewers.yml b/.github/workflows/assign-reviewers.yml new file mode 100644 index 0000000000..763b30b20f --- /dev/null +++ b/.github/workflows/assign-reviewers.yml @@ -0,0 +1,18 @@ +# assigns reviewers to pull requests in a similar way as CODEOWNERS, but doesn't require reviewers +# to have write access to the repository +# see .github/component_owners.yaml for the list of components and their owners +name: Assign reviewers + +on: + # pull_request_target is needed instead of just pull_request + # because repository write permission is needed to assign reviewers + pull_request_target: + +jobs: + assign-reviewers: + runs-on: ubuntu-latest + steps: + - uses: dyladan/component-owners@main + with: + # using this action to request review only (not assignment) + assign-owners: false