Skip to content

Feature request: Support git push options #973

@mmomper

Description

@mmomper

Description

It would be nice to support git push options (added in Git 2.10.2). Preferable separated for the commit push and the tag push.

Use cases

We are using GitLab CI/CD and want to use this tool for version management but don't want a pipeline run for the version bump commit. This could be archived by using the push option ci.skip for the new commit.

Adding [skip ci] to every commit has also impact on everything else referencing this commit (for example the tag).

Possible implementation

I tested that it works by simply modifying the commit push line from repo.git.push(remote_url, branch) to repo.git.push(remote_url, branch, "-o", "ci.skip") and it works.

I did not create a PR because I'm unsure which is the best option for adding this as a cli/config parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmedPrevent from becoming stalefeatureA new feature or a feature requestneeds-updateNeeds status update from maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy