Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add gitPushOptions and gitPushTagOptions. #201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

slabruyere
Copy link

@slabruyere slabruyere commented Feb 3, 2017

added option gitPushOptions
added option gitPushTagOptions

An interesting use case is for instance if you have a pre-push git hook that runs your tests and CI that doesn't let you merge your PRs if the tests fail. Then you don't want your tests to run just for a version bump (which usually happens after a checked merge).
The proposed solution is, in this case, to set the gitPushOptions to --no-verify.

I also added a gitPushTagOptions in case it's of some use for some people :)

@slabruyere slabruyere force-pushed the feat/add-push-options branch from 680bee1 to 10d2adc Compare February 3, 2017 09:14
Copy link
Collaborator

@mojoaxel mojoaxel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@slabruyere
Copy link
Author

Awesome! Thanks @mojoaxel
What is your usual release process ? :)

@@ -254,12 +256,12 @@ module.exports = function(grunt) {
cmd = [];

if (opts.push === true || opts.push === 'branch') {
cmd.push('git push ' + opts.pushTo + ' ' + ref.trim());
cmd.push('git push ' + opts.pushTo + ' ' + ref.trim() + ' ' + opts.gitPushOptions);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't the options go before the refs?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

3 participants