Skip to content

feat: In deploy don't create empty commits but push changes#8939

Merged
nishantmonu51 merged 1 commit intomainfrom
no_empty_commit_push
Feb 27, 2026
Merged

feat: In deploy don't create empty commits but push changes#8939
nishantmonu51 merged 1 commit intomainfrom
no_empty_commit_push

Conversation

@k-anshul
Copy link
Member

@k-anshul k-anshul commented Feb 27, 2026

  • On deploys done in CI/CD there are no new changes but a commit is created. This commit is not written back to user's repo. On next deploy since we no longer do a force push it fails with error : divergent branches
  • Fix is to not do empty commits but still trigger a push.

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@k-anshul k-anshul self-assigned this Feb 27, 2026
@k-anshul k-anshul changed the title feat: no empty commits but push changes feat: In deploy don't create empty commits but push changes Feb 27, 2026
@nishantmonu51 nishantmonu51 merged commit 4ced757 into main Feb 27, 2026
17 checks passed
@nishantmonu51 nishantmonu51 deleted the no_empty_commit_push branch February 27, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants