Skip to content

Rename all environment variables from GITHUB_AW_* to GH_AW_*#2033

Merged
pelikhan merged 5 commits into
mainfrom
copilot/rename-env-variables
Oct 20, 2025
Merged

Rename all environment variables from GITHUB_AW_* to GH_AW_*#2033
pelikhan merged 5 commits into
mainfrom
copilot/rename-env-variables

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Oct 20, 2025

  • Understand the codebase structure and all GITHUB_AW_* environment variables (66 unique variables found)
  • Run baseline tests to ensure starting state is clean
  • Replace GITHUB_AW_* with GH_AW_* in Go source files
  • Replace GITHUB_AW_* with GH_AW_* in JavaScript/CJS files
  • Replace GITHUB_AW_* with GH_AW_* in markdown documentation
  • Replace GITHUB_AW_* with GH_AW_* in YAML workflow files
  • Replace GITHUB_AW_* with GH_AW_* in shell scripts
  • Run unit tests to validate changes (all pass)
  • Recompile workflows to generate new lock files (66/66 successful)
  • Format code to ensure consistency
  • Run linter to ensure code quality (no issues)
  • Fix JavaScript test failures (2 tests updated)
  • Merge main branch and resolve conflicts
  • Update new files from main with GH_AW_* prefix
  • Recompile workflows after merge (66/66 successful)
  • Verify complete replacement (0 GITHUB_AW_, all GH_AW_)

Summary:
Successfully renamed all environment variables from GITHUB_AW_* to GH_AW_* across the entire codebase and merged with main:

  • 186 files changed initially
  • Merged main branch with conflicts resolved
  • Updated new files from main (check_command_position.cjs/test, sanitize_output updates)
  • All Go tests passing ✅ (28 JS test files, 549 tests)
  • All JavaScript tests passing ✅
  • All workflows recompiled successfully (66/66)
  • No linting issues
  • Complete coverage: Go, JavaScript, Markdown, YAML, and Shell files
Original prompt

Rename all env variables starting with GITHUB_AW_... to GH_AW_...


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Rename environment variables from GITHUB_AW_ to GH_AW_ Rename all environment variables from GITHUB_AW_* to GH_AW_* Oct 20, 2025
Copilot AI requested a review from pelikhan October 20, 2025 16:50
@pelikhan pelikhan marked this pull request as ready for review October 20, 2025 16:52
@pelikhan
Copy link
Copy Markdown
Collaborator

@copilot format lint fix tests

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Oct 20, 2025

@copilot format lint fix tests

Done! All tests now passing. Fixed 2 JavaScript tests that were expecting no output initialization, but the code correctly initializes outputs to empty strings. Commit: 8f26b08

Copilot AI requested a review from pelikhan October 20, 2025 17:13
@pelikhan
Copy link
Copy Markdown
Collaborator

@copilot merge main recompile finish merge

Copilot AI and others added 2 commits October 20, 2025 17:45
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Oct 20, 2025

@copilot merge main recompile finish merge

Done! Merged main branch, resolved conflicts, updated new files with GH_AW_ prefix, and recompiled all 66 workflows. All tests passing. Commits: d7c4609 (merge), b48dd48 (recompile)

@pelikhan pelikhan merged commit 468cf78 into main Oct 20, 2025
3 checks passed
@pelikhan pelikhan deleted the copilot/rename-env-variables branch October 20, 2025 17:50
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