Skip to content

Commit 2353627

Browse files
[ mergify ] require 2 days to pass after last update of PR to merge it (#8285)
Co-authored-by: Mikolaj Konarski <[email protected]> Co-authored-by: Mikolaj Konarski <[email protected]>
1 parent b7afc97 commit 2353627

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/mergify.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ pull_request_rules:
1212
- base=master
1313
- label=merge me
1414
- '#approved-reviews-by>=2'
15+
- updated-at<2 days ago
1516
# merge+squash strategy
1617
- actions:
1718
queue:
@@ -25,6 +26,7 @@ pull_request_rules:
2526
- base=master
2627
- label=squash+merge me
2728
- '#approved-reviews-by>=2'
29+
- updated-at<2 days ago
2830
# rebase+merge strategy for backports: require 1 approver instead of 2
2931
- actions:
3032
queue:

CONTRIBUTING.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ We like [this style guide][guide].
183183

184184
[guide]: https://github.com/tibbe/haskell-style-guide/blob/master/haskell-style.md
185185

186-
GitHub conventions
186+
GitHub Ticket Conventions
187187
-------------------
188188

189189
Each major `Cabal`/`cabal-install` release (e.g. 3.4, 3.6, etc.) has a
@@ -197,6 +197,26 @@ accepting a fix in that release, i.e. we would very much appreciate someone
197197
working on it, but are not committing to actively sourcing someone to work on
198198
it.
199199

200+
GitHub Pull Request Conventions
201+
-------------------
202+
203+
Every (non-backport) pull request has to go through a review and get 2
204+
approvals. After this is done, the author of the pull request is expected to add
205+
any final touches they deem important and put the `merge me` label on the pull
206+
request. If the author lacks permissions to apply labels, they are welcome to
207+
explicitly signal the merge intent on the discussion thread of the pull request,
208+
at which point others (e.g., reviewers) apply the label. Merge buttons are
209+
reserved for exceptional situations, e.g., CI fixes being iterated on or
210+
backports/patches that need to be expedited for a release.
211+
212+
Currently there is a 2 day buffer for potential extra feedback between the last
213+
update of a pull request (e.g. a commit, a rebase, an addition of the `merge me`
214+
label) and the moment the Mergify bot picks up the pull request for a merge.
215+
216+
If your pull request consists of several commits, consider using `squash+merge
217+
me` instead of `merge me`: the Mergify bot will squash all the commits into one
218+
and concatenate the commit messages of the commits before merging.
219+
200220
Changelog
201221
---------
202222

0 commit comments

Comments
 (0)