Skip to content

fix(sync_branches): always sync with merge commit#249

Merged
MrkMrk00 merged 1 commit intomainfrom
fix/sync-branches-with-merge-commit
Feb 27, 2026
Merged

fix(sync_branches): always sync with merge commit#249
MrkMrk00 merged 1 commit intomainfrom
fix/sync-branches-with-merge-commit

Conversation

@MrkMrk00
Copy link
Contributor

(primarily a problem in apify-worker) Sometimes a merge commit isn't created when syncing branches and the mainline gets fast-forwarded from master/main. This "breaks" history as the first parent of the fast-forwarded commit is now the master branch history.

For easily seeing the history with only actual feature commits I use git log --oneline --first-parent - with fast-forward commits this breaks.

The --no-ff flag ensures that a merge commit is always created if there are commits to be synced from master -> develop.

@MrkMrk00 MrkMrk00 self-assigned this Feb 27, 2026
@MrkMrk00 MrkMrk00 added the adhoc Ad-hoc unplanned task added during the sprint. label Feb 27, 2026
@github-actions github-actions bot added the t-infra Issues with this label are in the ownership of the infrastructure team. label Feb 27, 2026
Copy link
Member

@fnesveda fnesveda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool 👍

BTW why is this happening mainly on worker, but not elsewhere? Because worker releases are so good that they don't need fixes? 😄

@MrkMrk00
Copy link
Contributor Author

Cool 👍

BTW why is this happening mainly on worker, but not elsewhere? Because worker releases are so good that they don't need fixes? 😄

@fnesveda because apify-main does not directly merge with git. Instead a PR is created with the github API and merged immediately. (I wonder why it's different in the repos, maybe something to unify...)

@MrkMrk00 MrkMrk00 merged commit 9305611 into main Feb 27, 2026
2 of 3 checks passed
@MrkMrk00 MrkMrk00 deleted the fix/sync-branches-with-merge-commit branch February 27, 2026 12:43
@lukasmrtvy lukasmrtvy added the validated Issues that are resolved and their solutions fulfill the acceptance criteria. label Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-infra Issues with this label are in the ownership of the infrastructure team. validated Issues that are resolved and their solutions fulfill the acceptance criteria.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants