Add JSON MCP tools for richer usage queries #39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Slash Commands | |
| on: | |
| issue_comment: | |
| types: [created] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| actions: write | |
| jobs: | |
| dispatch: | |
| name: Dispatch | |
| runs-on: ubuntu-latest | |
| if: >- | |
| github.event.issue.pull_request && | |
| startsWith(github.event.comment.body, '/') && | |
| contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association) | |
| steps: | |
| - name: Dispatch /prerelease | |
| if: startsWith(github.event.comment.body, '/prerelease') | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| gh api repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions \ | |
| -f content='rocket' --silent | |
| PR_NUMBER="${{ github.event.issue.number }}" | |
| gh workflow run prerelease.yml --repo "$GITHUB_REPOSITORY" --ref "${{ github.event.repository.default_branch }}" \ | |
| -f pr_number="$PR_NUMBER" \ | |
| -f comment_id="${{ github.event.comment.id }}" |