From 159fddebaaebab82cbcf437c6fcdf414eb173c31 Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Fri, 3 Apr 2026 10:13:39 -0400 Subject: [PATCH 1/3] feat(ci): pr-quality --- .github/workflows/pr-quality.yml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 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 000000000000..03b65a963036 --- /dev/null +++ b/.github/workflows/pr-quality.yml @@ -0,0 +1,34 @@ +name: PR Quality + +permissions: + contents: read + issues: read + pull-requests: write + +on: + pull_request_target: + types: [opened, reopened] + +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 82c95fb22d6cfeed2dee7d78a1313c3993af5464 Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Fri, 3 Apr 2026 10:56:19 -0400 Subject: [PATCH 2/3] fixup! --- .github/workflows/pr-quality.yml | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/.github/workflows/pr-quality.yml b/.github/workflows/pr-quality.yml index 03b65a963036..901906bf25a8 100644 --- a/.github/workflows/pr-quality.yml +++ b/.github/workflows/pr-quality.yml @@ -11,24 +11,4 @@ on: 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**. + uses: webpack/.github/.github/workflows/pr-quality.yml@main From 0fbe9d491d2d841c54f8773bf9c4f0eb0ff9e9fc Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Fri, 24 Apr 2026 15:12:26 -0400 Subject: [PATCH 3/3] Update workflow reference to specific commit --- .github/workflows/pr-quality.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-quality.yml b/.github/workflows/pr-quality.yml index 901906bf25a8..5fc6579b8f29 100644 --- a/.github/workflows/pr-quality.yml +++ b/.github/workflows/pr-quality.yml @@ -11,4 +11,4 @@ on: jobs: anti-slop: - uses: webpack/.github/.github/workflows/pr-quality.yml@main + uses: webpack/.github/.github/workflows/pr-quality.yml@a03552c758d8c244b3cfc2985aff7020469e0473