mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-24 14:34:21 +00:00
33ca3e5f07
* ci: add pr size labeler * ci: use `ubuntu-latest` for docker access * chore: do not label draft PR's * ci: use colon as size label separator Co-Authored-By: Claude Opus 5.5 <michael.kriese+claude-code@mend.io> --------- Co-authored-by: Claude Opus 5.5 <michael.kriese+claude-code@mend.io>
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
# Configuration for PR Size Labeler
|
|
|
|
# List of files to exclude from size calculation
|
|
# Files matching these patterns will not be considered when calculating PR size
|
|
#exclude_files:
|
|
# - "foo.bar" # Example: Exclude 'foo.bar' file
|
|
# - "*.xyz"
|
|
# fixtures can't be easily excluded https://pkg.go.dev/path/filepath#Match
|
|
|
|
# Configuration for labeling based on the size of the Pull Request
|
|
# Each entry defines a size label, along with thresholds for diff and file count
|
|
label_configs:
|
|
# Configuration for 'extra small' PRs
|
|
- size: xs
|
|
diff: 25 # Threshold for the total lines of code changed (additions + deletions)
|
|
files: 1 # Threshold for the total number of files changed
|
|
labels: ['size:xs'] # Labels to be applied for this size
|
|
|
|
# Configuration for 'small' PRs
|
|
- size: s
|
|
diff: 150
|
|
files: 10
|
|
labels: ['size:s']
|
|
|
|
# Configuration for 'medium' PRs
|
|
- size: m
|
|
diff: 600
|
|
files: 25
|
|
labels: ['size:m']
|
|
|
|
# Configuration for 'large' PRs
|
|
- size: l
|
|
diff: 2500
|
|
files: 50
|
|
labels: ['size:l']
|
|
|
|
# Configuration for 'extra large' PRs
|
|
- size: xl
|
|
diff: 5000
|
|
files: 100
|
|
labels: ['size:xl']
|