{"id":15744587,"url":"https://github.com/meilcli/hidable-comment-action","last_synced_at":"2026-03-01T11:05:43.511Z","repository":{"id":36988912,"uuid":"343080372","full_name":"MeilCli/hidable-comment-action","owner":"MeilCli","description":"Create, update or delete comment by action argument","archived":false,"fork":false,"pushed_at":"2024-05-01T09:03:48.000Z","size":13099,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-01T12:35:43.519Z","etag":null,"topics":["actions","github-actions"],"latest_commit_sha":null,"homepage":"https://github.com/MeilCli/actions","language":"TypeScript","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/MeilCli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"MeilCli"}},"created_at":"2021-02-28T10:48:41.000Z","updated_at":"2024-08-01T11:50:09.813Z","dependencies_parsed_at":"2024-01-01T10:23:53.590Z","dependency_job_id":"2c597b2d-1ccf-472d-b13f-d591c81e7479","html_url":"https://github.com/MeilCli/hidable-comment-action","commit_stats":{"total_commits":741,"total_committers":4,"mean_commits":185.25,"dds":"0.21592442645074228","last_synced_commit":"f529d90fd9a4f265768dece7e582642a3916e4f0"},"previous_names":[],"tags_count":95,"template":false,"template_full_name":"MeilCli/action-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeilCli%2Fhidable-comment-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeilCli%2Fhidable-comment-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeilCli%2Fhidable-comment-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeilCli%2Fhidable-comment-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MeilCli","download_url":"https://codeload.github.com/MeilCli/hidable-comment-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247622897,"owners_count":20968570,"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","github-actions"],"created_at":"2024-10-04T04:00:32.855Z","updated_at":"2026-01-20T00:33:42.958Z","avatar_url":"https://github.com/MeilCli.png","language":"TypeScript","funding_links":["https://github.com/sponsors/MeilCli"],"categories":[],"sub_categories":[],"readme":"# hidable-comment-action\n[![CI-Master](https://github.com/MeilCli/hidable-comment-action/actions/workflows/ci-master.yml/badge.svg)](https://github.com/MeilCli/hidable-comment-action/actions/workflows/ci-master.yml)    \nCreate, update or delete comment by action argument\n\nFeatures:\n- Sticky comment\n  - This action upsert comment.\n- Conditional comment\n  - This action can hide comment by action argument.\n- Multiple comment type support\n  - You can set multiple sticky comment by using `id`.\n- Comment body from file\n  - You can set comment body from file.\n- Enterprise server support\n  - You can use this action in enterprise server.\n\n## Example\n### Stick pull request comment\n```yml\nname: 'Example: Sticky Comment Body'\n\non:\n  pull_request:\njobs:\n  example:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: MeilCli/hidable-comment-action@v3\n        with:\n          number: ${{ github.event.pull_request.number }}\n          show: true\n          id: 'example-sticky-comment-body'\n          body: 'your comment body'\n```\n\nYou can also pin to a [specific release](https://github.com/MeilCli/hidable-comment-action/releases) version in the format @v2.x.x\n\nAnd, you can use `body_path` to read comment body from file.\n\n```yml\nname: 'Example: Sticky Comment Body Path'\n\non:\n  pull_request:\njobs:\n  example:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - uses: MeilCli/hidable-comment-action@v3\n        with:\n          number: ${{ github.event.pull_request.number }}\n          show: true\n          id: 'example-sticky-comment-body-path'\n          body_path: 'file_path_to_your_comment_body'\n```\n\n### Check issue title\n```yml\nname: 'Check-Issue-Title'\n\non:\n  issues:\n    types: [opened, edited, reopened]\njobs:\n  check:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: MeilCli/regex-match@v2\n        id: regex\n        with:\n          regex_pattern: 'test: .*'\n          regex_option: 'g'\n          search_string: ${{ github.event.issue.title }}\n      - uses: MeilCli/hidable-comment-action@v3\n        with:\n          number: ${{ github.event.issue.number }}\n          show: ${{ steps.regex.outputs.matched == 'false' }}\n          id: 'title-lint'\n          body: |\n            title lint example body\n            - test1\n            - test2\n            - test3\n```\n\n### Check Pull Request title\n```yml\nname: 'Check-Pull-Request-Title'\n\non:\n  pull_request:\n    types: [opened, edited, reopened]\njobs:\n  check:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: MeilCli/regex-match@v2\n        id: regex\n        with:\n          regex_pattern: 'test: .*'\n          regex_option: 'g'\n          search_string: ${{ github.event.pull_request.title }}\n      - uses: MeilCli/hidable-comment-action@v3\n        with:\n          number: ${{ github.event.pull_request.number }}\n          show: ${{ steps.regex.outputs.matched == 'false' }}\n          id: 'title-lint'\n          body: |\n            title lint example body\n            - test1\n            - test2\n            - test3\n```\n\n## Input\n- `github_token`\n  - required\n  - github token, using to read repository\n  - default: `${{ github.token }}`\n- `repository`\n  - required\n  - executed repository name\n  - for example: MeilCli/hidable-comment-action\n  - default: `${{ github.repository }}`\n- `graphql_url`\n  - required\n  - github graphql api url\n  - default: `${{ github.graphql_url }}`\n- `number`\n  - required\n  - issue or pull request number\n- `id`\n  - required\n  - Id for identify multiple hidable-comment-action in same issue or repository\n  - default: `hidable-comment`\n- `show`\n  - required\n  - value: `true` or `false`\n  - if set the true, add or update comment. if set the false, delete comment\n- `body`\n  - required, eigher body or body_path\n  - comment body\n- `body_path`\n  - required, eigher body or body_path\n  - comment body path, if set, read body from file\n- `replace_mode`\n  - required\n  - value: `always`, `changed` or `ignore`\n  - default: `ignore`\n  - This option is used to determine whether to update the comment when the comment id is the same as the existing comment.\n  - details:\n    - `always`: always update comment\n    - `changed`: update comment only when the body is different from the existing comment\n    - `ignore`: do not update comment. This value is useful for checklist style comment.\n\n## Contributes\n[\u003cimg src=\"https://gist.githubusercontent.com/MeilCli/31fde39d6f48f6d2978d05cad61faf7e/raw/metrics_contributors.svg\"\u003e](https://github.com/MeilCli/hidable-comment-action/graphs/contributors)\n\n### Could you want to contribute?\nsee [Contributing.md](./.github/CONTRIBUTING.md)\n\n## License\n[\u003cimg src=\"https://gist.githubusercontent.com/MeilCli/31fde39d6f48f6d2978d05cad61faf7e/raw/metrics_licenses.svg\"\u003e](LICENSE.txt)\n\n### Using\n- [actions/toolkit](https://github.com/actions/toolkit), published by [MIT License](https://github.com/actions/toolkit/blob/master/LICENSE.md)\n- [apollo-client](https://github.com/apollographql/apollo-client), published by [MIT License](https://github.com/apollographql/apollo-client/blob/main/LICENSE)\n- [cross-fetch](https://github.com/lquixada/cross-fetch), published by [MIT License](https://github.com/lquixada/cross-fetch/blob/main/LICENSE)\n- [graphql](https://github.com/graphql/graphql-js), published by [MIT License](https://github.com/graphql/graphql-js/blob/main/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeilcli%2Fhidable-comment-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeilcli%2Fhidable-comment-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeilcli%2Fhidable-comment-action/lists"}