theforeman / forklift

Helpful deployment scripts for Foreman and Katello
https://theforeman.github.io/forklift
GNU General Public License v3.0
183 stars 199 forks source link

Add Git config to foreman/katello be able to checkout PRs #664

Open pgagne opened 6 years ago

pgagne commented 6 years ago

Modify the git config of the foreman and katello cloned git repos to allow PRs to be checked out.

This can be done like so

cd [foreman|katello]
git config --add remote.upstream.fetch "+refs/pull/*/head:refs/remotes/upstream/pr/*"
git fetch upstream
git checkout pr/<pr_num>
ekohl commented 6 years ago

Related to https://github.com/theforeman/forklift/pull/626

stbenjam commented 6 years ago

In the interim if you haven't seen it hub is nice. hub checkout https://github.com/theforeman/foreman/pulls/2 does the right things

ehelms commented 6 years ago

Attempting to address here -- https://github.com/theforeman/puppet-katello_devel/pull/157