Skip to content

fix: strip Linear issue IDs from generated release notes#42

Merged
fadi-george merged 1 commit into
mainfrom
cursor/strip-linear-ids-from-release-notes
Jul 9, 2026
Merged

fix: strip Linear issue IDs from generated release notes#42
fadi-george merged 1 commit into
mainfrom
cursor/strip-linear-ids-from-release-notes

Conversation

@fadi-george

Copy link
Copy Markdown
Contributor

Description

Wrapper release PRs (Flutter, React Native, Cordova, etc.) copy changelog bullets from the native SDK release notes into their PR bodies. Those bullets contain Linear issue IDs next to Linear closing magic words (e.g. fix: [SDK-4513] ...), so Linear links every wrapper release PR to the same Linear issues as a resolving PR. Each time a wrapper release PR opens or merges, Linear's Git automations flip the issue status, and the synced GitHub issue gets repeatedly reopened and closed by the linear-code bot (see the event spam on OneSignal/OneSignal-Android-SDK#2647).

Details

  • Strips Linear issue IDs (both [SDK-1234] and bare SDK-1234) from the generated release notes in create-release.yml before the PR body is created or updated.
  • Applies to the whole generated body: the repo's own merged PR titles and the copied Android/iOS native changelog bullets.
  • PR links (e.g. OneSignal-Android-SDK/pull/2682) and version strings (e.g. "Android SDK from 5.9.5") are unaffected; verified the regex against a sample body and validated the workflow YAML parses.
  • The original native SDK PRs remain the only PRs linked to each Linear issue, so status transitions happen once. Release PRs already open before this change may keep old IDs in preserved sections until regenerated.

Made with Cursor

Wrapper release PR bodies copied changelog bullets containing Linear IDs
next to magic words (fix, resolve), causing Linear to link every wrapper
release PR to the same issues and repeatedly reopen/close their synced
GitHub issues.

Co-authored-by: Cursor <cursoragent@cursor.com>
@fadi-george fadi-george requested a review from a team as a code owner July 9, 2026 23:00
@fadi-george fadi-george merged commit 2645b9b into main Jul 9, 2026
2 checks passed
@fadi-george fadi-george deleted the cursor/strip-linear-ids-from-release-notes branch July 9, 2026 23:56
@nan-li

nan-li commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Does this break linear deployed for wrappers?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants