Skip to content

feat(repository): add feature-branch publish strategy#486

Open
ZJvandeWeg wants to merge 1 commit into
nuxt-content:mainfrom
ZJvandeWeg:feat/feature-branch-publish-strategy
Open

feat(repository): add feature-branch publish strategy#486
ZJvandeWeg wants to merge 1 commit into
nuxt-content:mainfrom
ZJvandeWeg:feat/feature-branch-publish-strategy

Conversation

@ZJvandeWeg

Copy link
Copy Markdown

At FlowFuse we use a public handbook which we want to transition to use Nuxt and Nuxt Studio for content updates. However, as a handbook is in some way the law, it needs to be approved and merged. As such, feature branches would be required.

This PR adds branchStrategy: 'feature-branch' to the studio.repository config. If set the publishing creates a studio/YYYY-MM-DD-HH-MM-SS branch. The seconds are included to avoid collisions.

Add `branchStrategy: 'feature-branch'` to `studio.repository` config.
When set, each publish creates a `studio/YYYY-MM-DD-HH-MM-SS` branch
instead of committing directly to the configured branch, enabling a
PR-based review workflow for content changes.
@vercel

vercel Bot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

@ZJvandeWeg is attempting to deploy a commit to the Nuxt Team on Vercel.

A member of the Team first needs to authorize it.

@hendrikheil

Copy link
Copy Markdown
Collaborator

Did you test this on both git providers?

@ZJvandeWeg

Copy link
Copy Markdown
Author

Verifying right now with GH, and hitting a bug where the branch configured to be committed on is overridden by the branch (ref) from which is deployed. @hendrikheil I think I can fix, same PR or different one?

@ZJvandeWeg

Copy link
Copy Markdown
Author

Ah, I see #474. That's one way to fix the issue. I think that's the wrong fix though.

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