{"id":20915818,"url":"https://github.com/dessant/reaction-comments","last_synced_at":"2026-02-21T04:01:30.404Z","repository":{"id":64189752,"uuid":"137103858","full_name":"dessant/reaction-comments","owner":"dessant","description":"👍 📨 💔 GitHub Action that deletes +1 comments","archived":false,"fork":false,"pushed_at":"2023-11-19T10:12:20.000Z","size":1588,"stargazers_count":46,"open_issues_count":0,"forks_count":10,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-14T12:54:43.449Z","etag":null,"topics":["comments","delete-comments","github-actions","issues","pull-requests","reactions"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/reaction-comments","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/dessant.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"dessant","patreon":"dessant","custom":["https://armin.dev/go/paypal","https://armin.dev/go/bitcoin"]}},"created_at":"2018-06-12T17:08:33.000Z","updated_at":"2024-10-13T18:45:03.000Z","dependencies_parsed_at":"2023-11-19T11:22:02.104Z","dependency_job_id":"edee9342-54ae-42ba-b988-1cbf2c21052e","html_url":"https://github.com/dessant/reaction-comments","commit_stats":{"total_commits":76,"total_committers":2,"mean_commits":38.0,"dds":0.4342105263157895,"last_synced_commit":"1e1bea4a815ab7944e962410292055893516c9d7"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dessant%2Freaction-comments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dessant%2Freaction-comments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dessant%2Freaction-comments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dessant%2Freaction-comments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dessant","download_url":"https://codeload.github.com/dessant/reaction-comments/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225206833,"owners_count":17438200,"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":["comments","delete-comments","github-actions","issues","pull-requests","reactions"],"created_at":"2024-11-18T16:18:32.535Z","updated_at":"2026-02-21T04:01:25.374Z","avatar_url":"https://github.com/dessant.png","language":"JavaScript","readme":"# Reaction Comments\n\nReaction Comments is a GitHub Action that deletes reaction comments,\nsuch as +1, and encourages the use of GitHub reactions.\n\n\u003cimg width=\"800\" src=\"https://raw.githubusercontent.com/dessant/reaction-comments/main/assets/screenshot.png\"\u003e\n\n## Supporting the Project\n\nThe continued development of Reaction Comments is made possible\nthanks to the support of awesome backers. If you'd like to join them,\nplease consider contributing with\n[Patreon](https://armin.dev/go/patreon?pr=reaction-comments\u0026src=repo),\n[PayPal](https://armin.dev/go/paypal?pr=reaction-comments\u0026src=repo) or\n[Bitcoin](https://armin.dev/go/bitcoin?pr=reaction-comments\u0026src=repo).\n\n## How It Works\n\nThe action detects if new or edited comments consist solely of emojis\nand shortcodes used in GitHub reactions. Matching comments are replaced with\nthe message set in `issue-comment` or `pr-comment`, and deleted after a day.\nWhen the `issue-comment` or `pr-comment` parameter is set to `''`,\nmatching comments are immediately deleted.\n\n## Usage\n\nCreate the `reaction-comments.yml` workflow file in the `.github/workflows`\ndirectory, use one of the [example workflows](#examples) to get started.\n\n### Inputs\n\nThe action can be configured using [input parameters](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepswith).\n\n\u003c!-- prettier-ignore --\u003e\n- **`github-token`**\n  - GitHub access token, value must be `${{ github.token }}` or an encrypted\n    secret that contains a [personal access token](#using-a-personal-access-token)\n  - Optional, defaults to `${{ github.token }}`\n- **`exempt-issue-labels`**\n  - Do not process comments on issues with any of these labels,\n    value must be a comma separated list of labels\n  - Optional, defaults to `''`\n- **`issue-comment`**\n  - Replace reaction comments on issues with this message,\n    `{comment-author}` is an optional placeholder\n  - Optional, defaults to `:wave: @{comment-author}, would you like to leave\n    a reaction instead?`\n- **`exempt-pr-labels`**\n  - Do not process comments on pull requests with any of these labels,\n    value must be a comma separated list of labels\n  - Optional, defaults to `''`\n- **`pr-comment`**\n  - Replace reaction comments on pull requests with this message,\n    `{comment-author}` is an optional placeholder\n  - Optional, defaults to `:wave: @{comment-author}, would you like to leave\n    a reaction instead?`\n- **`process-only`**\n  - Process comments only on issues or pull requests, value must be\n    either `issues` or `prs`\n  - Optional, defaults to `''`\n- **`log-output`**\n  - Log output parameters, value must be either `true` or `false`\n  - Optional, defaults to `false`\n\n### Outputs\n\n\u003c!-- prettier-ignore --\u003e\n- **`comments`**\n  - Comments that have been either deleted or scheduled for removal,\n    value is a JSON string in the form of\n    `[{\"owner\": \"actions\", \"repo\": \"toolkit\", \"issue_number\": 1,\n    \"comment_id\": 754701878, \"is_review_comment\": false, \"status\": \"deleted\"}]`,\n    value of `status` is either `scheduled` or `deleted`\n  - Defaults to `''`\n\n## Examples\n\nThe following workflow will replace new or edited reaction comments\nwith a helpful message, and delete them after a day.\n\n\u003c!-- prettier-ignore --\u003e\n```yaml\nname: 'Reaction Comments'\n\non:\n  issue_comment:\n    types: [created, edited]\n  pull_request_review_comment:\n    types: [created, edited]\n  schedule:\n    - cron: '0 0 * * *'\n\npermissions:\n  actions: write\n  issues: write\n  pull-requests: write\n\njobs:\n  action:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: dessant/reaction-comments@v4\n```\n\n### Available input parameters\n\nThis workflow declares all the available input parameters of the action\nand their default values. Any of the parameters can be omitted.\n\n\u003c!-- prettier-ignore --\u003e\n```yaml\nname: 'Reaction Comments'\n\non:\n  issue_comment:\n    types: [created, edited]\n  pull_request_review_comment:\n    types: [created, edited]\n  schedule:\n    - cron: '0 0 * * *'\n\npermissions:\n  actions: write\n  issues: write\n  pull-requests: write\n\njobs:\n  action:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: dessant/reaction-comments@v4\n        with:\n          github-token: ${{ github.token }}\n          exempt-issue-labels: ''\n          issue-comment: \u003e\n            :wave: @{comment-author}, would you like to leave\n            a reaction instead?\n          exempt-pr-labels: ''\n          pr-comment: \u003e\n            :wave: @{comment-author}, would you like to leave\n            a reaction instead?\n          process-only: ''\n          log-output: false\n```\n\n### Ignoring comments\n\nThis step will process comments only on issues, and ignore threads\nwith the the `help` or `party-parrot` labels applied.\n\n\u003c!-- prettier-ignore --\u003e\n```yaml\n    steps:\n      - uses: dessant/reaction-comments@v4\n        with:\n          exempt-issue-labels: 'help, party-parrot'\n          process-only: 'issues'\n```\n\nThis step will process comments only on pull requests, and ignore threads\nwith the `pinned` label applied.\n\n\u003c!-- prettier-ignore --\u003e\n```yaml\n    steps:\n      - uses: dessant/reaction-comments@v4\n        with:\n          exempt-pr-labels: 'pinned'\n          process-only: 'prs'\n```\n\n### Deleting comments\n\nBy default, reaction comments are replaced with a message and deleted\nafter a day. This step will immediately delete new or edited reaction comments\non issues and pull requests.\n\n\u003c!-- prettier-ignore --\u003e\n```yaml\n    steps:\n      - uses: dessant/reaction-comments@v4\n        with:\n          issue-comment: ''\n          pr-comment: ''\n```\n\n### Using a personal access token\n\nThe action uses an installation access token by default to interact with GitHub.\nYou may also authenticate with a personal access token to perform actions\nas a GitHub user instead of the `github-actions` app.\n\nCreate a [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic)\nwith the `repo` or `public_repo` scopes enabled, and add the token as an\n[encrypted secret](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository)\nfor the repository or organization, then provide the action with the secret\nusing the `github-token` input parameter.\n\n\u003c!-- prettier-ignore --\u003e\n```yaml\n    steps:\n      - uses: dessant/reaction-comments@v4\n        with:\n          github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}\n```\n\n## License\n\nCopyright (c) 2018-2023 Armin Sebastian\n\nThis software is released under the terms of the MIT License.\nSee the [LICENSE](LICENSE) file for further information.\n","funding_links":["https://github.com/sponsors/dessant","https://patreon.com/dessant","https://armin.dev/go/paypal","https://armin.dev/go/bitcoin"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdessant%2Freaction-comments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdessant%2Freaction-comments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdessant%2Freaction-comments/lists"}