Skip to content

[bug]: Bidirectional GitHub issue sync rewrites issue bodies on GitHub at sync time (Mermaid flattened, lists reformatted, images re-hosted) #10171

Open

Description

@MaolmeoX

Environment

Plane Commercial, self-hosted (Docker, installed with prime-cli), v3.3.3 then v4.0.1. GitHub integration with Project Issue Sync set to Bidirectional, issues synced through the plane label.

What happens

When an issue is synced to Plane, the GitHub App rewrites the issue's body on GitHub within a few minutes, although nobody edited the work item in Plane. The edit is attributed to the app in the issue's edit history. On one repository, 76 issue bodies were rewritten this way:

  • Mermaid code blocks are flattened: the fenced block loses its line breaks (flowchart LR A([MO load]) --> B{…} B -- no --> …), a stray Loading line is appended, and GitHub no longer renders the diagram.
  • Images are re-hosted: ![alt](https://github.com/user-attachments/assets/…) becomes ![](http://<plane-host>/silo/api/assets/github/<workspace>/<user>/<asset>). The alt text is lost and the URL is private to the Plane instance, so the image is broken for every GitHub reader (see GitHub <img> tags lose alt, replaced with auth-gated silo URLs #9073).
  • Lists are reformatted: - becomes * , 1. becomes 1. , a blank line is added after every item, nested lists are re-indented.

Steps to reproduce

  1. Set a project's Issue Sync to Bidirectional.
  2. Create a GitHub issue whose body has a Mermaid block, a nested list and a user-attachments image.
  3. Add the plane label.
  4. Within a few minutes, the issue's edit history shows an edit by the GitHub App with the changes above.

With Issue Sync set to Unidirectional, the same issue is not rewritten (checked: no edit after 5 minutes).

Expected

Syncing an issue into Plane never writes to the GitHub issue. A Plane → GitHub push happens only when someone edits the work item in Plane, and only for the fields they changed; it never sends back a re-serialised version of content that came from GitHub unchanged.

Related

#9073 (images), #9077 (closed as fixed on Plane Cloud; still reproducible on self-hosted v4.0.1), #9071, #9072.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions