Skip to content

Commit

Permalink
fix: correctly build short sha (#489)
Browse files Browse the repository at this point in the history
We pick the last 7 instead of first 7 chars
  • Loading branch information
sileht authored Oct 11, 2024
1 parent 7c61948 commit 5a8362c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mergify_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ async def get_local_changes(

if pull["head"]["sha"][-7:] != head_commit:
action = "to update"
commit_info = f"{pull['head']['sha'][-7:]} -> {head_commit}"
commit_info = f"{pull['head']['sha'][:7]} -> {head_commit}"
else:
action = "nothing"

Expand Down

0 comments on commit 5a8362c

Please sign in to comment.