Skip to content

Instantly share code, notes, and snippets.

@funkaoshi
Created October 4, 2011 21:22
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 funkaoshi/1262847 to your computer and use it in GitHub Desktop.
Save funkaoshi/1262847 to your computer and use it in GitHub Desktop.
My post-review alias
alias pr='post-review --bugs-closed=$(git name-rev --name-only HEAD | sed "s/\(.*\)\([0-9][0-9][0-9][0-9]\)\(.*\)/\2/") --branch=$(git name-rev --name-only HEAD) --tracking-branch=origin/develop --guess-description --guess-summary --open'
@funkaoshi
Copy link
Author

Will do a post review, and if the branch is of the form /_name it will pull out enough info to set the bug number as well. It assumes upstream is develop, not master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment