From 7f64dce9db73607292e0f45d3f83fc0f88bc9d75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Jerci=C5=84ski?= Date: Thu, 2 Jul 2026 17:02:30 +0200 Subject: [PATCH] ci: consolidate pr-review workflows to the managed smart layout --- .github/workflows/pr-review-on-open.yml | 27 ---------------- .github/workflows/pr-review-on-push.yml | 27 ---------------- .github/workflows/pr-review.yml | 42 +++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 54 deletions(-) delete mode 100644 .github/workflows/pr-review-on-open.yml delete mode 100644 .github/workflows/pr-review-on-push.yml create mode 100644 .github/workflows/pr-review.yml diff --git a/.github/workflows/pr-review-on-open.yml b/.github/workflows/pr-review-on-open.yml deleted file mode 100644 index 9fdc479..0000000 --- a/.github/workflows/pr-review-on-open.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: PR Approach Review - -on: - pull_request_target: - types: [opened] - workflow_dispatch: - inputs: - pr_number: - description: "PR number to review" - required: true - type: number - -jobs: - review: - permissions: - contents: read - pull-requests: write - actions: read - uses: Jercik/axgithub/.github/workflows/pr-review.yml@v1 - with: - label: approach - recipes: '["pr-review-approach-1","pr-review-approach-2","pr-review-approach-3","pr-review-approach-4"]' - pr_number: ${{ github.event.pull_request.number || inputs.pr_number }} - secrets: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - AXRECIPE_API_KEY: ${{ secrets.AXRECIPE_API_KEY }} diff --git a/.github/workflows/pr-review-on-push.yml b/.github/workflows/pr-review-on-push.yml deleted file mode 100644 index 5ab565e..0000000 --- a/.github/workflows/pr-review-on-push.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: PR Code Review - -on: - pull_request_target: - types: [opened, synchronize, reopened] - workflow_dispatch: - inputs: - pr_number: - description: "PR number to review" - required: true - type: number - -jobs: - review: - permissions: - contents: read - pull-requests: write - actions: read - uses: Jercik/axgithub/.github/workflows/pr-review.yml@v1 - with: - label: code - recipes: '["pr-review-code-1","pr-review-code-2"]' - pr_number: ${{ github.event.pull_request.number || inputs.pr_number }} - secrets: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - AXRECIPE_API_KEY: ${{ secrets.AXRECIPE_API_KEY }} diff --git a/.github/workflows/pr-review.yml b/.github/workflows/pr-review.yml new file mode 100644 index 0000000..387afee --- /dev/null +++ b/.github/workflows/pr-review.yml @@ -0,0 +1,42 @@ +--- +name: PR Review + +on: + pull_request_target: + types: [opened, synchronize, reopened] + workflow_dispatch: + inputs: + pr_number: + description: "PR number to review" + required: true + type: number + +jobs: + approach: + if: ${{ github.event_name == 'workflow_dispatch' || github.event.action == 'opened' }} + permissions: + contents: read + pull-requests: write + actions: read + uses: Jercik/axgithub/.github/workflows/pr-review.yml@v1 + with: + label: approach + recipes: '[{"recipe":"pr-review-approach-smart","name":"smart draw 1"},{"recipe":"pr-review-approach-smart","name":"smart draw 2"},"pr-review-approach-2","pr-review-approach-3"]' + pr_number: ${{ github.event.pull_request.number || inputs.pr_number }} + secrets: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + AXRECIPE_API_KEY: ${{ secrets.AXRECIPE_API_KEY }} + + code: + permissions: + contents: read + pull-requests: write + actions: read + uses: Jercik/axgithub/.github/workflows/pr-review.yml@v1 + with: + label: code + recipes: '[{"recipe":"pr-review-code-smart","name":"smart draw 1"},{"recipe":"pr-review-code-smart","name":"smart draw 2"}]' + pr_number: ${{ github.event.pull_request.number || inputs.pr_number }} + secrets: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + AXRECIPE_API_KEY: ${{ secrets.AXRECIPE_API_KEY }}