ework-web 0.10.98 → 0.10.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/upstream-sync.ts +4 -1
package/package.json
CHANGED
package/src/upstream-sync.ts
CHANGED
|
@@ -154,7 +154,10 @@ export class UpstreamSync {
|
|
|
154
154
|
const gcAuthor = gc.user?.login ?? "upstream";
|
|
155
155
|
// ensure the kind before postComment's internal user creation runs
|
|
156
156
|
await ensureUser(gcAuthor, fromGithubBot(gcAuthor) ? "bot" : "human");
|
|
157
|
-
|
|
157
|
+
// invisible provenance marker: ework-mirror skips events carrying it, so
|
|
158
|
+
// synced-in comments never echo back to the upstream thread
|
|
159
|
+
const body = (gc.body ?? "") + "\n\n<!-- upstream-sync -->";
|
|
160
|
+
const row = await postComment(local.id, body, gcAuthor, {
|
|
158
161
|
createdAt: gc.created_at,
|
|
159
162
|
updatedAt: gc.updated_at,
|
|
160
163
|
upstreamCommentId: gc.id,
|