Open
Conversation
…sting CDN builds Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds a new Fastlane action to update metadata on an existing Apps CDN build post via the WordPress.com REST API, enabling a two-phase release flow (upload internal → later flip to external without re-upload).
Changes:
- Introduces
update_apps_cdn_build_metadataFastlane action that POSTs updates to an Apps CDN build post (visibility/status). - Adds RSpec coverage for successful updates, validation, and error handling.
- Documents the new action in the Trunk changelog.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| spec/update_apps_cdn_build_metadata_spec.rb | Adds unit tests for the new action’s request shaping, validation, and error cases. |
| lib/fastlane/plugin/wpmreleasetoolkit/actions/common/update_apps_cdn_build_metadata.rb | Implements the new Fastlane action that updates build metadata via WPCOM REST API. |
| CHANGELOG.md | Adds a Trunk “New Features” entry for the new action. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
lib/fastlane/plugin/wpmreleasetoolkit/actions/common/update_apps_cdn_build_metadata.rb
Show resolved
Hide resolved
lib/fastlane/plugin/wpmreleasetoolkit/actions/common/update_apps_cdn_build_metadata.rb
Show resolved
Hide resolved
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Draft
1 task
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes AINFRA-2102
Summary
update_apps_cdn_build_metadataFastlane action that updates metadata (e.g. visibility) of an existing build on the Apps CDN without re-uploading the filePOST /rest/v1.1/sites/{site_id}/posts/{post_id}) to update taxonomy termsvisibility(:internal/:external) andpost_status(publish/draft)Context
The companion Studio PR uses this action in its
publish_releaselane.The existing
upload_build_to_apps_cdnaction cannot be used to change visibility because visibility is part of the dedup matching criteria in the CDN plugin — re-uploading with a different visibility creates a new build rather than updating the existing one.Test plan
bundle exec rspec spec/update_apps_cdn_build_metadata_spec.rb)terms[visibility]updates🤖 Generated with Claude Code