Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/pr-quality.yml
Original file line number Diff line number Diff line change
@@ -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**.
Loading