Last active
August 29, 2015 14:02
-
-
Save etoews/9dd74e0f655e6b567253 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Comment on the pull request to let the user know where to go to review the jclouds site | |
#!/bin/bash | |
# Setup the env vars needed by the comment script | |
source $WORKSPACE/triggering-build.rc | |
export GITHUB_USERNAME=my-github-username | |
export GITHUB_PASSWORD=my-github-password | |
export GITHUB_PR_MESSAGE=$(cat $WORKSPACE/cdn-upload.log | grep "Go to") | |
export GITHUB_PR_MESSAGE+=" to review your changes." | |
export GITHUB_ORG='jclouds' | |
export GITHUB_REPO='jclouds-site' | |
# Install PyGithub to do the commenting | |
export PYTHONPATH=~/python_packages | |
mkdir -p $PYTHONPATH | |
easy_install --install-dir $PYTHONPATH PyGithub | |
# Run the script to make the comment | |
wget https://gist.githubusercontent.com/everett-toews/4e7295ecfd33ac14d92e/raw/c755ae111eb60b804573219616ce9c6df9a664a5/comment.py | |
python comment.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment