gpt4 book ai didi

Bitbucket 与 Netlify CMS 编辑工作流程

转载 作者:行者123 更新时间:2023-12-04 08:08:10 25 4
gpt4 key购买 nike

我有一个使用 Bitbucket 内置于 Gatsby 和 Netlify CMS 的 Web 应用程序。一直在寻找一种在 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 entriesstatuses the GitLab implementation uses merge requests labels and theBitBucket implementation uses pull requests comments.


另外,当 dealing with Bitbucket ,您需要添加 app_idconfig.yml (在其余配置中):
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
如果您的版本是最新的并且正确设置了配置,您将在屏幕顶部看到编辑工作流选项卡:
Editorial workflow in Netlify
完整的工作流程:
enter image description here
请记住,编辑工作流程仅适用于某些类型的集合。

关于Bitbucket 与 Netlify CMS 编辑工作流程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66114032/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com