You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fetch the auto-generated release notes from the draft release:
150
+
Read the `## [{newVersionName}]` section from `CHANGELOG.md` as the primary source for release content. If that section is empty or was not created in Step 2c, fall back to fetching auto-generated release notes:
135
151
136
152
```bash
137
153
gh release view v{newVersionName} --json body --jq .body
138
154
```
139
155
140
-
Using those notes as context, write a concise user-facing summary of the release (2-3 sentences max, no commit hashes or PR numbers, written for end users not developers). Focus on new features and important bug fixes. Omit chores, maintenance, refactoring, CI changes, and test coverage improvements — these are not relevant to Play Store users. Translate the summary into 5 languages.
156
+
Using the changelog entries (or auto-generated notes as fallback) as context, write a concise user-facing summary of the release (2-3 sentences max, no commit hashes or PR numbers, written for end users not developers). Focus on new features and important bug fixes. Omit chores, maintenance, refactoring, CI changes, and test coverage improvements — these are not relevant to Play Store users. Translate the summary into 5 languages.
141
157
142
158
Create `.ai/` directory if it doesn't exist. Save to `.ai/release-notes-{newVersionName}.md`:
Copy file name to clipboardExpand all lines: .cursor/rules/rules.main.mdc
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,16 @@ alwaysApply: true
62
62
63
63
---
64
64
65
+
## Changelog rules:
66
+
- add an entry under `## [Unreleased]` in `CHANGELOG.md` for `feat:` and `fix:` PRs; skip for `chore:`, `ci:`, `refactor:`, `test:`, `docs:` unless the change is user-facing
67
+
- use standard Keep a Changelog categories: `### Added`, `### Changed`, `### Deprecated`, `### Removed`, `### Fixed`, `### Security`
68
+
- append `#PR_NUMBER` at the end of each changelog entry when the PR number is known
69
+
- place new entries at the top of their category section (newest first)
70
+
- never modify released version sections — only edit `## [Unreleased]`
71
+
- create category headings on demand (don't add empty stubs)
72
+
73
+
---
74
+
65
75
## Rules for Android Unit tests and Instrumentation tests:
66
76
- run unit tests for specific files like this: `./gradlew :app:testDevDebugUnitTest --tests "to.bitkit.repositories.LightningRepoTest"`
67
77
- write unit tests in the same style and using same libraries as: `CurrencyRepoTest`, `LightningRepoTest`, `WalletRepoTest`
- ALWAYS use `.toImmutableList()`, `.toImmutableMap()`, `.toImmutableSet()` when producing collections for UI state
238
238
- ALWAYS use `persistentListOf()`, `persistentMapOf()`, `persistentSetOf()` for default values in UiState fields
239
239
240
+
### Changelog
241
+
242
+
- ALWAYS add an entry under `## [Unreleased]` in `CHANGELOG.md` for `feat:` and `fix:` PRs; skip for `chore:`, `ci:`, `refactor:`, `test:`, `docs:` unless the change is user-facing
243
+
- USE standard Keep a Changelog categories: `### Added`, `### Changed`, `### Deprecated`, `### Removed`, `### Fixed`, `### Security`
244
+
- ALWAYS append `#PR_NUMBER` at the end of each changelog entry when the PR number is known
245
+
- ALWAYS place new entries at the top of their category section (newest first)
246
+
- NEVER modify released version sections — only edit `## [Unreleased]`
0 commit comments