Skip to content

chore: sync actions from gh-aw@v0.80.8#165

Merged
pelikhan merged 1 commit into
mainfrom
sync/gh-aw-v0.80.8
Jun 22, 2026
Merged

chore: sync actions from gh-aw@v0.80.8#165
pelikhan merged 1 commit into
mainfrom
sync/gh-aw-v0.80.8

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated sync of actions from gh-aw at v0.80.8.

@pelikhan pelikhan marked this pull request as ready for review June 22, 2026 00:32
Copilot AI review requested due to automatic review settings June 22, 2026 00:32
@pelikhan pelikhan merged commit bee9622 into main Jun 22, 2026
6 checks passed
@pelikhan pelikhan deleted the sync/gh-aw-v0.80.8 branch June 22, 2026 00:32

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

Automated sync from github/gh-aw@v0.80.8 updating the JavaScript action helpers used by the workflow setup tooling, including slash-command routing enhancements and a REST-based path for starting Copilot agent tasks.

Changes:

  • Add support for creating/reusing a single “status” comment across routed slash-command workflow dispatches (propagated via aw_context).
  • Migrate agent assignment helpers away from GraphQL mutations toward the REST “agent tasks” endpoint, and plumb taskContext through call sites shown in this PR.
  • Switch PR repo resolution to GitHub REST (repos.get) for default-branch metadata.
Show a summary per file
File Description
setup/js/route_slash_command.cjs Adds optional status-comment creation and passes status-comment metadata through aw_context per route.
setup/js/pr_helpers.cjs Uses REST repos.get to resolve default branch / repo context.
setup/js/create_pull_request.cjs Passes taskContext into agent-assignment helper for fallback issue assignment.
setup/js/create_issue.cjs Passes taskContext into agent-assignment helper when assigning Copilot.
setup/js/assign_to_agent.cjs Updates PR repo resolution + plumbs taskContext/repo slug into REST task creation.
setup/js/assign_agent_helpers.cjs Reworks agent assignment flow to start REST agent tasks; adds taskContext requirement.
setup/js/add_workflow_run_comment.cjs Adds reusable status-comment support and exports createOrReuseStatusComment.

Copilot's findings

Tip

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

  • Files reviewed: 7/7 changed files
  • Comments generated: 4

return null;
}
if (typeof value === "object" && !Array.isArray(value)) {
return /** @type {Record<string, any>} */ value;
Comment on lines +241 to +243
if (!taskContext) {
core.error(`Invalid assignment context: ${assignableId}`);
return false;
Comment on lines +185 to 188
* Start an agent task for issue or pull request context using REST
* @param {string} assignableId - Synthetic target ID in format owner/repo#issue:N or owner/repo#pull:N
* @param {string} agentId - Agent login name
* @param {Array<{id: string, login: string}>} currentAssignees - List of current assignees with id and login
Comment on lines 217 to 234
@@ -281,130 +233,61 @@ async function assignAgentToIssue(assignableId, agentId, currentAssignees, agent
});
}
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.

2 participants