feat(content): admin.hlx.page bulk preview/publish on push#2710
Open
davidnuescheler wants to merge 1 commit intomainfrom
Open
feat(content): admin.hlx.page bulk preview/publish on push#2710davidnuescheler wants to merge 1 commit intomainfrom
davidnuescheler wants to merge 1 commit intomainfrom
Conversation
- Bulk preview (POST /preview/.../*) and bulk publish (POST /live/.../*) - --publish waits for preview jobs before publish jobs; same DA/IMS token - Strip .html suffix for admin bulk paths (extensionless web URLs) - Git branch from project root for ref; branch query for slashes/uppercase - Tests for hlx-admin helpers and push integration Made-with: Cursor
Contributor
are you sure you want to run preview + publish for why not just specify both? |
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.
Summary
Adds
--previewand--publishtoaem content pushso that after a successful da.live sync, the CLI can start bulk preview and/or bulk publish jobs on admin.hlx.page using the same DA/IMS bearer token.--preview: bulk preview for changed paths (add/update and, when needed, delete).--publish: runs bulk preview first, waits for those jobs to finish, then bulk publish..htmlresources are sent extensionless (e.g./x/page.html→/x/page) for preview/publish payloads.?branch=when the branch name has slashes or uppercase letters.Testing
test/content/hlx-admin.test.js, updates totest/content/push.cmd.test.jsandtest/content/content-commands.test.js.Made with Cursor