Skip to content

Feature request: make push optionalΒ #532

@tpolekhin

Description

@tpolekhin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions