Perform a fastforward merge to avoid rebuilding same commit on master
#2182
Replies: 2 comments 1 reply
-
👋 @blindpirate! I understand what you want, which is basically re-using the "update" commit as the merge commit. That makes sense to us. Unfortunately, GitHub API does not allow this, which means Mergify would have to do Another question would also be: why are you testing |
Beta Was this translation helpful? Give feedback.
-
Mergify now provides two ways to do this
|
Beta Was this translation helpful? Give feedback.
-
Hi thanks for the great feature mergify provides!
We're a team where many people work on personal branches and merges to
master
when the work finishes. We want to leverage strict merge to implement our pre-test commit, especially avoid rebuilding same commit on master. We would like to have a workflow:master
(aka. base branch) to PR branch because of strict merge. Let's call this merge commitMergeCommitA
.master
. Mergify will generate a new merge commit (let's call itMergeCommitB
).We want to avoid
MergeCommitB
, i.e. rungit merge --ff
instead of mergify defaultgit merge --no-ff
because:MergeCommitB
.MergeCommitA
is up-to-date.MergeCommitA
/MergeCommitB
is recognized as different commits by CI thus requires rebuilding everything, this adds unnecessary pressure to CI.Is there anything I can do to avoid this problem?
Reference: https://docs.mergify.io/actions/merge.html#git-merge-workflow-and-mergify-equivalent-configuration
Beta Was this translation helpful? Give feedback.
All reactions