From 1eac32e3907e4dd06e925e498b60aba64227e2ad Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 9 Nov 2026 09:13:53 +0000 Subject: [PATCH 1/2] ci: request reviews from @Pijukatel and @apify-factory by default Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017ocuAKwY7nBcaEyRHi1y1U --- .github/CODEOWNERS | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 0e2ef24..0384fde 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1,2 @@ +* @Pijukatel @apify-factory /.github/workflows/factory_review.yaml @mtrunkat From 500485c0913c3373d7032844c05ccad11b21fcad Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 9 Nov 2026 09:25:01 +0000 Subject: [PATCH 2/2] ci: request the apify-factory review from a workflow instead of CODEOWNERS Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017ocuAKwY7nBcaEyRHi1y1U --- .github/CODEOWNERS | 2 +- .github/workflows/request_factory_review.yaml | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/request_factory_review.yaml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 0384fde..115f23d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,2 +1,2 @@ -* @Pijukatel @apify-factory +* @Pijukatel /.github/workflows/factory_review.yaml @mtrunkat diff --git a/.github/workflows/request_factory_review.yaml b/.github/workflows/request_factory_review.yaml new file mode 100644 index 0000000..9420855 --- /dev/null +++ b/.github/workflows/request_factory_review.yaml @@ -0,0 +1,27 @@ +name: Request apify-factory review + +on: + # Taken from the default branch, never from the pull request. Pull request code is never + # checked out or executed. + pull_request_target: + types: + - opened + - ready_for_review + +permissions: {} + +jobs: + request-review: + if: >- + !github.event.pull_request.draft + && github.event.pull_request.user.login != 'apify-factory' + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + # Requested with apify-factory's own token: a request made with GITHUB_TOKEN wouldn't + # trigger the `review_requested` run of factory_review.yaml. + - env: + GH_TOKEN: ${{ secrets.APIFY_FACTORY_GITHUB_TOKEN }} + REPO: ${{ github.repository }} + PR_NUMBER: ${{ github.event.pull_request.number }} + run: gh api -X POST "repos/$REPO/pulls/$PR_NUMBER/requested_reviewers" -f 'reviewers[]=apify-factory' --silent