Skip to content

Feature request: Support git push options #171

Closed
@JackCuthbert

Description

@JackCuthbert

Problem

My team has a bit of an interesting versioning setup in GitLab CI/CD where we:

  1. Don't want to run a pipeline on the version bump commit on a development branch
  2. Want to run a pipeline on the version bump commit once it makes it into a primary (master) branch

Adding [skip ci] to every commit means we need to manually run pipelines after merges if the version bump commit is the most recent commit after a merge.

Proposal

GitLab supports a ci.skip option that when combined with this plugin should allow us to achieve both scenarios when we:

  1. omit the [skip ci] string from the commit message template
  2. configure @semantic-release/git to use the ci.skip push option

Version commits to our develop branch won't be built, and merges to our master/production branches will.

This support should still mean that this plugin is CI agnostic as push options is a git feature rather than a GitLab feature and not required at all.

I'm happy to make a PR for this if it sounds like something that this plugin should support. It looks like I'd need to pass through any push options to the push() method here and here.

Thanks 😄

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions