Skip to content

Commit

Permalink
Fix trello for issue number in commit message (#2408)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek authored Oct 15, 2018
1 parent 411b611 commit 1f0ec8b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,11 @@ def testable(ctx, start_id, agent_version, dry_run):
for i, (commit_hash, commit_subject) in enumerate(diff_data, 1):
commit_id = parse_pr_number(commit_subject)
if commit_id:
pr_data = get_pr(commit_id, user_config, repo=repo)
try:
pr_data = get_pr(commit_id, user_config, repo=repo)
except Exception:
echo_warning('Skipping #{}, not a pull request...'.format(commit_id))
continue
else:
try:
pr_data = get_pr_from_hash(commit_hash, repo, user_config).get('items', [{}])[0]
Expand Down

0 comments on commit 1f0ec8b

Please sign in to comment.