-
Notifications
You must be signed in to change notification settings - Fork 2
add anti-slop PR quality screening #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
+200
−11
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
83b3b3d
chore: add anti-slop PR screening
ndycode 27a3fa5
fix: address anti-slop review feedback
ndycode abbaba8
fix: tighten anti-slop workflow contract coverage
ndycode 750e5ee
fix(ci): keep only validation strict in anti-slop
ndycode c80139a
test(docs): align anti-slop workflow expectation
ndycode 87121aa
fix(ci): clarify anti-slop workflow contract
ndycode 63311bb
fix(ci): document anti-slop honeypot behavior
ndycode cd7b89f
test(docs): cover optional anti-slop section
ndycode b1c9270
test: cover anti-slop input contract details
ndycode 30cd36a
test: cover anti-slop failure message contract
ndycode 8f311ea
docs: tighten anti-slop honeypot and governance template
ndycode 0c89ee1
ci: serialize anti-slop runs per pr
ndycode fad9c7b
test: drop brittle anti-slop prose assertions
ndycode 1a13b56
docs: restore template doc file guidance
ndycode 61f9ca6
ci: bound anti-slop runtime
ndycode 2393d9c
test: harden anti-slop honeypot coverage
ndycode File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| name: Anti Slop | ||
|
|
||
| on: | ||
| # `pull_request_target` is intentional so this workflow can label/comment on | ||
| # PRs. It must stay metadata-only: never checkout or run untrusted PR code. | ||
| pull_request_target: | ||
| branches: [main] | ||
| types: [opened, synchronize, reopened, ready_for_review, edited] | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| concurrency: | ||
| group: anti-slop-${{ github.event.pull_request.number }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
| issues: write # required for GitHub's label API, which routes through Issues API even on PRs | ||
| pull-requests: write | ||
greptile-apps[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| jobs: | ||
| anti-slop: | ||
| name: PR Quality Screening | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 | ||
|
|
||
| steps: | ||
| - name: Run anti-slop checks | ||
| uses: peakoss/anti-slop@85daca1880e9e1af197fc06ea03349daf08f4202 # v0.2.1 | ||
| with: | ||
| github-token: ${{ github.token }} | ||
| max-failures: 4 | ||
| require-pr-template: true | ||
| strict-pr-template-sections: Validation | ||
greptile-apps[bot] marked this conversation as resolved.
Show resolved
Hide resolved
ndycode marked this conversation as resolved.
Show resolved
Hide resolved
ndycode marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| optional-pr-template-sections: Additional Notes | ||
| # anti-slop strips HTML comments before blocked-term matching, so the | ||
| # hidden template comment only trips if copied into visible PR text. | ||
| blocked-terms: "WORKTREE_LANTERN_1455" | ||
| blocked-paths: "" | ||
| exempt-draft-prs: true | ||
| failure-add-pr-labels: needs-human-review | ||
| failure-pr-message: >- | ||
| This PR failed automated PR quality screening and was labelled | ||
| needs-human-review for maintainer review. Keep the PR template | ||
| intact, include real validation evidence, and remove any copied | ||
| hidden template trap text from the visible PR body before requesting | ||
| review again. | ||
| close-pr: false | ||
| lock-pr: false | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.