{"id":14986033,"url":"https://github.com/actions-cool/maintain-one-comment","last_synced_at":"2026-04-11T17:25:24.507Z","repository":{"id":50720607,"uuid":"339945515","full_name":"actions-cool/maintain-one-comment","owner":"actions-cool","description":"📌 Maintain just one comment in Issue and PR by GitHub Action.","archived":false,"fork":false,"pushed_at":"2024-05-22T10:09:47.000Z","size":629,"stargazers_count":36,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-18T15:04:01.052Z","etag":null,"topics":["action","actions","comment","github-actions","issues","pull-request"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/actions-cool.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2021-02-18T05:28:12.000Z","updated_at":"2025-06-06T05:27:04.000Z","dependencies_parsed_at":"2024-05-22T11:08:50.414Z","dependency_job_id":null,"html_url":"https://github.com/actions-cool/maintain-one-comment","commit_stats":{"total_commits":38,"total_committers":6,"mean_commits":6.333333333333333,"dds":0.5263157894736843,"last_synced_commit":"4b2dbf086015f892dcb5e8c1106f5fccd6c1476b"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":"actions-cool/action-js-template","purl":"pkg:github/actions-cool/maintain-one-comment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-cool%2Fmaintain-one-comment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-cool%2Fmaintain-one-comment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-cool%2Fmaintain-one-comment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-cool%2Fmaintain-one-comment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actions-cool","download_url":"https://codeload.github.com/actions-cool/maintain-one-comment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-cool%2Fmaintain-one-comment/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260791836,"owners_count":23064001,"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":["action","actions","comment","github-actions","issues","pull-request"],"created_at":"2024-09-24T14:12:10.328Z","updated_at":"2026-04-11T17:25:19.445Z","avatar_url":"https://github.com/actions-cool.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📌 Maintain One Comment\n\n[![](https://github.com/actions-cool/maintain-one-comment/actions/workflows/test.yml/badge.svg)](https://github.com/actions-cool/maintain-one-comment/actions/workflows/test.yml)\n[![](https://img.shields.io/badge/marketplace-maintain--one--comment-blueviolet?style=flat-square)](https://github.com/marketplace/actions/maintain-one-comment)\n[![](https://img.shields.io/github/v/release/actions-cool/maintain-one-comment?style=flat-square\u0026color=orange)](https://github.com/actions-cool/maintain-one-comment/releases)\n\nMaintain just one comment in Issue and PR.\n\n- This Action is only applicable to triggers related to issue and pull_request\n- When the **filtered comments** do not exist, will add a comment\n- When the **filtered comments** is only one, this comment will be updated\n- When the number of **filtered comments** exceeds 1, no operation will be performed\n\n## Preview\n- Issue: https://github.com/actions-cool/maintain-one-comment/issues/1\n- PR: https://github.com/actions-cool/maintain-one-comment/pull/2\n\n## How to use?\n```yml\nname: Maintain One Comment\n\non:\n  issues:\n    types: [opened, edited]\n  issue_comment:\n    types: [created, edited]\n  pull_request:\n    types: [assigned, opened, synchronize, edited]\n\njobs:\n  comment:\n    runs-on: ubuntu-latest\n    steps:\n      - name: maintain-comment\n        uses: actions-cool/maintain-one-comment@v3\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          body: |\n            Hi 😀\n          emojis: '+1, laugh'\n          body-include: '\u003c!-- Created by actions-cool/maintain-one-comment --\u003e'\n```\n\n### Inputs\n\n| Name | Desc | Type | Required |\n| -- | -- | -- | -- |\n| token | GitHub token | string | ✖ |\n| number | Manually control the issue or PR number | string | ✖ |\n| body | Create comment body | string | ✖ |\n| emojis | Add [emoji](#emoji-list) | string | ✖ |\n| update-mode | Comment update mode. Options: `replace` `append`. Default: `replace` | string | ✖ |\n| comment-auth | Filter comment auth | string | ✖ |\n| body-include | Filter comment body | string | ✖ |\n| delete | Will delete all filter comments. Default `false` | boolean |  ✖ |\n\n- `number`: When no input, it will be the issue or PR number that triggered. When input, it is the highest priority\n- `body`: When has 1 comment, and no body input will delete this filter comment\n\n### Outputs\n\n- `comment-id`: Return the ID of create or updated comment.\n  - About `comment-id` use, can refer: https://github.com/actions-cool/issues-helper\n\n## Note\n\n- When PR come from fork, it requires `pull_request_target` to comment (Reasons for github built-in permissions). When use `pull_request_target`, must [read](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request_target)\n\n## Emoji List\n\n| input | emoji |\n| -- | -- |\n| `+1` | 👍 |\n| `-1` | 👎 |\n| `laugh` | 😄 |\n| `confused` | 😕 |\n| `heart` | ❤️ |\n| `hooray` | 🎉 |\n| `rocket` | 🚀 |\n| `eyes` | 👀 |\n\n## Changelog\n\n[CHANGELOG](./CHANGELOG.md)\n\n## LICENSE\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-cool%2Fmaintain-one-comment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factions-cool%2Fmaintain-one-comment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-cool%2Fmaintain-one-comment/lists"}