Skip to content

Instantly share code, notes, and snippets.

@glekner
Last active March 19, 2020 13:01
Show Gist options
  • Save glekner/a566d430178a6ccf8691ab9f8e986fb7 to your computer and use it in GitHub Desktop.
Save glekner/a566d430178a6ccf8691ab9f8e986fb7 to your computer and use it in GitHub Desktop.
Testing Pull Requests

Testing Pull Requests Easily!

IMPORTANT! First connect to the Red Hat VPN before the following steps.

  1. Open the Console!
  2. Open a Terminal
  3. Login to our VM - ssh tlv-cnv@tlv-cnv-gilad.usersys.redhat.com (Password is in coreos slack)
  4. Navigate to the Console directory - cd coding/matthewcarleton/console
  5. Lets update the pull requests list - git fetch upstream
  6. Fetch a Pull request - git fetch upstream pull/ID/head:BRANCHNAME replace ID with the pull request ID in github, and BRANCHNAME with the name of the branch ( can be anything as long as it doesn't exist yet)
  7. Checkout to our new branch with the pull request - git checkout BRANCHNAME
  8. Webpack will automatically recompile and you should see the results!

Example - git fetch upstream pull/4761/head:4761

This will create a branch named 4761 that contains the changes from pull request #4761, now we can git checkout 4761 and webpack will recompile automatically and you should see the changes in the Console!

Only one branch can be active at a time, so designers should let others know when they are testing so they won't change the branch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment