Files
api/.github/workflows/copilot.yml
T

29 lines
737 B
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@v3
- name: Create GitHub Issue for Copilot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TASK: ${{ github.event.inputs.task }}
ACTOR: ${{ github.actor }}
run: |
gh issue create \
--title "Copilot Task: $TASK" \
--body "Assigned to Copilot by @$ACTOR. Description: $TASK" \
--label "copilot-task"