Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working on drafts locally? #2236

Closed
SachaG opened this issue Mar 23, 2019 · 6 comments
Closed

Working on drafts locally? #2236

SachaG opened this issue Mar 23, 2019 · 6 comments

Comments

@SachaG
Copy link

SachaG commented Mar 23, 2019

Is there a way to create or edit drafts locally? Basically, I would like to start working on a draft locally on my own machine, then make it available to NetlifyCMS so others can contribute.

I saw that NetlifyCMS saves drafts in their own branch, but trying to create and push a draft branch manually myself doesn't seem to work. Is this part of the workflow documented anywhere?

@erquhart
Copy link
Contributor

erquhart commented Mar 23, 2019

Editorial workflow entries are created as pull requests, but metadata in an orphan ref is used to keep track, not simple to tap into for your own manual pull requests. We're close to merging a PR that will replace the metadata with pull request labels, at which point you'll be able to add the label to your own PR and editorial workflow will pick it up.

PR here: #1961

Sent with GitHawk

@SachaG
Copy link
Author

SachaG commented Mar 23, 2019

Oh cool. Btw I'm sure you've considered this but what about having a status: draft field in your markdown file's frontmatter? This could coexist with the more complex GitHub branch workflow as a simpler way to work with drafts locally?

@bjrn
Copy link
Contributor

bjrn commented Mar 27, 2019

@SachaG there's also netlify-cms-backend-fs which provides an easy way to work on files in the local filesystem when in development mode (although that still doesn't solve integration with the editorial workflow of course).

@erquhart
Copy link
Contributor

erquhart commented Apr 2, 2019

Yeah I've considered the need for draft functionality as a separate entity from editorial workflow for a while now, less about a workflow and more about parity with built in draft functionality for SSG's like Jekyll and Hugo, which use a flag as you mentioned. Feature request here: #942

@stale
Copy link

stale bot commented Oct 29, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@erquhart
Copy link
Contributor

This would be resolved by #2977, closing in favor of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants