Update Copilot workflow to create GitHub issues for assigned tasks with proper permissions and repository checkout
This commit is contained in:
@@ -10,8 +10,19 @@ on:
|
||||
jobs:
|
||||
assign-task:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
steps:
|
||||
- name: Assign task to Copilot
|
||||
- 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: |
|
||||
echo "Assigning task: ${{ github.event.inputs.task }}"
|
||||
echo "Task requested by: ${{ github.actor }}"
|
||||
gh issue create \
|
||||
--title "Copilot Task: $TASK" \
|
||||
--body "Assigned to Copilot by @$ACTOR. Description: $TASK" \
|
||||
--label "copilot-task"
|
||||
|
||||
Reference in New Issue
Block a user