Skip to content

Push to a branch instead of a fork.#5

Merged
tswast merged 2 commits intomasterfrom
tswast-branch-nofork
Aug 12, 2016
Merged

Push to a branch instead of a fork.#5
tswast merged 2 commits intomasterfrom
tswast-branch-nofork

Conversation

@tswast
Copy link
Copy Markdown
Contributor

@tswast tswast commented Aug 12, 2016

Many of our repos run integration / system tests on Travis. These
require access to credentials to run, so they must be run from a branch
instead of fork.

Also, so that we aren't creating a new branch every day, push to a
constant branch name instead of a new branch. (I forget why I wasn't
doing this in the first place.)

Example PR: GoogleCloudPlatform/java-docs-samples#285

Many of our repos run integration / system tests on Travis. These
require access to credentials to run, so they must be run from a branch
instead of fork.

Also, so that we aren't creating a new branch every day, push to a
constant branch name instead of a new branch. (I forget why I wasn't
doing this in the first place.)
Comment thread clone-and-checkout.sh Outdated
fi

BRANCH="repositorygardener$(date +"%Y%m%d")b${RANDOM}"
BRANCH="dpebot-repositorygardener"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It'd be nice to be able to set this from the calling script - we may want to automate PRs for more than just updating deps.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agreed. I'll add an argument to the script.

@tswast tswast force-pushed the tswast-branch-nofork branch from 15831c0 to 8e5e690 Compare August 12, 2016 22:02
This will be useful if we make scripts for more than just updating
dependencies. That way they can send different PRs for different things.

Also, require the GitHub user name in the repository arguments. This
will let us clone repos not just in the GoogleCloudPlatform org.
@theacodes
Copy link
Copy Markdown

LGTM

@tswast tswast merged commit a43d0cd into master Aug 12, 2016
@tswast tswast deleted the tswast-branch-nofork branch August 12, 2016 23:06
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.

2 participants