{"id":13485066,"url":"https://github.com/actions-ecosystem/action-create-comment","last_synced_at":"2025-07-25T13:31:43.212Z","repository":{"id":36955517,"uuid":"260858625","full_name":"actions-ecosystem/action-create-comment","owner":"actions-ecosystem","description":"💬 GitHub Action to create a comment","archived":false,"fork":false,"pushed_at":"2023-01-23T09:01:36.000Z","size":997,"stargazers_count":37,"open_issues_count":23,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-14T04:06:36.897Z","etag":null,"topics":["actions","comment","github"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/actions-ecosystem-create-comment","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/actions-ecosystem.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}},"created_at":"2020-05-03T08:22:39.000Z","updated_at":"2024-02-08T08:03:16.000Z","dependencies_parsed_at":"2023-02-12T21:46:08.870Z","dependency_job_id":null,"html_url":"https://github.com/actions-ecosystem/action-create-comment","commit_stats":{"total_commits":28,"total_committers":3,"mean_commits":9.333333333333334,"dds":0.5,"last_synced_commit":"2d454408d85bd2179062b5cdec3ca153dee48096"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-ecosystem%2Faction-create-comment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-ecosystem%2Faction-create-comment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-ecosystem%2Faction-create-comment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-ecosystem%2Faction-create-comment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actions-ecosystem","download_url":"https://codeload.github.com/actions-ecosystem/action-create-comment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227578598,"owners_count":17788904,"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":["actions","comment","github"],"created_at":"2024-07-31T17:01:44.767Z","updated_at":"2024-12-01T14:32:03.451Z","avatar_url":"https://github.com/actions-ecosystem.png","language":"TypeScript","readme":"# Action Create Comment\n\n[![actions-workflow-test][actions-workflow-test-badge]][actions-workflow-test]\n[![release][release-badge]][release]\n[![license][license-badge]][license]\n\n![screenshot](./docs/assets/screenshot.png)\n\nThis is a GitHub Action to create a comment to an issue or a pull request.\n\nThis action extract the number from an issue or a pull request which has triggered this by default.\nIt means you don't need to care about something annoying like whether you should use `${{ github.event.issue.number }}` or `${{ github.event.pull_request.number }}`.\n\nIt would be more useful to use this with other GitHub Actions' outputs.\n\n## Inputs\n\n|      NAME      |                          DESCRIPTION                          |   TYPE   | REQUIRED |                                     DEFAULT                                     |\n| -------------- | ------------------------------------------------------------- | -------- | -------- | ------------------------------------------------------------------------------- |\n| `github_token` | A GitHub token.                                               | `string` | `true`   | `N/A`                                                                           |\n| `body`         | The comment body.                                             | `string` | `true`   | `N/A`                                                                           |\n| `repo`         | The owner and repository name. e.g.) `Codertocat/Hello-World` | `string` | `false`  | `${{ github.repository }}`                                                      |\n| `number`       | The number of the issue or pull request.                      | `number` | `false`  | `${{ github.event.issue.number }}` or `${{ github.event.pull_request.number }}` |\n\n## Example\n\n```yaml\nname: Create Comment\n\non: [issue_comment]\n\njobs:\n  create_comment:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - uses: actions-ecosystem/action-create-comment@v1\n        if: ${{ startsWith(github.event.comment.body, '/hello') }}\n        with:\n          github_token: ${{ secrets.github_token }}\n          body: |\n            Hello, @${{ github.actor }}!\n```\n\n## License\n\nCopyright 2020 The Actions Ecosystem Authors.\n\nAction Create Comment is released under the [Apache License 2.0](./LICENSE).\n\n\u003c!-- badge links --\u003e\n\n[actions-workflow-test]: https://github.com/actions-ecosystem/action-create-comment/actions?query=workflow%3ATest\n[actions-workflow-test-badge]: https://img.shields.io/github/workflow/status/actions-ecosystem/action-create-comment/Test?label=Test\u0026style=for-the-badge\u0026logo=github\n\n[release]: https://github.com/actions-ecosystem/action-create-comment/releases\n[release-badge]: https://img.shields.io/github/v/release/actions-ecosystem/action-create-comment?style=for-the-badge\u0026logo=github\n\n[license]: LICENSE\n[license-badge]: \u003chttps://img.shields.io/github/license/actions-ecosystem/action-add-labels?style=for-the-badge\u003e\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-ecosystem%2Faction-create-comment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factions-ecosystem%2Faction-create-comment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-ecosystem%2Faction-create-comment/lists"}