-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
CollectionName not prepended to branch names in Editorial Workflow mode #1396
Comments
Looks like a long standing regression from #145, thanks for pointing it out! |
a simple fix i made to our branch (in our case we had
the line |
We'd definitely take a PR for this. |
I will work on that by the weekend.. |
@nazihahmed that'd be awesome, reach out on Gitter if you need any help. |
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. |
- Do you want to request a feature or report a bug?
Bug
- What is the current behavior?
I have two collections which contain pages with the same names with different content. With the Editorial Workflow enabled changing any of these pages effects the other collections equivalent page.
I think I've worked out what is happening, it looks like the generated branch names do not contain the
collectionName-
as it suggests it should in the documentation.At first I thought this was the same issue as #1164 but I actually think its different.
Looking at the code I think the problem is here: https://github.com/netlify/netlify-cms/blob/55a24a75c14fcef97b19f9c1fe6cc1579e0b59c2/src/backends/github/API.js#L325
It seem as just the
slug
is passed to thegenerateBranchName
function and notoptions.collectionName
as well. I might be wrong though.So in my case instead of
cms/pages-consumer/color
, I getcms/color
.- If the current behavior is a bug, please provide the steps to reproduce.
cms/[name of file]
- What is the expected behavior?
Branches should be created with the
collectionName
prepended to the branch name allowing them to be different.- Please mention your versions where applicable.
Netlify CMS version: 1.8.4
Browser version: Chrome 66
Node.JS version: 9.8.0
Operating System: OS X
- Please link or paste your
config.yml
below if applicable.The text was updated successfully, but these errors were encountered: