liquidlogiclabs/Git Commit Info
Gets information about a commit (including short and long SHA) using an offset from HEAD. Only uses local git commands.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 5, 2026
- License
- MIT
Pinned Snippet
uses: liquidlogiclabs/git-action-commit-info@24aa76fa373d27e373da2c3657f97720032b114e # v2.0.3tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| offset | Offset from HEAD to look up (defaults to 0 which means HEAD). Always goes backwards in history (0 = HEAD, 1 = HEAD~1, 2 = HEAD~2, etc.). Negative offsets are accepted but converted to absolute value (e.g., -1 becomes 1). | no | 0 |
| verbose | Enable verbose debug logging. Also enabled when ACTIONS_STEP_DEBUG=true. | no | false |
Outputs
| name | description |
|---|---|
| sha | Full commit SHA (40 characters) |
| short-sha | Short commit SHA (7 characters) |
| message | Commit message (first line/subject) |
| message-raw | Full commit message (includes all lines, preserves newlines) |
| author | Author name |
| author-email | Author email address |
| date | Commit date (ISO format) |
| date-iso | Commit date in ISO 8601 format |