generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.yaml
72 lines (63 loc) · 2.29 KB
/
default.yaml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
labeling:
# Whether or not to add a label to each pull request to indicate its assessed category
applyCategoryLabels: true
# The prefix to add to each category label that we apply.
categoryLabelPrefix: "sizeup/"
commenting:
# Whether or not to comment on pull requests that exceed the configured score threshold
addCommentWhenScoreThresholdHasBeenExceeded: true
# The threshold above which we will add a comment to the assessed pull request.
scoreThreshold: 100
# The template for the comment that should be added to each pull request that
# exceeds the score threshold. Any of the following variables can be included
# in the template with surrounding curly braces (e.g. {{author}}) in order to
# interpolate a computed value into the comment:
#
# - author
# - threshold
# - score
# - category
commentTemplate: |
👋 @{{author}} this pull request exceeds the configured reviewability score threshold of {{threshold}}. Your actual score was {{score}}.
[Research](https://www.cabird.com/static/93aba3256c80506d3948983db34d3ba3/rigby2013convergent.pdf) has shown that this makes it harder for reviewers to provide quality feedback.
We recommend that you reduce the size of this PR by separating commits into stacked PRs.
# Configuration for how to evaluate pull requests.
# This is of the same format that `sizeup` accepts directly.
sizeup:
categories:
- name: extra small
lte: 10
label:
name: xs
description: Should be very easy to review
color: 3cbf00
- name: small
lte: 30
label:
name: s
description: Should be easy to review
color: 5d9801
- name: medium
lte: 100
label:
name: m
description: Should be of average difficulty to review
color: 7f7203
- name: large
lte: 500
label:
name: l
description: May be difficult to review
color: a14c05
- name: extra large
label:
name: xl
description: May be very difficult to review
color: c32607
ignoredFilePatterns:
- CODEOWNERS
scoring:
formula: "? deprecation additions default"
aliases:
default: "- - + additions deletions comments whitespace"
deprecation: "& > deletions 0 >= / deletions + additions deletions 0.9"