带有 Netlify CMS 编辑工作流的 Bitbucket
Bitbucket with Netlify CMS editorial Workflow
我有一个基于 Gatsby 和带有 Bitbucket 的 Netlify CMS 构建的网络应用程序。一直在寻找一种在 Netlify CMS 中实现编辑工作流程的方法。但似乎我无法让它发挥作用。这是我 config.yml
中的代码
backend:
name: bitbucket
repo: sample/repo
branch: master
auth_type: implicit
commit_messages:
create: 'Create {{collection}} “{{slug}}”'
update: 'Update {{collection}} “{{slug}}”'
delete: 'Delete {{collection}} “{{slug}}”'
uploadMedia: '[skip ci] Upload “{{path}}”'
deleteMedia: '[skip ci] Delete “{{path}}”'
local_backend: true
publish_mode: editorial_workflow
media_folder: static/img
public_folder: /img
我遇到了障碍,我对这种设置很陌生,几天来一直在研究这个问题。任何帮助将不胜感激。非常感谢,上帝保佑!
正如您在 Netlify's docs 中所见,在 Bitbucket 中的使用仍处于测试阶段,仅适用于 2.10.6
(netlify-cms
) 或 2.11.3
( netlify-cms-app
):
publish_mode: editorial_workflow
In order to track unpublished entries
statuses the GitLab implementation uses merge requests labels and the
BitBucket implementation uses pull requests comments.
此外,当dealing with Bitbucket时,需要在config.yml
中添加app_id
(其余配置):
backend:
name: bitbucket
repo: owner-name/repo-name
branch: default
auth_type: implicit
app_id: # The Key from your Bitbucket settings
publish_mode: editorial_workflow
如果您的版本是最新的并且配置设置正确,您将在屏幕顶部看到编辑工作流程选项卡:
完整的工作流程:
请记住,编辑工作流程仅适用于某些类型的 collections。
我有一个基于 Gatsby 和带有 Bitbucket 的 Netlify CMS 构建的网络应用程序。一直在寻找一种在 Netlify CMS 中实现编辑工作流程的方法。但似乎我无法让它发挥作用。这是我 config.yml
中的代码backend:
name: bitbucket
repo: sample/repo
branch: master
auth_type: implicit
commit_messages:
create: 'Create {{collection}} “{{slug}}”'
update: 'Update {{collection}} “{{slug}}”'
delete: 'Delete {{collection}} “{{slug}}”'
uploadMedia: '[skip ci] Upload “{{path}}”'
deleteMedia: '[skip ci] Delete “{{path}}”'
local_backend: true
publish_mode: editorial_workflow
media_folder: static/img
public_folder: /img
我遇到了障碍,我对这种设置很陌生,几天来一直在研究这个问题。任何帮助将不胜感激。非常感谢,上帝保佑!
正如您在 Netlify's docs 中所见,在 Bitbucket 中的使用仍处于测试阶段,仅适用于 2.10.6
(netlify-cms
) 或 2.11.3
( netlify-cms-app
):
publish_mode: editorial_workflow
In order to track unpublished entries statuses the GitLab implementation uses merge requests labels and the BitBucket implementation uses pull requests comments.
此外,当dealing with Bitbucket时,需要在config.yml
中添加app_id
(其余配置):
backend:
name: bitbucket
repo: owner-name/repo-name
branch: default
auth_type: implicit
app_id: # The Key from your Bitbucket settings
publish_mode: editorial_workflow
如果您的版本是最新的并且配置设置正确,您将在屏幕顶部看到编辑工作流程选项卡:
完整的工作流程:
请记住,编辑工作流程仅适用于某些类型的 collections。