Fix/issue flow branch guard #7
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: Issue Flow Comment | |
| on: | |
| issue_comment: | |
| types: | |
| - created | |
| permissions: | |
| contents: read | |
| issues: write | |
| concurrency: | |
| group: issue-flow-${{ github.event.issue.number }} | |
| cancel-in-progress: false | |
| jobs: | |
| route: | |
| if: github.event.issue.pull_request == null && github.event.issue.state == 'open' && github.event.comment.user.type != 'Bot' && contains(github.event.comment.body, '@agentrix') | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout issue-flow files | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| sparse-checkout: | | |
| .agentrix/plugins/issue-flow | |
| .issue-flow | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Route issue-flow comment | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| AGENTRIX_BASE_URL: ${{ vars.AGENTRIX_BASE_URL }} | |
| AGENTRIX_API_KEY: ${{ secrets.AGENTRIX_API_KEY }} | |
| AGENTRIX_RUNNER_ID: ${{ vars.AGENTRIX_RUNNER_ID }} | |
| AGENTRIX_ISSUE_FLOW_AGENT: ${{ vars.AGENTRIX_ISSUE_FLOW_AGENT }} | |
| run: node .agentrix/plugins/issue-flow/skills/issue-flow/scripts/dispatch.cjs comment --event "$GITHUB_EVENT_PATH" |