decaporg / decaporg/decap-cms

Nested Collections ignore editorial_workflow when deleting a file.

Open
#5,106 2 comments 0 reactions 0 assignees View on GitHub
area: nested-collections area: ui/editorial-workflow type: feature
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

**Describe the bug**
Using `editorial_workflow: true`, a pull request is created when a post is added or edited. But if you delete a post it doesn't generate a PR for the deletion, it just deletes and commits to `main`.

**To Reproduce**
Add a new post. Merge the PR. Then delete the post.

**Expected behavior**
A PR is generated in which the post is deleted.

**Actual behavior**
A commit on `main` is generated in which the post is deleted.

**Applicable Versions:**

- Netlify CMS version: netlify-cms-app 2.14.29, netlify-cms-core 2.38.7, netlify-cms 2.10.99
- Git provider: GitHub
- OS: macOS
- Browser version Chrome 88

**CMS configuration**

```yaml
backend:
name: git-gateway
branch: main
collections:
- name: posts
label: Post
folder: src/posts
create: true
fields:
- label: Title
name: title
widget: string
- label: Body
name: body
widget: markdown
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.