zeitgeist icon indicating copy to clipboard operation
zeitgeist copied to clipboard

Add simple mergify config. It uses branch protection rules from github configuration.

Open vivekvpandya opened this issue 2 years ago • 10 comments

vivekvpandya avatar Aug 30 '22 05:08 vivekvpandya

We need to update branch protection rules as per our requirements and mergify will use them to automatically merge PRs. https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule

vivekvpandya avatar Aug 30 '22 05:08 vivekvpandya

This should fix https://github.com/zeitgeistpm/zeitgeist/issues/688 , in github branch protection rules we should choose setting to enforce checking latest test checks success.

vivekvpandya avatar Aug 30 '22 05:08 vivekvpandya

Started a review. You are right, it should resolve #688 if configured properly. As stated in the mergify documentation, mergify will always merge main into a PR before giving green lights for a merge:

That way, there's no way to merge a broken pull request into the base branch.

sea212 avatar Sep 05 '22 13:09 sea212

Looks cool. Agree with @sea212's suggestions. While we're at it, can we add rules for the following?

* Ensure that merge is squashed (wouldn't surprise me if this is impossible)

* Ensure that the PR was reviewed

both of these rules are available in github's branch protection mechanism

vivekvpandya avatar Sep 08 '22 12:09 vivekvpandya

@maltekliemann Squash and merge is already enforced, I requested setting a minimum review count to the admin.

sea212 avatar Sep 08 '22 12:09 sea212

https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule here rule 11 require merge queue will be required right @sea212 ?

vivekvpandya avatar Sep 08 '22 12:09 vivekvpandya

Passing status checks and minimum review count have been configured in the repository. Merge queue is in public beta, we have requested access and are await response.

sea212 avatar Sep 20 '22 10:09 sea212

Passing status checks and minimum review count have been configured in the repository. Merge queue is in public beta, we have requested access and are await response.

how do we check the status for this?

vivekvpandya avatar Sep 27 '22 04:09 vivekvpandya

Afaik we have to ask the repository admin (Logan).

sea212 avatar Sep 27 '22 08:09 sea212

@lsaether could you please check if we have got access to merge queue?

vivekvpandya avatar Oct 04 '22 16:10 vivekvpandya

What's the blocker here? Also, can we get a notification when one of our PRs needs to resolve a merge conflict? https://docs.mergify.com/actions/comment/#request-for-action

maltekliemann avatar Nov 07 '22 12:11 maltekliemann

What's the blocker here? Also, can we get a notification when one of our PRs needs to resolve a merge conflict? https://docs.mergify.com/actions/comment/#request-for-action

We are waiting for merge queue access, however it seems like only admin can check that.

vivekvpandya avatar Nov 08 '22 06:11 vivekvpandya

Codecov Report

Merging #777 (9131dbb) into main (a3894f4) will increase coverage by 0.02%. The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main     #777      +/-   ##
==========================================
+ Coverage   94.50%   94.52%   +0.02%     
==========================================
  Files          93       92       -1     
  Lines       21090    20987     -103     
==========================================
- Hits        19931    19838      -93     
+ Misses       1159     1149      -10     
Flag Coverage Δ
tests 94.52% <ø> (+0.02%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

see 58 files with indirect coverage changes

codecov-commenter avatar Jan 25 '23 09:01 codecov-commenter

Mergify is installed in this repo: image

sea212 avatar Jul 06 '23 10:07 sea212