chore: sync actions from gh-aw@v0.80.8#165
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
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
taskContextthrough 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 | |||
| }); | |||
| } | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated sync of actions from gh-aw at
v0.80.8.