From 1546cf43988f7949ebf1f4f7d081c3ba8aaf69eb Mon Sep 17 00:00:00 2001 From: betegon Date: Wed, 1 Jul 2026 10:16:07 +0200 Subject: [PATCH] ci: add PR risk experiment workflow --- .github/workflows/pr-risk.yml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/pr-risk.yml diff --git a/.github/workflows/pr-risk.yml b/.github/workflows/pr-risk.yml new file mode 100644 index 0000000..59503f3 --- /dev/null +++ b/.github/workflows/pr-risk.yml @@ -0,0 +1,36 @@ +name: PR Risk Experiment + +on: + pull_request_target: + types: [opened, synchronize, reopened, ready_for_review] + +permissions: + contents: read + pull-requests: write + issues: write + +concurrency: + group: pr-risk-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + risk: + name: Score PR risk + runs-on: ubuntu-latest + if: github.event.pull_request.draft == false + + steps: + - name: Score current PR + uses: getsentry/pr-risk-action@v0 + with: + repo: ${{ github.repository }} + pr-number: ${{ github.event.pull_request.number }} + result-path: risk-pr-result.json + skip-reviews: "true" + apply-label: "true" + + - name: Upload risk result + uses: actions/upload-artifact@v4 + with: + name: risk-pr-result + path: risk-pr-result.json