Skip to content
This repository has been archived by the owner on Sep 21, 2018. It is now read-only.

Latest commit

 

History

History
34 lines (24 loc) · 831 Bytes

FAQs.md

File metadata and controls

34 lines (24 loc) · 831 Bytes

FAQs

Can a checkout also make a pull request?

Q. I have a feature branch I don't want to merge yet, but I'd like to run some tests on the merge of my feature branch and some other branch.

A. Use the optional "pull" option for the checkout step. If there are conflicts the job will fail. Standard git and may be used. All the arguments in the pull: are appended to command line with per the following template

git pull --no-edit --commit <arguments to pull>

For example, given the following snippet:

"checkout": {
		"type": "javascript",
		"task": "git-checkout",
		"checkout_url": "[email protected]",
		"branch": "develop",
		"pull": ["origin", "someFeatureBranch"]
	},

The resulting command line execution will be

git --no-edit --commit origin someFeatureBranch