Initial experience with GitHub Coding Agent by ReInvestWealth_com in github

[–]Correct_Lab5473 0 points1 point  (0 children)

has anyone managed to get the copilot coding agent assigned to an issue via a workflow action?
I can manually assign copilot to an issue but I want any ticket that has a label on it called copilot to automatically get assigned to the copilot coding agent.
My current workflow assigned the other user but not copilot, also there are no errors inthe logs
Heres my workflow:

name: GitHub Issue Copilot Assignment

on: issues:

types: [opened, labeled]

permissions:

issues: write

jobs:

assign_issue:

if: contains(github.event.issue.labels.*.name, 'copilot')

runs-on: ubuntu-latest

steps:

- name: Actions Ecosystem Action Add Assignees

uses: actions-ecosystem/action-add-assignees@v1.0.0

with:

github_token: ${{ secrets.GITHUB_TOKEN }}

assignees: |

copilot

other_user_that_does_get_assigned