The Wayback Machine - https://web.archive.org/web/20220328123444/https://github.com/netlify/netlify-cms/issues/6140
Skip to content
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

Manually commenting netlify-cms/pending_review breaks editorial workflow UI #6140

Open
calebwilson706 opened this issue Jan 19, 2022 · 0 comments
Labels

Comments

@calebwilson706
Copy link

@calebwilson706 calebwilson706 commented Jan 19, 2022

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
Screenshot 2022-01-19 at 17 37 21
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
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants