Skip to content

Add release alias map to releases.json#23626

Merged
pelikhan merged 3 commits intomainfrom
copilot/add-release-alias-map
Mar 31, 2026
Merged

Add release alias map to releases.json#23626
pelikhan merged 3 commits intomainfrom
copilot/add-release-alias-map

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 31, 2026

Summary

Adds a release alias map to .github/aw/releases.json and updates the JSON schema accordingly.

Changes

  • Added aliases field to .github/aw/releases.json:
    • latest"latest" (always resolves to the most recent release)
    • stable"v0.64.5"
  • Updated .github/aw/releases.schema.json to define the aliases property as a map of alias names to version strings (accepting latest or vMAJOR.MINOR.PATCH format)

Copilot AI and others added 2 commits March 31, 2026 02:46
@pelikhan pelikhan marked this pull request as ready for review March 31, 2026 02:52
Copilot AI review requested due to automatic review settings March 31, 2026 02:52
@pelikhan
Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a release alias mapping to the gh-aw release configuration and updates the corresponding JSON schema to validate the new structure.

Changes:

  • Added an aliases map to .github/aw/releases.json (e.g., latest, stable).
  • Updated .github/aw/releases.schema.json to validate aliases values as either latest or vMAJOR.MINOR.PATCH.
  • Updated .github/workflows/daily-doc-updater.lock.yml (cache key suffix + wiring trusted-users into MCP guard policies).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/daily-doc-updater.lock.yml Regenerated workflow lock content (cache key suffix + trusted-users guard policy wiring).
.github/aw/releases.schema.json Extends schema to support/validate the new aliases map.
.github/aw/releases.json Adds aliases entries (latest, stable) to the releases configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 332 to +338
- name: Restore cache-memory file share data
uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
key: memory-approved-0072b676-${{ env.GH_AW_WORKFLOW_ID_SANITIZED }}-${{ github.run_id }}
key: memory-approved-6f25a3c0-${{ env.GH_AW_WORKFLOW_ID_SANITIZED }}-${{ github.run_id }}
path: /tmp/gh-aw/cache-memory
restore-keys: |
memory-approved-0072b676-${{ env.GH_AW_WORKFLOW_ID_SANITIZED }}-
memory-approved-6f25a3c0-${{ env.GH_AW_WORKFLOW_ID_SANITIZED }}-
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description and title focus on adding an aliases map to .github/aw/releases.json, but this workflow lock file also changes (cache key suffix update and a new trusted-users guard policy wiring). If these workflow changes are intentional, please update the PR description to include them; otherwise, consider reverting this file to keep the PR scoped to the releases config/schema update.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 31, 2026

@copilot update releases JSON schema https://github.com/github/gh-aw/actions/runs/23778157850/job/69284468557?pr=23626

Fixed in ad78870. The CI validation script in ci.yml had a hardcoded allowedKeys set that didn't include aliases. Updated it to add aliases to the allowed keys and added validation logic that checks alias values are either "latest" or match vMAJOR.MINOR.PATCH format.

Copilot AI requested a review from pelikhan March 31, 2026 02:59
@pelikhan pelikhan merged commit 7c193ac into main Mar 31, 2026
54 of 55 checks passed
@pelikhan pelikhan deleted the copilot/add-release-alias-map branch March 31, 2026 03:06
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.

3 participants