Skip to content

Instantly share code, notes, and snippets.

@etoews
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save etoews/9dd74e0f655e6b567253 to your computer and use it in GitHub Desktop.
Save etoews/9dd74e0f655e6b567253 to your computer and use it in GitHub Desktop.
# 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