Skip to content

Commit

Permalink
Refactor commit message formatting to use full commit hash
Browse files Browse the repository at this point in the history
  • Loading branch information
rtk-rnjn committed Jul 20, 2024
1 parent 6de31ca commit 373f5a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/meta/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ async def server_info(self, ctx: Context):

def format_commit(self, commit: pygit2.Commit):
short, _, _ = commit.message.partition("\n")
short_sha2 = commit.hex[:6]
short_sha2 = str(commit)[:6]
commit_tz = arrow.now().to("local").tzinfo
commit_time = arrow.Arrow.fromtimestamp(commit.commit_time).to("local").astimezone(commit_tz)
offset = discord.utils.format_dt(commit_time, "R")
Expand Down

0 comments on commit 373f5a5

Please sign in to comment.