Skip to content

chore: sync actions from gh-aw@v0.81.3#171

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

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

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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

@pelikhan pelikhan marked this pull request as ready for review June 25, 2026 03:17
Copilot AI review requested due to automatic review settings June 25, 2026 03:17
@pelikhan pelikhan merged commit a95cb38 into main Jun 25, 2026
4 checks passed
@pelikhan pelikhan deleted the sync/gh-aw-v0.81.3 branch June 25, 2026 03:17

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 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 --rootless support 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
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