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

オープン
#10,171 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@harshdubey1234 がすでに取り組んでいます。

2026年11月17日 から。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github, typescript
領域
api, backend

調査の方向性

Start by tracing the bidirectional GitHub issue-sync flow and how issue bodies are serialized and sent back to GitHub; the issue does not name specific files or tests. Compare the bidirectional behavior with unidirectional sync and inspect the related reports #9073, #9077, #9071, and #9072. Done means syncing an unchanged GitHub issue does not rewrite its body, while intentional Plane edits still sync only changed fields.

索引モデルが issue の本文から書いたものです。

説明

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 #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.

主要言語
TypeScript
スター
63k
フォーク
6.5k
平均マージ
2日 16時間
マージ済み PR(30日)
70

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

makeplane/plane のほかの issue

makeplane/plane の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。