How to check out a pull request for testing: Revision

Last updated by Steve Clay

A pull request ("PR") represents a request to merge a git branch into one of Elgg's version branches. To test it you need to check out the PR branch into your local Elgg install.

First, determine which version the branch is for. You don't want to put 1.9/master branch code into your 1.8 development system and vice versa. Let's say the PR is for 1.8

cd ~/htdocs/elgg18

Now, from here you need to add the PR author's Elgg fork as a remote, figure out the name of his/her PR branch, and checkout that branch.

Thankfully there are a couple tricks to make this easy:

Using the python script, at least, is super easy. Just checkout the base Elgg branch, then give the python script the PR ID:

git checkout 1.8

You'll end up on a new branch "pull-request-###" with the user's commits in place, ready for testing!

Feedback and Planning

Feedback and Planning

Discussions about the past, present, and future of Elgg and this community site.