mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 15:20:40 +00:00
ci: add anti-slop v0.2 options to the pr-quality check
This commit is contained in:
44
.github/workflows/pr-quality.yaml
vendored
44
.github/workflows/pr-quality.yaml
vendored
@@ -16,7 +16,7 @@ jobs:
|
|||||||
- uses: peakoss/anti-slop@v0
|
- uses: peakoss/anti-slop@v0
|
||||||
with:
|
with:
|
||||||
# General Settings
|
# General Settings
|
||||||
max-failures: 3
|
max-failures: 4
|
||||||
|
|
||||||
# PR Branch Checks
|
# PR Branch Checks
|
||||||
allowed-target-branches: "next"
|
allowed-target-branches: "next"
|
||||||
@@ -26,7 +26,6 @@ jobs:
|
|||||||
main
|
main
|
||||||
master
|
master
|
||||||
v4.x
|
v4.x
|
||||||
next
|
|
||||||
|
|
||||||
# PR Quality Checks
|
# PR Quality Checks
|
||||||
max-negative-reactions: 0
|
max-negative-reactions: 0
|
||||||
@@ -37,16 +36,24 @@ jobs:
|
|||||||
|
|
||||||
# PR Description Checks
|
# PR Description Checks
|
||||||
require-description: true
|
require-description: true
|
||||||
max-description-length: 0
|
max-description-length: 2500
|
||||||
max-emoji-count: 2
|
max-emoji-count: 2
|
||||||
require-pr-template: true
|
max-code-references: 5
|
||||||
require-linked-issue: false
|
require-linked-issue: false
|
||||||
blocked-terms: "STRAWBERRY"
|
blocked-terms: "STRAWBERRY"
|
||||||
blocked-issue-numbers: 8154
|
blocked-issue-numbers: 8154
|
||||||
|
|
||||||
|
# PR Template Checks
|
||||||
|
require-pr-template: true
|
||||||
|
strict-pr-template-sections: "Contributor Agreement"
|
||||||
|
optional-pr-template-sections: "Issues,Preview"
|
||||||
|
max-additional-pr-template-sections: 2
|
||||||
|
|
||||||
# Commit Message Checks
|
# Commit Message Checks
|
||||||
|
max-commit-message-length: 500
|
||||||
require-conventional-commits: false
|
require-conventional-commits: false
|
||||||
blocked-commit-authors: "claude,copilot"
|
require-commit-author-match: true
|
||||||
|
blocked-commit-authors: ""
|
||||||
|
|
||||||
# File Checks
|
# File Checks
|
||||||
allowed-file-extensions: ""
|
allowed-file-extensions: ""
|
||||||
@@ -59,38 +66,43 @@ jobs:
|
|||||||
templates/service-templates-latest.json
|
templates/service-templates-latest.json
|
||||||
templates/service-templates.json
|
templates/service-templates.json
|
||||||
require-final-newline: true
|
require-final-newline: true
|
||||||
|
max-added-comments: 10
|
||||||
|
|
||||||
# User Health Checks
|
# User Checks
|
||||||
|
detect-spam-usernames: true
|
||||||
|
min-account-age: 30
|
||||||
|
max-daily-forks: 7
|
||||||
|
min-profile-completeness: 4
|
||||||
|
|
||||||
|
# Merge Checks
|
||||||
min-repo-merged-prs: 0
|
min-repo-merged-prs: 0
|
||||||
min-repo-merge-ratio: 0
|
min-repo-merge-ratio: 0
|
||||||
min-global-merge-ratio: 30
|
min-global-merge-ratio: 30
|
||||||
global-merge-ratio-exclude-own: false
|
global-merge-ratio-exclude-own: false
|
||||||
min-account-age: 10
|
|
||||||
|
|
||||||
# Exemptions
|
# Exemptions
|
||||||
exempt-author-association: "OWNER,MEMBER,COLLABORATOR"
|
exempt-draft-prs: false
|
||||||
exempt-users: ""
|
|
||||||
exempt-bots: |
|
exempt-bots: |
|
||||||
actions-user
|
actions-user
|
||||||
dependabot[bot]
|
dependabot[bot]
|
||||||
renovate[bot]
|
renovate[bot]
|
||||||
github-actions[bot]
|
github-actions[bot]
|
||||||
exempt-draft-prs: false
|
exempt-users: ""
|
||||||
|
exempt-author-association: "OWNER,MEMBER,COLLABORATOR"
|
||||||
exempt-label: "quality/exempt"
|
exempt-label: "quality/exempt"
|
||||||
exempt-pr-label: ""
|
exempt-pr-label: ""
|
||||||
exempt-milestones: ""
|
|
||||||
exempt-pr-milestones: ""
|
|
||||||
exempt-all-milestones: false
|
exempt-all-milestones: false
|
||||||
exempt-all-pr-milestones: false
|
exempt-all-pr-milestones: false
|
||||||
|
exempt-milestones: ""
|
||||||
|
exempt-pr-milestones: ""
|
||||||
|
|
||||||
# PR Success Actions
|
# PR Success Actions
|
||||||
success-add-pr-labels: "quality/verified"
|
success-add-pr-labels: "quality/verified"
|
||||||
|
|
||||||
# PR Failure Actions
|
# PR Failure Actions
|
||||||
close-pr: true
|
|
||||||
lock-pr: false
|
|
||||||
delete-branch: false
|
|
||||||
failure-pr-message: "This PR did not pass quality checks so it will be closed. If you believe this is a mistake please let us know."
|
|
||||||
failure-remove-pr-labels: ""
|
failure-remove-pr-labels: ""
|
||||||
failure-remove-all-pr-labels: true
|
failure-remove-all-pr-labels: true
|
||||||
failure-add-pr-labels: "quality/rejected"
|
failure-add-pr-labels: "quality/rejected"
|
||||||
|
failure-pr-message: "This PR did not pass quality checks so it will be closed. If you believe this is a mistake please let us know."
|
||||||
|
close-pr: true
|
||||||
|
lock-pr: false
|
||||||
|
|||||||
Reference in New Issue
Block a user