{"id":17866172,"url":"https://github.com/xt0rted/slash-command-action","last_synced_at":"2025-04-05T10:08:21.306Z","repository":{"id":35183015,"uuid":"203111311","full_name":"xt0rted/slash-command-action","owner":"xt0rted","description":"A GitHub Action to check comments for slash commands","archived":false,"fork":false,"pushed_at":"2025-03-31T01:10:31.000Z","size":3768,"stargazers_count":67,"open_issues_count":15,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T04:34:46.830Z","etag":null,"topics":["github-actions","hacktoberfest","slash-commands","workflows"],"latest_commit_sha":null,"homepage":"","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/xt0rted.png","metadata":{"funding":{"github":"xt0rted","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null},"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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":"2019-08-19T06:25:37.000Z","updated_at":"2025-03-31T01:09:37.000Z","dependencies_parsed_at":"2023-02-16T03:01:13.161Z","dependency_job_id":"5cf58dd4-a363-4cb3-91f4-4191c7584412","html_url":"https://github.com/xt0rted/slash-command-action","commit_stats":{"total_commits":746,"total_committers":4,"mean_commits":186.5,"dds":0.4490616621983914,"last_synced_commit":"08a2e34b2cb449518496266340f148c380b0acb8"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xt0rted%2Fslash-command-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xt0rted%2Fslash-command-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xt0rted%2Fslash-command-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xt0rted%2Fslash-command-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xt0rted","download_url":"https://codeload.github.com/xt0rted/slash-command-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318744,"owners_count":20919484,"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":["github-actions","hacktoberfest","slash-commands","workflows"],"created_at":"2024-10-28T09:28:39.600Z","updated_at":"2025-04-05T10:08:21.241Z","avatar_url":"https://github.com/xt0rted.png","language":"TypeScript","funding_links":["https://github.com/sponsors/xt0rted"],"categories":[],"sub_categories":[],"readme":"# Slash Commands Action\n\n[![CI](https://github.com/xt0rted/slash-command-action/workflows/CI/badge.svg?branch=main)](https://github.com/xt0rted/slash-command-action/actions/workflows/ci.yml)\n[![CodeQL](https://github.com/xt0rted/slash-command-action/actions/workflows/codeql-analysis.yml/badge.svg?branch=main)](https://github.com/xt0rted/slash-command-action/actions/workflows/codeql-analysis.yml)\n[![codecov](https://codecov.io/gh/xt0rted/slash-command-action/branch/main/graph/badge.svg)](https://codecov.io/gh/xt0rted/slash-command-action)\n\nCheck issue or pull request comments for `/commands` and trigger or block workflows based on them.\n\n## Usage\n\nIn the following example comments will be checked for the command `/test` (parameters are optional such as `/test ui`) and will only pass if the user who left the comment has admin access to the repo.\nIt will only run on the initial comment, not on edits, and when the action runs it will add a reaction of :eyes: to the comment indicating it was seen.\n\n```yaml\non: issue_comment\nname: Issue Comments\npermissions:\n  issues: write\njobs:\n  check_comments:\n    name: Check comments for /test\n    runs-on: ubuntu-latest\n    steps:\n      - name: Check for Command\n        id: command\n        uses: xt0rted/slash-command-action@v1\n        with:\n          command: test\n          reaction: \"true\"\n          reaction-type: \"eyes\"\n          allow-edits: \"false\"\n          permission-level: admin\n      - name: Act on the command\n        run: echo \"The command was '${{ steps.command.outputs.command-name }}' with arguments '${{ steps.command.outputs.command-arguments }}'\"\n```\n\n## Options\n\n### Required\n\nName | Allowed values | Description\n-- | -- | --\n`repo-token` | `GITHUB_TOKEN` (default) or PAT | `GITHUB_TOKEN` token or a PAT.\n`command` | `[a-zA-Z0-9_]` | The command to act on. You can test how your command will be parsed [here](https://regex101.com/r/7XptVD).\n\n### Optional\n\nName | Allowed values | Description\n-- | -- | --\n`reaction` | `true` (default), `false` | Indicates if a reaction is left on the comment indicating it was seen.\n`reaction-type` | `+1` (default), `-1`, `laugh`, `confused`, `heart`, `hooray`, `rocket`, `eyes` | The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to leave on the comment.\n`allow-edits` | `true`, `false` (default) | Indicates if the action should run on comment edits, or the initial comment only.\n`permission-level` | `admin`, `write` (default), `read`, `none` | The user's [permission level](https://developer.github.com/v3/repos/collaborators/#review-a-users-permission-level) needed to act on the command.\n\n## License\n\nThe scripts and documentation in this project are released under the [MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxt0rted%2Fslash-command-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxt0rted%2Fslash-command-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxt0rted%2Fslash-command-action/lists"}