{"id":13529861,"url":"https://github.com/rlespinasse/git-commit-data-action","last_synced_at":"2025-04-09T12:09:01.854Z","repository":{"id":45198210,"uuid":"261011663","full_name":"rlespinasse/git-commit-data-action","owner":"rlespinasse","description":"Action to expose git commit info","archived":false,"fork":false,"pushed_at":"2025-03-11T19:45:38.000Z","size":132,"stargazers_count":41,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"v1.x","last_synced_at":"2025-04-02T11:04:31.634Z","etag":null,"topics":["commit","git","github-actions","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rlespinasse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"rlespinasse"}},"created_at":"2020-05-03T20:07:32.000Z","updated_at":"2025-03-11T19:45:40.000Z","dependencies_parsed_at":"2024-04-29T07:27:33.030Z","dependency_job_id":"44186286-6bc4-44c4-80fc-faaf5e9981ac","html_url":"https://github.com/rlespinasse/git-commit-data-action","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlespinasse%2Fgit-commit-data-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlespinasse%2Fgit-commit-data-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlespinasse%2Fgit-commit-data-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlespinasse%2Fgit-commit-data-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rlespinasse","download_url":"https://codeload.github.com/rlespinasse/git-commit-data-action/tar.gz/refs/heads/v1.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248036067,"owners_count":21037092,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["commit","git","github-actions","hacktoberfest"],"created_at":"2024-08-01T07:00:40.101Z","updated_at":"2025-04-09T12:09:01.836Z","avatar_url":"https://github.com/rlespinasse.png","language":"Shell","funding_links":["https://github.com/sponsors/rlespinasse"],"categories":["Community Resources"],"sub_categories":["GitHub Tools and Management"],"readme":"# Git commit data action\n\nThis action exposes git commit data.\n\n- **GIT_COMMIT_SHA** expose `commit hash`\n- **GIT_COMMIT_SHORT_SHA** expose `abbreviated commit hash`\n- **GIT_COMMIT_AUTHOR** expose `Author name \u003cauthor@email.tld\u003e`\n- **GIT_COMMIT_AUTHOR_NAME** expose `Author name`\n- **GIT_COMMIT_AUTHOR_EMAIL** expose `author@email.tld`\n- **GIT_COMMIT_COMMITTER** expose `Committer name \u003ccommitter@email.tld\u003e`\n- **GIT_COMMIT_COMMITTER_NAME** expose `Committer name`\n- **GIT_COMMIT_COMMITTER_EMAIL** expose `committer@email.tld`\n- **GIT_COMMIT_MESSAGE_SUBJECT** expose `The first line of the commit message`\n- **GIT_COMMIT_MESSAGE_SUBJECT_SANITIZED** expose `the-first-line-of-the-commit-message-in-sanitized-way`\n- **GIT_COMMIT_MESSAGE_BODY** expose `The body of the commit message`\n\n## Exposed environment variables\n\n```yaml\n- name: Expose git commit data\n  uses: rlespinasse/git-commit-data-action@v1\n\n- name: Print git commit data\n  run: |\n    echo \"Get commit info\"\n    echo \" - ${{ env.GIT_COMMIT_SHA }}\"\n    echo \" - ${{ env.GIT_COMMIT_SHORT_SHA }}\"\n    echo \"Get author info\"\n    echo \" - ${{ env.GIT_COMMIT_AUTHOR }}\"\n    echo \" - ${{ env.GIT_COMMIT_AUTHOR_NAME }}\"\n    echo \" - ${{ env.GIT_COMMIT_AUTHOR_EMAIL }}\"\n    echo \"Get committer info\"\n    echo \" - ${{ env.GIT_COMMIT_COMMITTER }}\"\n    echo \" - ${{ env.GIT_COMMIT_COMMITTER_NAME }}\"\n    echo \" - ${{ env.GIT_COMMIT_COMMITTER_EMAIL }}\"\n    echo \"Get message info\"\n    echo \" - ${{ env.GIT_COMMIT_MESSAGE_SUBJECT }}\"\n    echo \" - ${{ env.GIT_COMMIT_MESSAGE_SUBJECT_SANITIZED }}\"\n    echo \" - ${{ env.GIT_COMMIT_MESSAGE_BODY }}\"\n```\n\n## Need other commit data\n\nFeel free to contribute. Check out the [developer guide](DEVELOPER.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlespinasse%2Fgit-commit-data-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frlespinasse%2Fgit-commit-data-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlespinasse%2Fgit-commit-data-action/lists"}