Manually commenting `netlify-cms/pending_review` breaks editorial workflow UI
- Dominant language
- JavaScript
- Stars
- 19.4k
- Forks
- 3.1k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 9
Description
**Describe the bug**
When you create a post on the cms then comment `netlify-cms/pending_review` on the bitbucket pr manually it removes the post from the editorial workflow entirely instead of moving it to the correct status
**To Reproduce**
Have editorial workflow turned on (Bitbucket backend)
Create a post in netlify cms and save
Go to generated PR and comment `netlify-cms/pending_review`
**Behaviour**
Post no longer shows in editorial workflow
**Expected behavior**
Post should be moved to `In Review` section in editorial workflow
**Screenshots**
I believe the issue stems from bitbucket escaping the underscore character on user comments

This is taken from the debug console in chrome (when the cms auto comments the `\\` before `_` is not present)
**Applicable Versions:**
netlify-cms-app 2.15.63
netlify-cms-core 2.54.3
netlify-cms 2.10.183
**CMS configuration**
```
backend:
name: bitbucket
repo: instilco/instil-website
branch: great-gatsby
auth_type: implicit
app_id: PzVBYS6Fsxt9jyeTz4
publish_mode: editorial_workflow
media_folder: "gatsby-instil-website/static/assets/cms-images"
public_folder: "/assets/cms-images"
collections:
- name: "blog"
label: "Blog"
folder: "src/_posts/blog"
create: true
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
preview_path: "/blog/{{permalink}}"
fields:
- { label: "Layout", name: "layout", widget: "hidden", default: "post" }
- { label: "Title", name: "title", widget: "string" }
- { label: "Description", name: "description", widget: "string" }
- { label: "Author", name: "author", widget: "string" }
- { label: "Permalink", name: "permalink", widget: "string" }
- { label: "Hook", name: "hook", widget: "string", required: false }
- { label: "Body", name: "body", widget: "markdown" }
- {
label: "Thumbnail",
name: "thumbnail",
widget: "image",
allow_multiple: false,
required: false
}
- {
label: "Categories",
name: "categories",
widget: "list",
required: false,
pattern: ['^[a-z]*$', "Category must be lower-case"]
}
- {
label: "Related",
name: "related",
widget: "list",
required: false
}
- {
label: "Image",
name: "image",
widget: "image",
allow_multiple: false,
required: false
}
```
Contributor guide
Assessment
This issue has not been assessed yet.