Skip to content

[AUTOMATION] Submit Repositories Workflow Update - #35

Merged
antgrutta merged 1 commit into
mainfrom
feature/updated-submit-repos
Jun 11, 2026
Merged

[AUTOMATION] Submit Repositories Workflow Update#35
antgrutta merged 1 commit into
mainfrom
feature/updated-submit-repos

Conversation

@antgrutta

@antgrutta antgrutta commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

This pull request refactors the migration issue creation and assignment workflow in .github/scripts/submit-repositories.js to streamline the process of creating migration issues and assigning them to the Copilot cloud agent. It also fixes a configuration issue in the workflow YAML. The most important changes include combining issue creation and Copilot agent assignment into a single API call, introducing a utility for deriving custom agent names, and improving the efficiency of GitHub client usage.

Migration issue creation and Copilot assignment:

  • Refactored the process to create and assign migration issues to the Copilot cloud agent in a single REST API call using the agent_assignment input, replacing the previous multi-step GraphQL approach. This simplifies the workflow and leverages the latest GitHub API capabilities. [1] [2]
  • Added the deriveCustomAgentName utility function to extract the custom agent name from the prompt file name, ensuring the correct agent is used for each migration.

Codebase and performance improvements:

  • Removed unnecessary debug logging and unused code related to repository property updates for cleaner logs and code.
  • Optimized the creation of the GitHub client for issue operations by instantiating it once and reusing it across all repository operations, improving efficiency. (F54ca3a1L399R399, [1] [2]

Workflow configuration fix:

  • Fixed a misconfiguration in .github/workflows/submit-repos.yml by replacing app-id with client-id for the actions/create-github-app-token step, ensuring proper authentication setup.

Note: This closes #34

@antgrutta antgrutta self-assigned this Jun 11, 2026
@antgrutta
antgrutta requested a review from ssulei7 as a code owner June 11, 2026 15:05
Copilot AI review requested due to automatic review settings June 11, 2026 15:05
@antgrutta antgrutta added the automation New and udpated GitHub Actions workflows and other automation scripts label Jun 11, 2026
GitHub Advanced Security started work on behalf of antgrutta June 11, 2026 15:05 View session
GitHub Advanced Security finished work on behalf of antgrutta June 11, 2026 15:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 modernizes the “Submit Repositories” automation by switching migration issue creation + Copilot cloud agent assignment to the newer single-call REST API (agent_assignment) and refactoring the script to reuse a dedicated issue-submit GitHub client across repositories. It also updates the workflow’s GitHub App token step configuration.

Changes:

  • Replaced the prior multi-step GraphQL assignment flow with a single POST /repos/{owner}/{repo}/issues call that both creates the issue and assigns the Copilot cloud agent via agent_assignment.
  • Added deriveCustomAgentName() to select a migration-type-specific custom agent based on the prompt filename, and reused one issue-submit client for all repos in a run.
  • Updated the workflow token step input from app-id to client-id (but this needs correction to match the repo variable semantics).
Show a summary per file
File Description
.github/workflows/submit-repos.yml Updates GitHub App token step input; currently mismatched with the repo’s GH_APP_ID variable meaning.
.github/scripts/submit-repositories.js Refactors issue creation/assignment into one REST call with agent_assignment, adds custom agent derivation, and reuses a single issue client.

Copilot's findings

Tip

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

  • Files reviewed: 2/2 changed files
  • Comments generated: 1

Comment thread .github/workflows/submit-repos.yml
@antgrutta

Copy link
Copy Markdown
Collaborator Author

Working with @stoe to get this fixed for a demo, using a bypass for speed.

@antgrutta
antgrutta merged commit 5b6d49d into main Jun 11, 2026
6 checks passed
@antgrutta
antgrutta deleted the feature/updated-submit-repos branch June 11, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation New and udpated GitHub Actions workflows and other automation scripts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[AUTOMATION] Submit Repositories Workflow Update

2 participants