{"id":27194857,"url":"https://github.com/cssnr/get-commit-action","last_synced_at":"2026-06-05T01:31:36.362Z","repository":{"id":283892905,"uuid":"953214178","full_name":"cssnr/get-commit-action","owner":"cssnr","description":"Get Commit and Parse Details","archived":false,"fork":false,"pushed_at":"2025-03-22T21:31:09.000Z","size":0,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T21:33:44.979Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cssnr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-22T20:39:18.000Z","updated_at":"2025-03-22T21:25:32.000Z","dependencies_parsed_at":"2025-03-22T21:33:50.130Z","dependency_job_id":"89f518c8-e381-46d7-9753-242a347763d9","html_url":"https://github.com/cssnr/get-commit-action","commit_stats":null,"previous_names":["cssnr/get-commit-action"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssnr%2Fget-commit-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssnr%2Fget-commit-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssnr%2Fget-commit-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssnr%2Fget-commit-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cssnr","download_url":"https://codeload.github.com/cssnr/get-commit-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248101819,"owners_count":21048046,"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":[],"created_at":"2025-04-09T19:44:01.057Z","updated_at":"2025-04-09T19:44:01.655Z","avatar_url":"https://github.com/cssnr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub Tag Major](https://img.shields.io/github/v/tag/cssnr/get-commit-action?sort=semver\u0026filter=!v*.*\u0026logo=git\u0026logoColor=white\u0026labelColor=585858\u0026label=%20)](https://github.com/cssnr/get-commit-action/tags)\n[![GitHub Tag Minor](https://img.shields.io/github/v/tag/cssnr/get-commit-action?sort=semver\u0026filter=!v*.*.*\u0026logo=git\u0026logoColor=white\u0026labelColor=585858\u0026label=%20)](https://github.com/cssnr/get-commit-action/tags)\n[![GitHub Release Version](https://img.shields.io/github/v/release/cssnr/get-commit-action?logo=git\u0026logoColor=white\u0026labelColor=585858\u0026label=%20)](https://github.com/cssnr/get-commit-action/releases/latest)\n[![GitHub Dist Size](https://img.shields.io/github/size/cssnr/get-commit-action/dist%2Findex.js?label=dist%20size)](https://github.com/cssnr/get-commit-action/blob/master/src/index.js)\n[![Workflow Release](https://img.shields.io/github/actions/workflow/status/cssnr/get-commit-action/release.yaml?logo=github\u0026label=release)](https://github.com/cssnr/get-commit-action/actions/workflows/release.yaml)\n[![Workflow Test](https://img.shields.io/github/actions/workflow/status/cssnr/get-commit-action/test.yaml?logo=github\u0026label=test)](https://github.com/cssnr/get-commit-action/actions/workflows/test.yaml)\n[![Workflow lint](https://img.shields.io/github/actions/workflow/status/cssnr/get-commit-action/lint.yaml?logo=github\u0026label=lint)](https://github.com/cssnr/get-commit-action/actions/workflows/lint.yaml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=cssnr_get-commit-action\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=cssnr_get-commit-action)\n[![GitHub Last Commit](https://img.shields.io/github/last-commit/cssnr/get-commit-action?logo=github\u0026label=updated)](https://github.com/cssnr/get-commit-action/graphs/commit-activity)\n[![Codeberg Last Commit](https://img.shields.io/gitea/last-commit/cssnr/get-commit-action/master?gitea_url=https%3A%2F%2Fcodeberg.org%2F\u0026logo=codeberg\u0026logoColor=white\u0026label=updated)](https://codeberg.org/cssnr/get-commit-action)\n[![GitHub Top Language](https://img.shields.io/github/languages/top/cssnr/get-commit-action?logo=htmx)](https://github.com/cssnr/get-commit-action)\n[![GitHub repo size](https://img.shields.io/github/repo-size/cssnr/get-commit-action?logo=bookstack\u0026logoColor=white\u0026label=repo%20size)](https://github.com/cssnr/get-commit-action)\n[![GitHub Discussions](https://img.shields.io/github/discussions/cssnr/get-commit-action)](https://github.com/cssnr/get-commit-action/discussions)\n[![GitHub Forks](https://img.shields.io/github/forks/cssnr/get-commit-action?style=flat\u0026logo=github)](https://github.com/cssnr/get-commit-action/forks)\n[![GitHub Repo Stars](https://img.shields.io/github/stars/cssnr/get-commit-action?style=flat\u0026logo=github)](https://github.com/cssnr/get-commit-action/stargazers)\n[![GitHub Org Stars](https://img.shields.io/github/stars/cssnr?style=flat\u0026logo=github\u0026label=org%20stars)](https://cssnr.github.io/)\n[![Discord](https://img.shields.io/discord/899171661457293343?logo=discord\u0026logoColor=white\u0026label=discord\u0026color=7289da)](https://discord.gg/wXy6m2X8wY)\n\n# Get Commit Action\n\n- [Inputs](#Inputs)\n- [Outputs](#Outputs)\n- [Examples](#Examples)\n- [Tags](#Tags)\n- [Support](#Support)\n- [Contributing](#Contributing)\n\nGet Commit and Parse Details such as the head Commit Message for a Pull Request event and more...\n\nThis can be done with a simple `run:` step; however, this action simplifies making the request, parsing the response, and setting the output.\n\n\u003cdetails\u003e\u003csummary\u003eView Native Alternative\u003c/summary\u003e\n\n```yaml\n- name: 'Get Commit Message'\n  id: commit\n  env:\n    GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n    REF: ${{ github.event.pull_request.head.sha }}\n  run: |\n    echo message=$(gh api \"/repos/${GITHUB_REPOSITORY}/commits/${REF}\" \\\n      -H \"Accept: application/vnd.github+json\" \\\n      -H \"X-GitHub-Api-Version: 2022-11-28\" \\\n      --jq '.commit.message') \u003e\u003e \"${GITHUB_OUTPUT}\"\n```\n\nNote: This uses the `--jq` option of the `gh` cli as a selector for the desired data.\n\n\u003c/details\u003e\n\nSee some [Examples](#Examples) of this action below...\n\n## Inputs\n\n| Input    | Req. | Default\u0026nbsp;Value | Input\u0026nbsp;Description |\n| :------- | :--: | :----------------- | :--------------------- |\n| sha      |  -   | `GITHUB_SHA`       | SHA of Commit          |\n| selector |  -   | -                  | Object Selector \\*     |\n| summary  |  -   | `true`             | Add Summary to Job \\*  |\n| token    |  -   | `github.token`     | Only for PAT           |\n\n**selector:** JavaScript Object selector in dot notation. Examples: `commit` or `commit.message`\n\n**summary:** Write the results to the Job Summary. To disable set to: `false`\n\n\u003cdetails\u003e\u003csummary\u003e👀 View Example Job Summary\u003c/summary\u003e\n\n---\n\nsha: [d6b030c28fb4e55c233b83323ffd1b41cf47241a](https://github.com/cssnr/get-commit-action/commit/d6b030c28fb4e55c233b83323ffd1b41cf47241a)\n\n\u003cdetails open\u003e\u003csummary\u003eResult\u003c/summary\u003e\u003cpre lang=\"text\"\u003e\u003ccode\u003eUpdates\u003c/code\u003e\u003c/pre\u003e\n\u003c/details\u003e\n\u003cdetails\u003e\u003csummary\u003eCommit\u003c/summary\u003e\u003cpre lang=\"json\"\u003e\u003ccode\u003e{\n  \"sha\": \"d6b030c28fb4e55c233b83323ffd1b41cf47241a\",\n  \"node_id\": \"C_kwDOONDk4toAKGQ2YjAzMGMyOGZiNGU1NWMyMzNiODMzMjNmZmQxYjQxY2Y0NzI0MWE\",\n  \"commit\": {\n    \"author\": {\n      \"name\": \"Shane\",\n      \"email\": \"6071159+smashedr@users.noreply.github.com\",\n      \"date\": \"2025-03-22T22:45:32Z\"\n    },\n    \"committer\": {\n      \"name\": \"Shane\",\n      \"email\": \"6071159+smashedr@users.noreply.github.com\",\n      \"date\": \"2025-03-22T22:45:32Z\"\n    },\n    \"message\": \"Updates\",\n    \"tree\": {\n      \"sha\": \"533436a6c0359dd3743da72acc30366d5d50fbc2\",\n      \"url\": \"https://api.github.com/repos/cssnr/get-commit-action/git/trees/533436a6c0359dd3743da72acc30366d5d50fbc2\"\n    },\n    \"url\": \"https://api.github.com/repos/cssnr/get-commit-action/git/commits/d6b030c28fb4e55c233b83323ffd1b41cf47241a\",\n    \"comment_count\": 0,\n    \"verification\": {\n      \"verified\": true,\n      \"reason\": \"valid\",\n      \"signature\": \"-----BEGIN PGP SIGNATURE-----\\n\\niHUEABYKAB0WIQRXgKNZZbHv52xw4573HsvCBq6NtQUCZ989jAAKCRD3HsvCBq6N\\ntc2QAP4xDEyh1mPoDbry+AagGQgYQzQU9pN+Q9A1nLNptiLR8gD/c5fEHeDBOIJo\\nNqZCh4BACo3KFF3sXysTdqr3zWIOqwI=\\n=0MJn\\n-----END PGP SIGNATURE-----\",\n      \"payload\": \"tree 533436a6c0359dd3743da72acc30366d5d50fbc2\\nparent 49ed46652824d2fa19f75ae0cb9b56b8a6563a40\\nauthor Shane \u003c6071159+smashedr@users.noreply.github.com\u003e 1742683532 -0700\\ncommitter Shane \u003c6071159+smashedr@users.noreply.github.com\u003e 1742683532 -0700\\n\\nUpdates\\n\",\n      \"verified_at\": \"2025-03-22T22:45:07Z\"\n    }\n  },\n  \"url\": \"https://api.github.com/repos/cssnr/get-commit-action/commits/d6b030c28fb4e55c233b83323ffd1b41cf47241a\",\n  \"html_url\": \"https://github.com/cssnr/get-commit-action/commit/d6b030c28fb4e55c233b83323ffd1b41cf47241a\",\n  \"comments_url\": \"https://api.github.com/repos/cssnr/get-commit-action/commits/d6b030c28fb4e55c233b83323ffd1b41cf47241a/comments\",\n  \"author\": {\n    \"login\": \"smashedr\",\n    \"id\": 6071159,\n    \"node_id\": \"MDQ6VXNlcjYwNzExNTk=\",\n    \"avatar_url\": \"https://avatars.githubusercontent.com/u/6071159?v=4\",\n    \"gravatar_id\": \"\",\n    \"url\": \"https://api.github.com/users/smashedr\",\n    \"html_url\": \"https://github.com/smashedr\",\n    \"followers_url\": \"https://api.github.com/users/smashedr/followers\",\n    \"following_url\": \"https://api.github.com/users/smashedr/following{/other_user}\",\n    \"gists_url\": \"https://api.github.com/users/smashedr/gists{/gist_id}\",\n    \"starred_url\": \"https://api.github.com/users/smashedr/starred{/owner}{/repo}\",\n    \"subscriptions_url\": \"https://api.github.com/users/smashedr/subscriptions\",\n    \"organizations_url\": \"https://api.github.com/users/smashedr/orgs\",\n    \"repos_url\": \"https://api.github.com/users/smashedr/repos\",\n    \"events_url\": \"https://api.github.com/users/smashedr/events{/privacy}\",\n    \"received_events_url\": \"https://api.github.com/users/smashedr/received_events\",\n    \"type\": \"User\",\n    \"user_view_type\": \"public\",\n    \"site_admin\": false\n  },\n  \"committer\": {\n    \"login\": \"smashedr\",\n    \"id\": 6071159,\n    \"node_id\": \"MDQ6VXNlcjYwNzExNTk=\",\n    \"avatar_url\": \"https://avatars.githubusercontent.com/u/6071159?v=4\",\n    \"gravatar_id\": \"\",\n    \"url\": \"https://api.github.com/users/smashedr\",\n    \"html_url\": \"https://github.com/smashedr\",\n    \"followers_url\": \"https://api.github.com/users/smashedr/followers\",\n    \"following_url\": \"https://api.github.com/users/smashedr/following{/other_user}\",\n    \"gists_url\": \"https://api.github.com/users/smashedr/gists{/gist_id}\",\n    \"starred_url\": \"https://api.github.com/users/smashedr/starred{/owner}{/repo}\",\n    \"subscriptions_url\": \"https://api.github.com/users/smashedr/subscriptions\",\n    \"organizations_url\": \"https://api.github.com/users/smashedr/orgs\",\n    \"repos_url\": \"https://api.github.com/users/smashedr/repos\",\n    \"events_url\": \"https://api.github.com/users/smashedr/events{/privacy}\",\n    \"received_events_url\": \"https://api.github.com/users/smashedr/received_events\",\n    \"type\": \"User\",\n    \"user_view_type\": \"public\",\n    \"site_admin\": false\n  },\n  \"parents\": [\n    {\n      \"sha\": \"49ed46652824d2fa19f75ae0cb9b56b8a6563a40\",\n      \"url\": \"https://api.github.com/repos/cssnr/get-commit-action/commits/49ed46652824d2fa19f75ae0cb9b56b8a6563a40\",\n      \"html_url\": \"https://github.com/cssnr/get-commit-action/commit/49ed46652824d2fa19f75ae0cb9b56b8a6563a40\"\n    }\n  ],\n  \"stats\": {\n    \"total\": 2,\n    \"additions\": 1,\n    \"deletions\": 1\n  },\n  \"files\": [\n    {\n      \"sha\": \"b095106eaeb1d8cd5cf78be67576080783600386\",\n      \"filename\": \".github/workflows/test.yaml\",\n      \"status\": \"modified\",\n      \"additions\": 1,\n      \"deletions\": 1,\n      \"changes\": 2,\n      \"blob_url\": \"https://github.com/cssnr/get-commit-action/blob/d6b030c28fb4e55c233b83323ffd1b41cf47241a/.github%2Fworkflows%2Ftest.yaml\",\n      \"raw_url\": \"https://github.com/cssnr/get-commit-action/raw/d6b030c28fb4e55c233b83323ffd1b41cf47241a/.github%2Fworkflows%2Ftest.yaml\",\n      \"contents_url\": \"https://api.github.com/repos/cssnr/get-commit-action/contents/.github%2Fworkflows%2Ftest.yaml?ref=d6b030c28fb4e55c233b83323ffd1b41cf47241a\",\n      \"patch\": \"@@ -39,7 +39,7 @@ jobs:\\n           #sha: dd49c0cc254760111a78f2c739efcedd567e2bf2\\n \\n       - name: \\\"1: Verify Non-Pull\\\"\\n-        if: ${{ !github.event.act }}\\n+        if: ${{ github.event_name != 'pull_request' }}\\n         env:\\n           COMMIT: ${{ steps.test.outputs.commit }}\\n           RESULT: ${{ steps.test.outputs.result }}\"\n    }\n  ]\n}\u003c/code\u003e\u003c/pre\u003e\n\u003c/details\u003e\n\u003cdetails\u003e\u003csummary\u003eConfig\u003c/summary\u003e\u003cpre lang=\"yaml\"\u003e\u003ccode\u003esha: \"d6b030c28fb4e55c233b83323ffd1b41cf47241a\"\nselector: \"commit.message\"\nsummary: true\u003c/code\u003e\u003c/pre\u003e\n\u003c/details\u003e\n\n---\n\n\u003c/details\u003e\n\nGet the commit for the SHA that triggered the workflow.\n\n```yaml\n- name: 'Get Commit Action'\n  id: commit\n  uses: cssnr/get-commit-action@master\n```\n\nGet the head commit for a pull_request event.\n\n```yaml\n- name: 'Get Commit Action'\n  id: commit\n  uses: cssnr/get-commit-action@master\n  with:\n    sha: ${{ github.event.pull_request.head.sha }}\n```\n\nSee the [Examples](#Examples) for more.\n\n## Outputs\n\n| Output | Description    |\n| :----- | :------------- |\n| sha    | Commit SHA     |\n| commit | Commit JSON    |\n| result | Parsed Results |\n\n\u003cdetails\u003e\u003csummary\u003eView Example Commit JSON\u003c/summary\u003e\n\n```json\n{\n  \"sha\": \"d6b030c28fb4e55c233b83323ffd1b41cf47241a\",\n  \"node_id\": \"C_kwDOONDk4toAKGQ2YjAzMGMyOGZiNGU1NWMyMzNiODMzMjNmZmQxYjQxY2Y0NzI0MWE\",\n  \"commit\": {\n    \"author\": {\n      \"name\": \"Shane\",\n      \"email\": \"6071159+smashedr@users.noreply.github.com\",\n      \"date\": \"2025-03-22T22:45:32Z\"\n    },\n    \"committer\": {\n      \"name\": \"Shane\",\n      \"email\": \"6071159+smashedr@users.noreply.github.com\",\n      \"date\": \"2025-03-22T22:45:32Z\"\n    },\n    \"message\": \"Updates\",\n    \"tree\": {\n      \"sha\": \"533436a6c0359dd3743da72acc30366d5d50fbc2\",\n      \"url\": \"https://api.github.com/repos/cssnr/get-commit-action/git/trees/533436a6c0359dd3743da72acc30366d5d50fbc2\"\n    },\n    \"url\": \"https://api.github.com/repos/cssnr/get-commit-action/git/commits/d6b030c28fb4e55c233b83323ffd1b41cf47241a\",\n    \"comment_count\": 0,\n    \"verification\": {\n      \"verified\": true,\n      \"reason\": \"valid\",\n      \"signature\": \"-----BEGIN PGP SIGNATURE-----\\n\\niHUEABYKAB0WIQRXgKNZZbHv52xw4573HsvCBq6NtQUCZ989jAAKCRD3HsvCBq6N\\ntc2QAP4xDEyh1mPoDbry+AagGQgYQzQU9pN+Q9A1nLNptiLR8gD/c5fEHeDBOIJo\\nNqZCh4BACo3KFF3sXysTdqr3zWIOqwI=\\n=0MJn\\n-----END PGP SIGNATURE-----\",\n      \"payload\": \"tree 533436a6c0359dd3743da72acc30366d5d50fbc2\\nparent 49ed46652824d2fa19f75ae0cb9b56b8a6563a40\\nauthor Shane \u003c6071159+smashedr@users.noreply.github.com\u003e 1742683532 -0700\\ncommitter Shane \u003c6071159+smashedr@users.noreply.github.com\u003e 1742683532 -0700\\n\\nUpdates\\n\",\n      \"verified_at\": \"2025-03-22T22:45:07Z\"\n    }\n  },\n  \"url\": \"https://api.github.com/repos/cssnr/get-commit-action/commits/d6b030c28fb4e55c233b83323ffd1b41cf47241a\",\n  \"html_url\": \"https://github.com/cssnr/get-commit-action/commit/d6b030c28fb4e55c233b83323ffd1b41cf47241a\",\n  \"comments_url\": \"https://api.github.com/repos/cssnr/get-commit-action/commits/d6b030c28fb4e55c233b83323ffd1b41cf47241a/comments\",\n  \"author\": {\n    \"login\": \"smashedr\",\n    \"id\": 6071159,\n    \"node_id\": \"MDQ6VXNlcjYwNzExNTk=\",\n    \"avatar_url\": \"https://avatars.githubusercontent.com/u/6071159?v=4\",\n    \"gravatar_id\": \"\",\n    \"url\": \"https://api.github.com/users/smashedr\",\n    \"html_url\": \"https://github.com/smashedr\",\n    \"followers_url\": \"https://api.github.com/users/smashedr/followers\",\n    \"following_url\": \"https://api.github.com/users/smashedr/following{/other_user}\",\n    \"gists_url\": \"https://api.github.com/users/smashedr/gists{/gist_id}\",\n    \"starred_url\": \"https://api.github.com/users/smashedr/starred{/owner}{/repo}\",\n    \"subscriptions_url\": \"https://api.github.com/users/smashedr/subscriptions\",\n    \"organizations_url\": \"https://api.github.com/users/smashedr/orgs\",\n    \"repos_url\": \"https://api.github.com/users/smashedr/repos\",\n    \"events_url\": \"https://api.github.com/users/smashedr/events{/privacy}\",\n    \"received_events_url\": \"https://api.github.com/users/smashedr/received_events\",\n    \"type\": \"User\",\n    \"user_view_type\": \"public\",\n    \"site_admin\": false\n  },\n  \"committer\": {\n    \"login\": \"smashedr\",\n    \"id\": 6071159,\n    \"node_id\": \"MDQ6VXNlcjYwNzExNTk=\",\n    \"avatar_url\": \"https://avatars.githubusercontent.com/u/6071159?v=4\",\n    \"gravatar_id\": \"\",\n    \"url\": \"https://api.github.com/users/smashedr\",\n    \"html_url\": \"https://github.com/smashedr\",\n    \"followers_url\": \"https://api.github.com/users/smashedr/followers\",\n    \"following_url\": \"https://api.github.com/users/smashedr/following{/other_user}\",\n    \"gists_url\": \"https://api.github.com/users/smashedr/gists{/gist_id}\",\n    \"starred_url\": \"https://api.github.com/users/smashedr/starred{/owner}{/repo}\",\n    \"subscriptions_url\": \"https://api.github.com/users/smashedr/subscriptions\",\n    \"organizations_url\": \"https://api.github.com/users/smashedr/orgs\",\n    \"repos_url\": \"https://api.github.com/users/smashedr/repos\",\n    \"events_url\": \"https://api.github.com/users/smashedr/events{/privacy}\",\n    \"received_events_url\": \"https://api.github.com/users/smashedr/received_events\",\n    \"type\": \"User\",\n    \"user_view_type\": \"public\",\n    \"site_admin\": false\n  },\n  \"parents\": [\n    {\n      \"sha\": \"49ed46652824d2fa19f75ae0cb9b56b8a6563a40\",\n      \"url\": \"https://api.github.com/repos/cssnr/get-commit-action/commits/49ed46652824d2fa19f75ae0cb9b56b8a6563a40\",\n      \"html_url\": \"https://github.com/cssnr/get-commit-action/commit/49ed46652824d2fa19f75ae0cb9b56b8a6563a40\"\n    }\n  ],\n  \"stats\": {\n    \"total\": 2,\n    \"additions\": 1,\n    \"deletions\": 1\n  },\n  \"files\": [\n    {\n      \"sha\": \"b095106eaeb1d8cd5cf78be67576080783600386\",\n      \"filename\": \".github/workflows/test.yaml\",\n      \"status\": \"modified\",\n      \"additions\": 1,\n      \"deletions\": 1,\n      \"changes\": 2,\n      \"blob_url\": \"https://github.com/cssnr/get-commit-action/blob/d6b030c28fb4e55c233b83323ffd1b41cf47241a/.github%2Fworkflows%2Ftest.yaml\",\n      \"raw_url\": \"https://github.com/cssnr/get-commit-action/raw/d6b030c28fb4e55c233b83323ffd1b41cf47241a/.github%2Fworkflows%2Ftest.yaml\",\n      \"contents_url\": \"https://api.github.com/repos/cssnr/get-commit-action/contents/.github%2Fworkflows%2Ftest.yaml?ref=d6b030c28fb4e55c233b83323ffd1b41cf47241a\",\n      \"patch\": \"@@ -39,7 +39,7 @@ jobs:\\n           #sha: dd49c0cc254760111a78f2c739efcedd567e2bf2\\n \\n       - name: \\\"1: Verify Non-Pull\\\"\\n-        if: ${{ !github.event.act }}\\n+        if: ${{ github.event_name != 'pull_request' }}\\n         env:\\n           COMMIT: ${{ steps.test.outputs.commit }}\\n           RESULT: ${{ steps.test.outputs.result }}\"\n    }\n  ]\n}\n```\n\n\u003c/details\u003e\n\n```yaml\n- name: 'Get Commit Action'\n  id: commit\n  uses: cssnr/get-commit-action@master\n\n- name: 'Echo Output'\n  env:\n    COMMIT: ${{ steps.commit.outputs.commit }}\n    RESULT: ${{ steps.commit.outputs.result }}\n  run: |\n    echo \"sha: ${{ steps.commit.outputs.sha }}\"\n    echo \"commit: ${COMMIT}\"\n    echo \"result: ${RESULT}\"\n```\n\nNote: due to the way `${{}}` expressions are evaluated, multi-line output gets executed in a run block.\n\n## Examples\n\n💡 _Click on an example heading to expand or collapse the example._\n\n\u003cdetails open\u003e\u003csummary\u003eGet The Commit Message\u003c/summary\u003e\n\n```yaml\n- name: 'Get Commit Action'\n  id: commit\n  uses: cssnr/get-commit-action@master\n  with:\n    selector: 'commit.message'\n\n- name: 'Echo Output'\n  env:\n    RESULT: ${{ steps.commit.outputs.result }}\n  run: |\n    echo \"commit.message: ${RESULT}\"\n```\n\n\u003c/details\u003e\n\u003cdetails open\u003e\u003csummary\u003eGet The head Commit Message for a PR\u003c/summary\u003e\n\n```yaml\n- name: 'Get Commit Action'\n  if: ${{ github.event_name == 'pull_request' }}\n  id: commit\n  uses: cssnr/get-commit-action@master\n  with:\n    sha: ${{ github.event.pull_request.head.sha }}\n    selector: 'commit.message'\n\n- name: 'Echo Output'\n  env:\n    RESULT: ${{ steps.commit.outputs.result }}\n  run: |\n    echo \"commit.message: ${RESULT}\"\n```\n\n\u003c/details\u003e\n\u003cdetails\u003e\u003csummary\u003eGet The Author's Login\u003c/summary\u003e\n\n```yaml\n- name: 'Get Commit Action'\n  if: ${{ github.event_name == 'pull_request' }}\n  id: commit\n  uses: cssnr/get-commit-action@master\n  with:\n    sha: ${{ github.event.pull_request.head.sha }}\n    selector: 'author.login'\n\n- name: 'Echo Output'\n  run: |\n    echo \"author.login: ${{ steps.commit.outputs.result }}\"\n```\n\n\u003c/details\u003e\n\n\u003e More Examples Coming Soon...\n\nFor more examples, you can check out other projects using this action:  \nhttps://github.com/cssnr/get-commit-action/network/dependents\n\n## Tags\n\nThe following rolling [tags](https://github.com/cssnr/get-commit-action/tags) are maintained.\n\n| Version\u0026nbsp;Tag                                                                                                                                                                                                   | Rolling | Bugs | Feat. |   Name    |  Target  | Example  |\n| :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-----: | :--: | :---: | :-------: | :------: | :------- |\n| [![GitHub Tag Major](https://img.shields.io/github/v/tag/cssnr/get-commit-action?sort=semver\u0026filter=!v*.*\u0026style=for-the-badge\u0026label=%20\u0026color=44cc10)](https://github.com/cssnr/get-commit-action/releases/latest) |   ✅    |  ✅  |  ✅   | **Major** | `vN.x.x` | `vN`     |\n| [![GitHub Tag Minor](https://img.shields.io/github/v/tag/cssnr/get-commit-action?sort=semver\u0026filter=!v*.*.*\u0026style=for-the-badge\u0026label=%20\u0026color=blue)](https://github.com/cssnr/get-commit-action/releases/latest) |   ✅    |  ✅  |  ❌   | **Minor** | `vN.N.x` | `vN.N`   |\n| [![GitHub Release](https://img.shields.io/github/v/release/cssnr/get-commit-action?style=for-the-badge\u0026label=%20\u0026color=red)](https://github.com/cssnr/get-commit-action/releases/latest)                           |   ❌    |  ❌  |  ❌   | **Micro** | `vN.N.N` | `vN.N.N` |\n\nYou can view the release notes for each version on the [releases](https://github.com/cssnr/get-commit-action/releases) page.\n\nThe **Major** tag is recommended. It is the most up-to-date and always backwards compatible.\nBreaking changes would result in a **Major** version bump. At a minimum you should use a **Minor** tag.\n\n# Support\n\nFor general help or to request a feature, see:\n\n- Q\u0026A Discussion: https://github.com/cssnr/get-commit-action/discussions/categories/q-a\n- Request a Feature: https://github.com/cssnr/get-commit-action/discussions/categories/feature-requests\n\nIf you are experiencing an issue/bug or getting unexpected results, you can:\n\n- Report an Issue: https://github.com/cssnr/get-commit-action/issues\n- Chat with us on Discord: https://discord.gg/wXy6m2X8wY\n- Provide General Feedback: [https://cssnr.github.io/feedback/](https://cssnr.github.io/feedback/?app=Update%20Release%20Notes)\n\nFor more information, see the CSSNR [SUPPORT.md](https://github.com/cssnr/.github/blob/master/.github/SUPPORT.md#support).\n\n# Contributing\n\nCurrently, the best way to contribute to this project is to star this project on GitHub.\n\nFor more information, see the CSSNR [CONTRIBUTING.md](https://github.com/cssnr/.github/blob/master/.github/CONTRIBUTING.md#contributing).\n\nAdditionally, you can support other GitHub Actions I have published:\n\n- [Stack Deploy Action](https://github.com/cssnr/stack-deploy-action?tab=readme-ov-file#readme)\n- [Portainer Stack Deploy](https://github.com/cssnr/portainer-stack-deploy-action?tab=readme-ov-file#readme)\n- [VirusTotal Action](https://github.com/cssnr/virustotal-action?tab=readme-ov-file#readme)\n- [Mirror Repository Action](https://github.com/cssnr/mirror-repository-action?tab=readme-ov-file#readme)\n- [Update Version Tags Action](https://github.com/cssnr/update-version-tags-action?tab=readme-ov-file#readme)\n- [Update JSON Value Action](https://github.com/cssnr/update-json-value-action?tab=readme-ov-file#readme)\n- [Parse Issue Form Action](https://github.com/cssnr/parse-issue-form-action?tab=readme-ov-file#readme)\n- [Cloudflare Purge Cache Action](https://github.com/cssnr/cloudflare-purge-cache-action?tab=readme-ov-file#readme)\n- [Mozilla Addon Update Action](https://github.com/cssnr/mozilla-addon-update-action?tab=readme-ov-file#readme)\n- [Docker Tags Action](https://github.com/cssnr/docker-tags-action?tab=readme-ov-file#readme)\n- [Package Changelog Action](https://github.com/cssnr/package-changelog-action?tab=readme-ov-file#readme)\n- [NPM Outdated Check Action](https://github.com/cssnr/npm-outdated-action?tab=readme-ov-file#readme)\n\nFor a full list of current projects to support visit: [https://cssnr.github.io/](https://cssnr.github.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssnr%2Fget-commit-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcssnr%2Fget-commit-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssnr%2Fget-commit-action/lists"}