-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreviewpad.yml
68 lines (64 loc) · 2.34 KB
/
reviewpad.yml
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
extends:
- https://github.com/listendev/.github/blob/main/reviewpad/common.yml
rules:
- name: docs-changes
spec: $hasFileExtensions([".md", ".txt"]) || $matchString("^docs(\([A-Za-z0-9_\/\.]+\))??:.+$", $title())
- name: ci-changes
spec: $hasFilePattern(".github/**") || $hasFileName("reviewpad.yml") || $matchString("^ci(\([A-Za-z0-9_\/\.]+\))??:.+$", $title())
- name: deps-changes
spec: $hasFileName("package.json") || $hasFileName("package-lock.json") || $matchString("^build\(deps\)\/.+", $title())
- name: feat-changes
spec: $matchString("^feat(\([A-Za-z0-9_\/\.]+\))??:.+$", $title())
- name: fix-changes
spec: $matchString("^fix(\([A-Za-z0-9_\/\.]+\))??:.+$", $title())
- name: breaking-changes
spec: $matchString("^([A-Za-z0-9_]+)??(\([A-Za-z0-9_\/\.]+\))??!:.+$", $title())
- name: exclude-changes
spec: $matchString("^(chore|refactor|revert|perf|test)(\([A-Za-z0-9_\/\.]+\))??:.+$", $title())
- name: build-changes
spec: $matchString("^build(\([A-Za-z0-9_\/\.]+\))??:.+$", $title())
- name: test-changes
spec: $hasFilePattern("test/**")
groups:
- name: ignore-patterns
spec: '["package-lock.json"]'
workflows:
# This workflow labels pull requests based on the pull request change type.
# This helps pick pull requests based on their change type.
- name: pulls-labelling
description: Label pull requests
always-run: true
if:
- rule: docs-changes
extra-actions:
- $addLabel("documentation")
- rule: ci-changes
extra-actions:
- $addLabel("ci")
- rule: deps-changes
extra-actions:
- $addLabel("dependencies")
- rule: build-changes
extra-actions:
- $addLabel("build")
- rule: test-changes
extra-actions:
- $addLabel("test")
- rule: feat-changes
extra-actions:
- $addLabel("enhancement")
- rule: fix-changes
extra-actions:
- $addLabel("bug")
- rule: breaking-changes
extra-actions:
- $addLabel("breaking-change")
- rule: exclude-changes
extra-actions:
- $addLabel("no-releasenotes")
- rule: $isWaitingForReview()
extra-actions:
- $addLabel("needs-review")
- rule: $isWaitingForReview() == false
extra-actions:
- $removeLabel("needs-review")