Skip to content

Commit

Permalink
ci: force rebase and autosquash before merging
Browse files Browse the repository at this point in the history
  • Loading branch information
frazarshad committed Aug 9, 2024
1 parent 9c9e5cf commit b290b1b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ pull_request_rules:
conditions:
- base=master
- label=automerge:rebase
- or:
- '#commits-behind>0'
- linear-history
actions:
queue:
merge_method: merge
Expand All @@ -76,3 +79,15 @@ pull_request_rules:
actions:
queue:
merge_method: squash
- name: rebase and autosquash
conditions:
- base=master
- label=automerge:rebase
- '#commits-behind=0'
- or:
- -linear-history
- check-failure=no-fixup-commits
- -draft
actions:
rebase:
autosquash: true

0 comments on commit b290b1b

Please sign in to comment.