Skip to content

Commit

Permalink
Switch to 7 character sha prefixes
Browse files Browse the repository at this point in the history
This switches to 7 character sha prefixes in deploy_bug.py script so
it matches github's partial sha in the "recent commit" section when
tagging a release.
  • Loading branch information
willkg committed Mar 12, 2018
1 parent 1de370c commit fbaa9ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/deploy_bug.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,19 @@ def main(argv):
print()
print('It consists of the following:')
print()
print('(current tag: %s - %s)' % (current_tag, sha[:8]))
print('(current tag: %s - %s)' % (current_tag, sha[:7]))

# Print the commits out skipping merge commits
for commit in commits:
if len(commit['parents']) > 1:
continue

print('%s: %s' % (
commit['sha'][:8],
commit['sha'][:7],
commit['commit']['message'].splitlines()[0][:80]
))

print('(next tag: %s - %s)' % (next_tag, commits[-1]['sha'][:8]))
print('(next tag: %s - %s)' % (next_tag, commits[-1]['sha'][:7]))
print()

# Print all possible post-deploy steps--we winnow the unnecessary ones when
Expand Down

0 comments on commit fbaa9ad

Please sign in to comment.