Skip to content

Instantly share code, notes, and snippets.

View ktdreyer's full-sized avatar
🎧

Ken Dreyer ktdreyer

🎧
View GitHub Profile
@ktdreyer
ktdreyer / prepare-commit-msg
Last active August 11, 2016 20:02 — forked from alfredodeza/prepare-commit-msg
Append a "Resolves: {tracker}#{ticket-id}" to commit messages based on branch names
#!/usr/bin/python
"""
This is a prepare-commit-msg hook that fill append commit messages with::
Resolves: {TRACKER}#{TICKET-ID}
For example a RedHat BZ 0001 would look like::
Correct the syntax error