From 1afc59e8d963831a2c8a73d3c042f1608d2aaccb Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Fri, 3 Apr 2026 10:54:57 -0400 Subject: [PATCH 1/2] feat(ci): create shared `pr-quality` workflow --- .github/workflows/pr-quality.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/pr-quality.yml diff --git a/.github/workflows/pr-quality.yml b/.github/workflows/pr-quality.yml new file mode 100644 index 0000000..a711309 --- /dev/null +++ b/.github/workflows/pr-quality.yml @@ -0,0 +1,32 @@ +name: PR Quality + +permissions: + contents: read + issues: read + pull-requests: write + +on: workflow_call + +jobs: + anti-slop: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - uses: peakoss/anti-slop@85daca1880e9e1af197fc06ea03349daf08f4202 # v0.2.1 + env: + IS_NEW: >- + ${{ contains(fromJSON('["FIRST_TIMER","FIRST_TIME_CONTRIBUTOR","NONE"]'), + github.event.pull_request.author_association) }} + with: + max-failures: ${{ env.IS_NEW == 'true' && 2 || 3 }} + global-merge-ratio-exclude-own: ${{ env.IS_NEW == 'true' }} + max-daily-forks: ${{ env.IS_NEW == 'true' && 4 || 7 }} + require-pr-template: true + require-conventional-title: true + require-conventional-commits: true + failure-pr-message: | + 👋 Hi there! This PR was automatically flagged and closed by our quality checks. + + If you believe this was a mistake, please review our contributing guidelines + and leave a comment explaining **why this is a mistake**. From fce44ddede2e97525d728a9fb594ad61924982e7 Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Sat, 11 Apr 2026 13:44:08 -0400 Subject: [PATCH 2/2] Add repository input to anti-slop action --- .github/workflows/pr-quality.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-quality.yml b/.github/workflows/pr-quality.yml index a711309..7e7cece 100644 --- a/.github/workflows/pr-quality.yml +++ b/.github/workflows/pr-quality.yml @@ -12,7 +12,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - + with: + repository: webpack/.github - uses: peakoss/anti-slop@85daca1880e9e1af197fc06ea03349daf08f4202 # v0.2.1 env: IS_NEW: >-