Skip to content

Commit

Permalink
chore: update commit validation
Browse files Browse the repository at this point in the history
  • Loading branch information
newt-sc authored Apr 24, 2020
1 parent 25455c0 commit a7dc9a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/validate_commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

if is_pull_request:
os.system('git fetch --deepen=1 --no-tags --quiet')
command_args = ['git', 'log', '--format=%B', '-n', '1', github['event']['after']]
sha = github['event'].get('after', github['event']['pull_request']['sha'])
command_args = ['git', 'log', '--format=%B', '-n', '1', sha]
else:
command_args = ['git', 'show', '-s', '--format=%s']

Expand Down

0 comments on commit a7dc9a7

Please sign in to comment.