Created
August 1, 2013 08:04
-
-
Save frsela/6129382 to your computer and use it in GitHub Desktop.
Pull Request Link from bugzilla Creates a HTML file which links the PR as bugzilla patch
This file contains 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
if [ -z $1 ]; then | |
echo "PR number needed !" | |
exit -1 | |
fi | |
cat > /tmp/PR$1.html << EOF | |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<meta http-equiv="refresh" content="5;https://github.com/mozilla-b2g/gaia/pull/$1"> | |
<title>Bugzilla Code Review</title> | |
<p>You can review this patch at <a href="https://github.com/mozilla-b2g/gaia/pull/$1">https://github.com/mozilla-b2g/gaia/pull/$1</a>, | |
or wait 5 seconds to be redirected there automatically.</p> | |
EOF | |
echo "File /tmp/PR$1.html created" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment