Skip to content

Instantly share code, notes, and snippets.

Stu Cox stucox

  • London, UK
Block or report user

Report or block stucox

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View prepare-commit-msg
#!/usr/bin/env python
To enable save as /yourproject/.git/hooks/prepare-commit-msg and make executable: chmod +rx prepare-commit-msg
import sys
from subprocess import check_output
def get_ticket_number():
branch_name = check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD'])
You can’t perform that action at this time.