Skip to content

Instantly share code, notes, and snippets.

@frsela
Created August 1, 2013 08:04
Show Gist options
  • Save frsela/6129382 to your computer and use it in GitHub Desktop.
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
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