chore: sync actions from gh-aw@v0.81.3#171
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Automated sync of the gh-aw-actions setup/handler scripts from upstream gh-aw@v0.81.3, updating the installation scripts and the JavaScript safe-output handler suite to match current upstream behavior.
Changes:
- Adds
--rootlesssupport to the AWF installer (and a small shell test script) to allow installs without sudo into~/.local. - Improves safe-output “staged mode” detection to handle templated boolean strings (e.g.
"true") consistently across handlers. - Updates several safe-output handlers and utilities (PR review buffering/locked-PR soft-skip propagation, Codex JSONL log parsing, issue type setting via REST, MCP gateway URL mapping, footer formatting, agent assignment checks).
Show a summary per file
| File | Description |
|---|---|
| setup/sh/install_copilot_cli.sh | Refactors toolcache root scanning logic for cached Copilot CLI lookup. |
| setup/sh/install_awf_binary.sh | Adds --rootless install mode, maybe_sudo wrapper, and PATH export behavior. |
| setup/sh/install_awf_binary_test.sh | Adds shell tests covering rootless flag parsing / PATH export behavior. |
| setup/js/upload_artifact.cjs | Switches staged-mode detection to shared helper for consistency. |
| setup/js/update_entity_helpers.cjs | Tightens JSDoc typing for shared entity update payload builder. |
| setup/js/submit_pr_review.cjs | Treats staged as templatable boolean and uses shared staged helpers. |
| setup/js/set_issue_type.cjs | Reworks issue type setting to use REST update and improves validation error mapping. |
| setup/js/safe_outputs_tools.json | Extends link_sub_issue schema with optional cross-repo repo field. |
| setup/js/safe_output_helpers.cjs | Adds isTemplatableTrue and updates isStagedMode to accept "true". |
| setup/js/safe_output_handler_manager.cjs | Adds propagation for “locked PR review” soft-skip into buffered per-message results. |
| setup/js/safe_output_execution_metadata.cjs | Adds ReviewState typedef for review metadata extraction. |
| setup/js/pr_review_buffer.cjs | Adds locked-PR retry/soft-skip flow and refactors success result payload builder. |
| setup/js/parse_codex_log.cjs | Adds support for Codex experimental JSONL event logs + model extraction fallback. |
| setup/js/mount_mcp_as_cli.cjs | Handles host.docker.internal by mapping to gateway IP for container URLs; exports helpers. |
| setup/js/messages_footer.cjs | Improves footer wording for discussions by tracking triggering item type. |
| setup/js/issue_intents.cjs | Adds safe-outputs exemption annotation comment. |
| setup/js/dispatch_repository.cjs | Uses shared staged-mode helper for tool config staged checks. |
| setup/js/create_pull_request.cjs | Updates agent lookup to pass issue context to findAgent. |
| setup/js/create_pr_review_comment.cjs | Treats staged as templatable boolean when syncing with shared review buffer. |
| setup/js/create_issue.cjs | Updates agent lookup to pass issue context to findAgent. |
| setup/js/assign_to_agent.cjs | Updates agent lookup and availability enrichment to pass issue/PR context. |
| setup/js/assign_copilot_to_created_issues.cjs | Updates agent lookup to pass issue context to findAgent. |
| setup/js/assign_agent_helpers.cjs | Adds issue-scoped assignee validation path and updates agent lookup signatures. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 23/23 changed files
- Comments generated: 6
Comment on lines
+19
to
+35
| bash -c ' | ||
| AWF_INSTALL_DIR="/usr/local/bin" | ||
| AWF_LIB_DIR="/usr/local/lib/awf" | ||
| ROOTLESS=false | ||
| for arg in "${@:1}"; do | ||
| case "$arg" in | ||
| --rootless) ROOTLESS=true ;; | ||
| esac | ||
| done | ||
| if [ "$ROOTLESS" = "true" ]; then | ||
| AWF_USER_PREFIX="${HOME}/.local" | ||
| AWF_INSTALL_DIR="${AWF_USER_PREFIX}/bin" | ||
| AWF_LIB_DIR="${AWF_USER_PREFIX}/lib/awf" | ||
| fi | ||
| echo "AWF_INSTALL_DIR=${AWF_INSTALL_DIR}" | ||
| echo "AWF_LIB_DIR=${AWF_LIB_DIR}" | ||
| ' -- "${args[@]}" |
Comment on lines
+89
to
95
| await validateAssigneeAlias(owner, repo, login, issueNumber, githubClient); | ||
| available.push(login); | ||
| } catch (e) { | ||
| const status = e && typeof e === "object" && "status" in e ? e.status : undefined; | ||
| if (status !== 404) { | ||
| core.debug(`Failed to check assignability for ${login}: ${getErrorMessage(e)}`); | ||
| core.info(`Failed to check assignability for ${login}: ${getErrorMessage(e)}`); | ||
| } |
Comment on lines
+535
to
+544
| /** | ||
| * Mark buffered review results as skipped when the PR is locked and submission was | ||
| * soft-skipped (success:true, skipped:true). Both submit_pull_request_review and | ||
| * create_pull_request_review_comment handlers buffer during message processing, so | ||
| * the skip must be back-propagated here so the Processing Summary reflects the actual | ||
| * outcome (skipped) rather than a misleading success count. | ||
| * | ||
| * Note: uses `skipReason` (not `reason`) so that the step-summary generator does not | ||
| * treat these entries as delegated-step skips and omit them from the output. | ||
| * |
| const hasIssueScopedRequest = typeof githubClient?.request === "function"; | ||
|
|
||
| if (issueNumber && hasValidIssueNumber && hasIssueScopedRequest) { | ||
| core.info(`Checking assignee alias ${assignee} via issue-scoped endpoint for ${owner}/${repo}#${parsedIssueNumber}`); |
| } else if (issueNumber && !hasIssueScopedRequest) { | ||
| core.info(`Skipping issue-scoped assignee check for ${assignee}: github client does not support request()`); | ||
| } | ||
| core.info(`Checking assignee alias ${assignee} via repository-scoped endpoint for ${owner}/${repo}`); |
Comment on lines
+329
to
+340
| local -a tool_cache_roots | ||
|
|
||
| if [ -n "${RUNNER_TOOL_CACHE:-}" ]; then | ||
| tool_cache_roots=("${RUNNER_TOOL_CACHE}") | ||
| else | ||
| tool_cache_roots=( | ||
| /opt/hostedtoolcache | ||
| /home/runner/work/_tool | ||
| ) | ||
| fi | ||
|
|
||
| for tool_cache_root in "${tool_cache_roots[@]}"; do |
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.81.3.