-
Notifications
You must be signed in to change notification settings - Fork 253
/
.mergify.yml
66 lines (65 loc) · 2.73 KB
/
.mergify.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
pull_request_rules:
- name: Automatic merge on approval
conditions:
- "#approved-reviews-by>=1"
actions:
comment:
message: Awesome :thumbsup:, Thanks for contributing to Hack-CP-DSA by [TLE MEC](https://www.instagram.com/tle.mec/) :smiley:!
label:
remove:
- awaiting-changes
add:
- hacktoberfest-accepted
merge:
method: merge
- name: Close if comments are not present
conditions:
- label=add-comments
actions:
close:
message: Hey there, please add comments to your solution explaining the logic used. This is clearly mentioned in the [Contributing](https://github.com/TLE-MEC/Hack-CP-DSA/blob/main/CONTRIBUTING.md) guidelines. You may submit another Pull Request with the necessary changes made, Thanks
- name: Close if file or folder names invalid
conditions:
- label=change-name
actions:
close:
message: Hey there, Your PR has been closed due to one or more of the following reasons:1) Your problem and/or solution file/folder are not named correctly. Please refer [Contributing](https://github.com/TLE-MEC/Hack-CP-DSA/blob/main/CONTRIBUTING.md) for guidelines. 2) Your file/folder name contains special characters or leading digits, please remove them. You may submit another Pull Request with the necessary changes made, Thanks
- name: Close if files are missing
conditions:
- label=missing-file
actions:
close:
message: Hey there, it looks like some of the required files are missing. Please go through [Contributing.md](https://github.com/TLE-MEC/Hack-CP-DSA/blob/main/CONTRIBUTING.md) to see what all files need to be added and send another PR, Thanks.
- name: Close invalid pull request
conditions:
- label=invalid
actions:
close:
message: Your PR has been closed due to not aligning with the contribution guidelines. Please go through [Contributing.md](https://github.com/TLE-MEC/Hack-CP-DSA/blob/main/CONTRIBUTING.md) and send another PR, Thanks.
- name: Close duplicate pull request
conditions:
- label=duplicate
actions:
close:
message: Your PR has been closed since it is a duplicate
- name: Close inactive pull request
conditions:
- label=inactive-close
actions:
close:
- name: label on conflicts
conditions:
- conflict
actions:
label:
add:
- conflict-no-approve
comment:
message: Hey there, looks like there are some conflicting files. Please resolve the conflicts so that your Pull Request can be reviewed.
- name: remove conflict label if not needed
conditions:
- -conflict
actions:
label:
remove:
- conflict-no-approve