Skip to content

Commit

Permalink
feat : smart card pattern matching
Browse files Browse the repository at this point in the history
Use "fix" or "close" with "[card #no]".
Fix hewigovens#1
  • Loading branch information
kernel0 committed Aug 11, 2015
1 parent 17bcd73 commit c12d9da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-trello-hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def handle_payload():
commits = json_payload['commits']
cards_in_commit = []
cards_url_dict = {}
card_pattern = '(\[)(card #)([0-9]+)(\])'
card_pattern = '(fix|close).*(\[)(card #)([0-9]+)(\])'

for commit in commits:
results = re.findall(
Expand Down

0 comments on commit c12d9da

Please sign in to comment.