Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 24, 2026

The upgrade command now updates action pins in .github/aw/actions-lock.json after applying codemods but before compilation, mirroring the behavior of the update command.

Changes

  • Core Integration: Added UpdateActions() call as Step 3 in upgrade flow (after codemods, before compilation)
  • Configuration: Added NoActions field to UpgradeConfig and --no-actions flag to skip updates
  • Help Text: Updated command documentation to reflect new Step 3 and added usage example

Upgrade Flow

1. Update agent/prompt files
2. Apply codemods
3. Update action pins (NEW)    ← unless --no-fix or --no-actions
4. Compile workflows

Usage

# Standard upgrade with action updates
gh aw upgrade

# Skip action updates
gh aw upgrade --no-actions

Testing

Added TestUpgradeCommand_UpdatesActionPins and TestUpgradeCommand_NoActionsFlag to verify both modes. Updated existing tests to include new config field.

Original prompt

Update action pins (actions-lock) as part of the "upgrade" command. After applying codemods.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI and others added 2 commits January 24, 2026 11:13
- Add --no-actions flag to skip action updates
- Update action pins after codemods step
- Add NoActions field to UpgradeConfig
- Update help text to document action updates
- Add tests for action pin updates and --no-actions flag

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Replace meaningless assert.True(t, true) with assert.Condition

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update action pins for upgrade command Add action pin updates to upgrade command after codemods Jan 24, 2026
Copilot AI requested a review from pelikhan January 24, 2026 11:26
@pelikhan pelikhan marked this pull request as ready for review January 24, 2026 11:26
@pelikhan pelikhan merged commit 314850d into main Jan 24, 2026
145 checks passed
@pelikhan pelikhan deleted the copilot/update-action-pins-upgrade-command branch January 24, 2026 12:11
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