Skip to content

Commit a525534

Browse files
committed
add anti-slop workflow
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent e9f4b5d commit a525534

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/pr-quality.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: PR Quality
2+
3+
permissions:
4+
contents: read
5+
issues: read
6+
pull-requests: write
7+
8+
on:
9+
pull_request_target:
10+
types: [opened, reopened]
11+
12+
jobs:
13+
anti-slop:
14+
runs-on: ubuntu-24.04
15+
name: Detects and automatically closes low-quality and AI slop PRs
16+
steps:
17+
- uses: peakoss/anti-slop@v0
18+
with:
19+
# Number of check failures needed before failure actions are triggered
20+
max-failures: 3
21+
# List of commit author usernames to block
22+
blocked-commit-authors: "claude,copilot"
23+
# Require the PR to reference at least one issue in the PR description.
24+
require-linked-issue: true
25+
# List of terms blocked from appearing in the PR description
26+
blocked-terms: "MANGO"
27+
# Require all changed files to end with a newline character
28+
require-final-newline: false
29+
# PR does not allow maintainers to push to the source
30+
require-maintainer-can-modify: false
31+
# Minimum number of profile signals the user must have to pass. Disabled.
32+
min-profile-completeness: 0

0 commit comments

Comments
 (0)