Skip to content

Auto-assign Copilot to github/github-ui after release issue creation#26

Open
Copilot wants to merge 3 commits into
mainfrom
copilot/update-create-issue-workflow
Open

Auto-assign Copilot to github/github-ui after release issue creation#26
Copilot wants to merge 3 commits into
mainfrom
copilot/update-create-issue-workflow

Conversation

Copilot AI commented Nov 25, 2025

Copy link
Copy Markdown

Automates Copilot assignment for integration work when new @primer/react-brand releases are detected.

Changes

  • Added workflow step using gh agent-task create to assign Copilot in github/github-ui
  • Task includes release name, release URL, and link to tracking issue
  • Uses continue-on-error: true to prevent blocking the primary issue creation workflow
- name: Assign Copilot to perform integration work
  if: success()
  continue-on-error: true
  env:
    GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  run: |
    gh agent-task create \
      -R github/github-ui \
      "Upgrade @primer/react-brand to ${{ steps.get_latest_release.outputs.release_name }}. ..."
Original prompt

Update the create issue workflow to automatically assign the issue to @copilot after it is created. Copilot will need to perform the work in the github/github-ui repo, so make sure that is included when assigning. The GitHub CLI 'agent-task' might be useful for this.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…ub-ui

Co-authored-by: dustinbrownman <4685176+dustinbrownman@users.noreply.github.com>
Copilot AI changed the title [WIP] Update create issue workflow to assign to @copilot Auto-assign Copilot to github/github-ui after release issue creation Nov 25, 2025
Copilot AI requested a review from dustinbrownman November 25, 2025 22:47
@dustinbrownman

Copy link
Copy Markdown

@copilot Why is the GITHUB_UI token necessary. We should be able to use the existing token that is part of this workflow.

Co-authored-by: dustinbrownman <4685176+dustinbrownman@users.noreply.github.com>

Copilot AI commented Nov 25, 2025

Copy link
Copy Markdown
Author

@copilot Why is the GITHUB_UI token necessary. We should be able to use the existing token that is part of this workflow.

Updated to use GITHUB_TOKEN in d84c3e2.

@dustinbrownman

Copy link
Copy Markdown

@rezrah - Curious to get your thoughts on this. It's small step, but shortcutting the work of making the change, pushing, and creating a PR seems valuable. Then our First Responder can focus on validating the necessary pages via a preview deploy.

@dustinbrownman dustinbrownman marked this pull request as ready for review November 26, 2025 16:40
Copilot AI review requested due to automatic review settings November 26, 2025 16:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR automates Copilot agent assignment for integration work when new @primer/react-brand releases are detected, streamlining the upgrade process in the github/github-ui repository.

Key Changes:

  • Added a workflow step that creates a Copilot agent task in the github/github-ui repository
  • Includes release metadata (name, URL) and a link to the tracking issue in the task description
  • Uses continue-on-error: true to ensure the Copilot assignment doesn't block the primary workflow

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rezrah

rezrah commented Nov 26, 2025

Copy link
Copy Markdown
Collaborator

@dustinbrownman this is a cool idea. A few thoughts:

  • Will this work in practice? GITHUB_TOKEN is usually scoped to the repo, so will CCA have sufficient permissions to begin working on this task in a private repo in the GitHub org (noting that this is the Primer org). I suspect we'll run into both Cross-Org + Cros-Repo auth issues here, but correct me if I'm wrong.

  • Some releases will contain breaking changes, or require manual updates to UI code in addition to the node_module upgrade. We need Copilot to carefully read the changelog entries and apply updates as described. Can we either expand the description/prompt or use the --custom-agent param to specify more granular instructions for the agent to follow. I'm mostly calling out that node_module updates alone aren't going to be enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants