{"id":6307199,"name":"badsyntax/github-action-issue-comment","ecosystem":"actions","description":"Comment on a GitHub issue using a Handlebars template","homepage":"","licenses":"mit","normalized_licenses":["MIT"],"repository_url":"https://github.com/badsyntax/github-action-issue-comment","keywords_array":["comment","github-action","github-actions","issues","pull-request"],"namespace":"badsyntax","versions_count":7,"first_release_published_at":"2021-12-14T19:55:29.000Z","latest_release_published_at":"2022-10-26T15:43:01.000Z","latest_release_number":"v1.0.2","last_synced_at":"2026-04-13T10:52:26.842Z","created_at":"2023-02-11T02:32:56.924Z","updated_at":"2026-04-13T10:52:26.842Z","registry_url":"https://github.com/badsyntax/github-action-issue-comment","install_command":null,"documentation_url":null,"metadata":{"name":"Issue Comment (Handlebars)","description":"Comment on a GitHub issue using a Handlebars template","author":"Richard Willis \u003cwillis.rh@gmail.com\u003e","branding":{"icon":"upload-cloud","color":"gray-dark"},"inputs":{"action":{"required":true,"description":"Action, one of \"update\", \"create\", \"delete\", or \"create-clean\". The \"create-clean\" action will first delete the existing comment, then create a new comment"},"template":{"required":false,"default":"","description":"The path to the handlebars template file, if not using the body options (optional). For example: ./.github/pr-comment-template.hbs"},"body":{"required":false,"default":"","description":"The comment body, if not using the template option (optional). For example: \"a message\""},"template-inputs":{"required":false,"default":"","description":"A JSON object of key value pairs (required only if using the template option). For example: {\"key\":\"value\"}"},"id":{"required":true,"description":"The unique id to track the comment. For example: deploy"},"issue-number":{"required":true,"description":"The GitHub issue number. For example: 1"},"token":{"required":true,"description":"GITHUB_TOKEN (issues: write, pull-requests: write) or a repo scoped PAT"}},"runs":{"using":"composite","steps":[{"name":"Generate Template Comment Id","uses":"actions/github-script@v6","id":"template-comment-id","with":{"script":"core.setOutput(\n  'template-comment-id',\n  `(ID: ${{ inputs.id }}-${{ inputs.issue-number }})`\n);\n"}},{"uses":"badsyntax/github-action-render-template@v1.0.1","name":"Render Comment Template","if":"inputs.action != 'delete' \u0026\u0026 inputs.template != ''","id":"render-template","with":{"template":"${{ inputs.template }}","inputs":"{\n  \"inputs\": ${{ inputs.template-inputs }},\n  \"id\": \"${{ steps.template-comment-id.outputs.template-comment-id }}\"\n}\n"}},{"uses":"actions/github-script@v6","name":"Render Comment Body","if":"inputs.action != 'delete' \u0026\u0026 inputs.body != ''","id":"render-body","with":{"script":"core.setOutput(\n  'body',\n  '${{inputs.body}}\\n\\n`${{ steps.template-comment-id.outputs.template-comment-id }}`'\n);\n"}},{"name":"Find PR Comment","uses":"peter-evans/find-comment@v2","if":"inputs.action != 'create'","id":"find-comment","with":{"issue-number":"${{ inputs.issue-number }}","body-includes":"${{ steps.template-comment-id.outputs.template-comment-id }}","token":"${{ inputs.token }}"}},{"name":"Delete Comment","uses":"actions/github-script@v6","if":"(inputs.action == 'delete' || inputs.action == 'create-clean') \u0026\u0026 steps.find-comment.outputs.comment-id != ''","with":{"script":"await github.rest.issues.deleteComment({\n  issue_number: context.issue.number,\n  owner: context.repo.owner,\n  repo: context.repo.repo,\n  comment_id: ${{ steps.find-comment.outputs.comment-id }},\n});\n"}},{"name":"Update Comment","if":"inputs.action == 'update' \u0026\u0026 steps.find-comment.outputs.comment-id != ''","uses":"peter-evans/create-or-update-comment@v2","with":{"token":"${{ inputs.token }}","comment-id":"${{ steps.find-comment.outputs.comment-id }}","body":"${{ steps.render-template.outputs.result || steps.render-body.outputs.body }}","edit-mode":"replace"}},{"name":"Create Comment","if":"inputs.action == 'create' || inputs.action == 'create-clean' || (inputs.action == 'update' \u0026\u0026 steps.find-comment.outputs.comment-id == '')","uses":"peter-evans/create-or-update-comment@v2","with":{"token":"${{ inputs.token }}","issue-number":"${{ inputs.issue-number }}","body":"${{ steps.render-template.outputs.result || steps.render-body.outputs.body }}"}}]},"default_branch":"master","path":null},"repo_metadata":{"uuid":"438370717","full_name":"badsyntax/github-action-issue-comment","owner":"badsyntax","description":"Comment on a GitHub Issue using a Handlebars template.","archived":false,"fork":false,"pushed_at":"2023-06-12T14:03:14.000Z","size":33,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-07-13T08:34:18.374Z","etag":null,"topics":["comment","github-action","github-actions","issues","pull-request"],"latest_commit_sha":null,"homepage":"","language":null,"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/badsyntax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null}},"created_at":"2021-12-14T19:10:55.000Z","updated_at":"2023-07-13T08:34:18.375Z","dependencies_parsed_at":"2023-02-10T12:00:24.486Z","dependency_job_id":null,"html_url":"https://github.com/badsyntax/github-action-issue-comment","commit_stats":{"total_commits":26,"total_committers":2,"mean_commits":13.0,"dds":"0.23076923076923073","last_synced_commit":"533e9d1cc8d039617d55e044018cf9bf3074d4d8"},"previous_names":[],"tags_count":7,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-issue-comment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-issue-comment/tags","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-issue-comment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badsyntax","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":145716985,"owners_count":6280053,"icon_url":"https://github.com/github.png","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"},"owner_record":{"login":"badsyntax","name":"Richard Willis","uuid":"102141","kind":"user","description":"","email":"","website":"https://richardwillis.info","location":"North Yorkshire, UK","twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/102141?v=4","repositories_count":126,"last_synced_at":"2023-03-10T23:06:07.108Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/badsyntax","created_at":"2022-11-02T20:03:39.062Z","updated_at":"2023-03-10T23:06:07.134Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badsyntax","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badsyntax/repositories"},"tags":[{"name":"v1.0.2","sha":"1ffcdf2db6a2afa72a51b9ec5f77b1f0cac43fab","kind":"commit","published_at":"2022-10-26T15:43:01.000Z","download_url":"https://codeload.github.com/badsyntax/github-action-issue-comment/tar.gz/v1.0.2","html_url":"https://github.com/badsyntax/github-action-issue-comment/releases/tag/v1.0.2","dependencies_parsed_at":"2023-06-02T10:09:50.938Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-issue-comment/tags/v1.0.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-issue-comment/tags/v1.0.2/manifests"},{"name":"v1.0.1","sha":"ffceb0491d7824b3e2c7abd51e7f5ac0138b6bf9","kind":"commit","published_at":"2022-02-28T06:31:49.000Z","download_url":"https://codeload.github.com/badsyntax/github-action-issue-comment/tar.gz/v1.0.1","html_url":"https://github.com/badsyntax/github-action-issue-comment/releases/tag/v1.0.1","dependencies_parsed_at":"2023-05-31T01:34:56.275Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-issue-comment/tags/v1.0.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-issue-comment/tags/v1.0.1/manifests"},{"name":"v1.0.0","sha":"a882a3b5320b198644623a99a234bfa7e9be1ede","kind":"commit","published_at":"2021-12-15T08:09:23.000Z","download_url":"https://codeload.github.com/badsyntax/github-action-issue-comment/tar.gz/v1.0.0","html_url":"https://github.com/badsyntax/github-action-issue-comment/releases/tag/v1.0.0","dependencies_parsed_at":"2023-05-31T01:34:58.942Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-issue-comment/tags/v1.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-issue-comment/tags/v1.0.0/manifests"},{"name":"v0.0.4","sha":"a882a3b5320b198644623a99a234bfa7e9be1ede","kind":"commit","published_at":"2021-12-15T08:09:23.000Z","download_url":"https://codeload.github.com/badsyntax/github-action-issue-comment/tar.gz/v0.0.4","html_url":"https://github.com/badsyntax/github-action-issue-comment/releases/tag/v0.0.4","dependencies_parsed_at":"2023-05-31T01:35:00.865Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-issue-comment/tags/v0.0.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-issue-comment/tags/v0.0.4/manifests"},{"name":"v0.0.3","sha":"05ef19f69c4c2b603b37c64c53c0ca685ea5a0b4","kind":"commit","published_at":"2021-12-14T22:49:55.000Z","download_url":"https://codeload.github.com/badsyntax/github-action-issue-comment/tar.gz/v0.0.3","html_url":"https://github.com/badsyntax/github-action-issue-comment/releases/tag/v0.0.3","dependencies_parsed_at":"2023-05-31T01:35:02.717Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-issue-comment/tags/v0.0.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-issue-comment/tags/v0.0.3/manifests"},{"name":"v0.0.2","sha":"4291c762f6ba4025a6bbefac54214e0cbf3c44b7","kind":"commit","published_at":"2021-12-14T22:46:12.000Z","download_url":"https://codeload.github.com/badsyntax/github-action-issue-comment/tar.gz/v0.0.2","html_url":"https://github.com/badsyntax/github-action-issue-comment/releases/tag/v0.0.2","dependencies_parsed_at":"2023-05-31T01:35:07.390Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-issue-comment/tags/v0.0.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-issue-comment/tags/v0.0.2/manifests"},{"name":"v0.0.1","sha":"3882663b0eadbf04abab5fedb1b1d8999ffed844","kind":"commit","published_at":"2021-12-14T19:55:29.000Z","download_url":"https://codeload.github.com/badsyntax/github-action-issue-comment/tar.gz/v0.0.1","html_url":"https://github.com/badsyntax/github-action-issue-comment/releases/tag/v0.0.1","dependencies_parsed_at":"2023-05-31T01:35:09.534Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-issue-comment/tags/v0.0.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-issue-comment/tags/v0.0.1/manifests"}]},"repo_metadata_updated_at":"2023-07-14T09:45:14.621Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":2,"rankings":{"downloads":null,"dependent_repos_count":20.605292346696245,"dependent_packages_count":0.0,"stargazers_count":22.89336079860561,"forks_count":35.16399936618602,"docker_downloads_count":null,"average":19.66566312787197},"purl":"pkg:githubactions/badsyntax/github-action-issue-comment","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/badsyntax/github-action-issue-comment","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/actions/badsyntax/github-action-issue-comment","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/badsyntax/github-action-issue-comment/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2023-08-09T10:18:35.559Z","issues_count":1,"pull_requests_count":41,"avg_time_to_close_issue":534795.0,"avg_time_to_close_pull_request":3082213.4615384615,"issues_closed_count":1,"pull_requests_closed_count":39,"pull_request_authors_count":2,"issue_authors_count":1,"avg_comments_per_issue":5.0,"avg_comments_per_pull_request":1.146341463414634,"merged_pull_requests_count":14,"bot_issues_count":0,"bot_pull_requests_count":32,"past_year_issues_count":0,"past_year_pull_requests_count":16,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":1475674.642857143,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":14,"past_year_pull_request_authors_count":2,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":0.75,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":15,"past_year_merged_pull_requests_count":5},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/badsyntax%2Fgithub-action-issue-comment/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/badsyntax%2Fgithub-action-issue-comment/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/badsyntax%2Fgithub-action-issue-comment/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/badsyntax%2Fgithub-action-issue-comment/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/badsyntax%2Fgithub-action-issue-comment/codemeta","maintainers":[]}