Files
api/.github/workflows/copilot.yml
T
Jeppe Bundgaard 7d450e285e Remove outdated edge gateway object classes, add new agent implementation
Transitioned from obsolete gateway object classes (`edge_gateway_shell_action_jobs_o`, `edge_gateway_shell_events_o`, `edge_gateway_shell_sessions_o`, `edge_gateway_update_jobs_o`) to the new agent implementation (`edge-gateway-agent/agent.php`).
2026-04-21 14:13:17 +02:00

40 lines
1.0 KiB
YAML

name: Copilot Task Dispatcher
on:
workflow_dispatch:
inputs:
task:
description: 'The task description for Copilot'
required: true
type: string
jobs:
assign-task:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create GitHub Issue for Copilot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TASK: ${{ github.event.inputs.task }}
ACTOR: ${{ github.actor }}
run: |
BODY="$(cat <<EOF
Assigned to Copilot by @$ACTOR.
Task
$TASK
AI workflow notes
- Generated assistant metadata is synchronized from the canonical AI workflow bundle.
- Run `node scripts/sync-ai-workflow.mjs --check` if assistant metadata changed.
EOF
)"
gh issue create \
--title "Copilot Task: $TASK" \
--body "$BODY" \
--label "copilot-task"