Skip to content

[Contribution Check Report] PR #21082 β€” refactor: replace hardcoded /opt/gh-aw paths with GH_AW_HOME constantsΒ #21193

@github-actions

Description

@github-actions

Contribution Check Report

Field Value
PR #21082
Author @Copilot (SWE Agent, assigned to @pelikhan)
Verdict 🟒 Aligned
Quality lgtm
On-topic βœ… Yes
Follows process βœ… Yes
Focused βœ… Yes
New deps βœ… No
Has tests βœ… Yes
Description βœ… Yes
Lines changed 12,448 (253 files; ~173 auto-recompiled lock files)
Existing labels (none)

Checklist Details

  1. On-topic: The PR refactors the workflow compiler to replace hardcoded /opt/gh-aw path strings with typed GH_AW_HOME-based constants, directly supporting self-hosted runner relocation. This is squarely within the compiler and workflow concerns of the project.

  2. Follows process: The PR is authored by the GitHub Copilot SWE Agent (apps/copilot-swe-agent) and assigned to a core team member (@pelikhan). This matches the documented contribution model: "Core team uses agents to create and manage pull requests." The community contribution model (issues β†’ core team β†’ agent PR) is not applicable here.

  3. Focused: All changes serve a single purpose β€” the GH_AW_HOME refactor. The 173 recompiled lock files are a mechanical consequence of the compiler change. Secondary tweaks (close_pull_request config generation, isPathScannedBySecretRedaction path acceptance) are downstream effects of the same path abstraction.

  4. New deps: No go.mod or go.sum changes detected.

  5. Has tests: Extensive β€” 38+ test files are touched across pkg/workflow/, including unit tests, integration tests, and golden file fixtures.

  6. Has description: The PR body is thorough, including a summary table of new constants/helpers, before/after code snippets, and a bullet-by-bullet breakdown of every changed file category.

Notes

  • The PR is currently in draft state β€” normal for agent-in-progress work.
  • Lines look large (12,448) but the vast majority are mechanical lock file recompilation; actual source changes span ~64 Go files.
  • A firewall-blocked attempt to call gh pr list is noted in the body β€” informational, does not affect correctness.

Generated by Contribution Check Β· β—·

  • expires on Mar 17, 2026, 9:24 AM UTC

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions