git icon indicating copy to clipboard operation
git copied to clipboard

Feature request: make push optional

Open tpolekhin opened this issue 6 months ago • 0 comments

Problem

I'm trying to use semantic-release with semantic-release-monorepo to automate release process of Terraform modules in monorepo hosted on Azure DevOps. I've got the solution working in most cases, except when I merge a PR that changes multiple modules at the same time. The first module to run thought semantic-release to the end pushes changes to remote repository and next module is failing with: "The local branch main is behind the remote one, therefore a new version won't be published."

Solution

Configure automation for every individual module to only commit changes locally but not push them to remote repository until all modules are processed and all changes accumulated in the local repository. After that do one push for all changes at once.

Issue

It seems like git plugin for semantic-release cannot be configured to skip the push after commit. This all happens in the same processing step. I understand that my use case is pretty unique, but I think making push optional defaulting to true is also not a huge change.

tpolekhin avatar Jul 18 '25 23:07 tpolekhin