Skip to content

Instantly share code, notes, and snippets.

@funkaoshi
Created October 4, 2011 21:22
Show Gist options
  • Select an option

  • Save funkaoshi/1262847 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
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