-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: menambahkan konfigurasi mergify (#16)
Signed-off-by: slowy07 <[email protected]>
- Loading branch information
Showing
3 changed files
with
80 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
pull_request_rules: | ||
# membuat requirement dari automerge dengan sistem | ||
# ketika workflow build passed maka akan dicentang | ||
# ketika target pull request ke main maka akan dicentang | ||
# ketika dikasih label 'ready-to-merge' akan dicentang | ||
- name: testing dengan label ready-to-merge | ||
conditions: | ||
- base=main | ||
- label=ready-to-merge | ||
actions: | ||
comment: | ||
# menambahkan komentar message jika sudah di merge | ||
message: terima kasih atas kontribusinya @{{author}} 🤩 | ||
label: | ||
add: | ||
- sudah direview! | ||
# metode dari automerge | ||
merge: | ||
method: squash | ||
|
||
# membuat label dengan kondisi jika di dalam pull request | ||
# terdapat file python | ||
- name: python label | ||
conditions: | ||
- or: | ||
- body~=(?m)^\[X\] Saya menambah algoritma terbaru. | ||
- files~=\.py$ | ||
|
||
actions: | ||
# menambahkan label `python files` | ||
label: | ||
add: | ||
- OpenSeries Python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters