EndBug / add-and-commit

:octocat: Automatically commit changes made in your workflow run directly to your repo
MIT License
1.14k stars 117 forks source link

fix: Abbreviate commit_sha to be back to being the short SHA #502

Closed DenverCoder1 closed 1 year ago

DenverCoder1 commented 1 year ago

Fixes #501

In Simple Git 3.6.0, the default value of commit was changed to be the full commit instead of the short 7 character SHA. This causes the commit_sha and commit_long_sha to return the same value instead of commit_sha being the 7-character abbreviated version as it says in the docs.

This change makes commit_long_sha use the SHA from Simple Git and abbreviates commit_sha to a maximum of 7 characters.

ghost commented 1 year ago
👇 Click on the image for a new way to code review #### [![Review these changes using an interactive CodeSee Map](https://s3.us-east-2.amazonaws.com/maps.codesee.io/images/github/EndBug/add-and-commit/502/49d7e8bd/81fcfed359dccda373165cdadd42d175c2c626a9.svg)](https://app.codesee.io/r/reviews?pr=502&src=https%3A%2F%2Fgithub.com%2FEndBug%2Fadd-and-commit) #### Legend CodeSee Map legend
EndBug commented 1 year ago

@all-contributors please add @DenverCoder1 for their bug report and code contribution ;)

allcontributors[bot] commented 1 year ago

@EndBug

I've put up a pull request to add @DenverCoder1! :tada: