-
-
Notifications
You must be signed in to change notification settings - Fork 21
35 lines (32 loc) · 1.35 KB
/
pr-quality.yml
File metadata and controls
35 lines (32 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: PR Quality
permissions:
contents: read
issues: read
pull-requests: write
on:
# pull_request_target is required so the action can close/comment on fork PRs.
# This is safe because: no untrusted code is checked out, and no attacker-controlled
# values are interpolated into shell commands. All action inputs are hardcoded.
pull_request_target:
types: [opened, reopened]
jobs:
anti-slop:
runs-on: ubuntu-24.04
name: Detects and automatically closes low-quality and AI slop PRs
steps:
- uses: peakoss/anti-slop@e158eeefe5c43e1d3ba8533b84e0e35d9d6761de
with:
# Number of check failures needed before failure actions are triggered
max-failures: 3
# List of commit author usernames to block
blocked-commit-authors: "claude,copilot"
# Require the PR to reference at least one issue in the PR description.
require-linked-issue: true
# List of terms blocked from appearing in the PR description
blocked-terms: "MANGO"
# Require all changed files to end with a newline character
require-final-newline: false
# PR does not allow maintainers to push to the source
require-maintainer-can-modify: false
# Minimum number of profile signals the user must have to pass. Disabled.
min-profile-completeness: 0