56985caad2589ee86716de7305d1a922894603e1
Some checks failed
Unit Tests / unittest (push) Failing after 8s
Coding Automator Action
Send issue comments to the coding agent so it can pick up and work on tasks mentioned with @bot.
Quick start
name: Send Tasks to Agent
on:
issue_comment:
types: [created, edited]
jobs:
dispatch:
if: contains(github.event.comment.body, '@bot')
runs-on: ubuntu-latest
permissions:
issues: read
contents: read
steps:
- name: Send task to coding agent
uses: git.yusufali.ca/automation/action@main
with:
api_url: ${{ secrets.AGENT_API_URL }} # default: https://api.servc.io
api_token: ${{ secrets.AGENT_TOKEN }} # optional, required for authenticated API calls
bot_route: coder-agent # default: codebot
debug: false
env:
# Used to fetch the first issue comment for context; provided automatically by Actions
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
How it works
- Trigger on
issue_commentevents that contain@bot. - The action fetches the first comment on the issue (when available) to capture the original task and strips the
@botmention. If none exists, it falls back to the triggering comment. - It posts the task, repo info, and issue number to the configured agent API route.
- Agent responses are logged to the workflow output; failures set the step as failed.
Inputs
api_url(defaulthttps://api.servc.io): Agent API endpoint.api_token(optional): Token sent asApitokenheader for authenticated calls.bot_route(defaultcodebot): Agent route to target.debug(defaultfalse): Whentrue, logs the payload and configuration for troubleshooting.
Notes
- Ensure
issues: readpermission so the action can fetch the first comment for context. - The action respects
GITHUB_SERVER_URLfor GitHub Enterprise environments.
Description
Languages
JavaScript
98.8%
Shell
1.2%