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
Copy file name to clipboardExpand all lines: .claude/skills/create-java-pr/SKILL.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,8 @@ Derive the branch name from the changes being made. Use `feat/`, `fix/`, `ref/`,
35
35
36
36
**For stacked PRs:** For the first PR in a new stack, first create and push the collection branch (see `.cursor/rules/pr.mdc` § "Creating the Collection Branch"), then branch the PR off it. For subsequent PRs, branch off the previous stack branch. Use the naming conventions from `.cursor/rules/pr.mdc` § "Branch Naming".
37
37
38
+
**CRITICAL: Never merge, fast-forward, or push commits into the collection branch.** It stays at its initial position until the user merges stack PRs through GitHub. Updating it will auto-merge and destroy the entire PR stack.
39
+
38
40
## Step 2: Format Code and Regenerate API Files
39
41
40
42
```bash
@@ -111,14 +113,21 @@ Fill in each section based on the changes being PR'd. Check any checklist items
111
113
- Pass `--base <previous-stack-branch>` so the PR targets the previous branch (first PR in a stack targets the collection branch).
112
114
- Use the stacked PR title format: `<type>(<scope>): [<Topic> <N>] <Subject>` (see `.cursor/rules/pr.mdc` § "PR Title Naming").
113
115
- Include the stack list at the top of the PR body, before the `## :scroll: Description` section (see `.cursor/rules/pr.mdc` § "Stack List in PR Description" for the format).
116
+
- Add a merge method reminder at the very end of the PR body (see `.cursor/rules/pr.mdc` § "Stack List in PR Description" for the exact text). This only applies to stack PRs, not the collection branch PR.
114
117
115
118
Then continue to Step 5.5 (stacked PRs only) or Step 6.
116
119
117
120
## Step 5.5: Update Stack List on All PRs (stacked PRs only)
118
121
119
122
Skip this step for standalone PRs.
120
123
121
-
After creating the PR, update the PR description on **every other PR in the stack** so all PRs have the same up-to-date stack list. Follow the format and commands in `.cursor/rules/pr.mdc` § "Stack List in PR Description".
124
+
After creating the PR, update the PR description on **every other PR in the stack — including the collection branch PR** — so all PRs have the same up-to-date stack list. Follow the format and commands in `.cursor/rules/pr.mdc` § "Stack List in PR Description".
125
+
126
+
**Important:** When updating PR bodies, never use shell redirects (`>`, `>>`) or pipes (`|`) or compound commands (`&&`). These create compound shell expressions that won't match permission patterns. Instead:
127
+
- Use `gh pr view <NUMBER> --json body --jq '.body'` to get the body (output returned directly)
128
+
- Use the `Write` tool to save it to a temp file
129
+
- Use the `Edit` tool to modify the temp file
130
+
- Use `gh pr edit <NUMBER> --body-file /tmp/pr-body.md` to update
122
131
123
132
## Step 6: Update Changelog
124
133
@@ -170,8 +179,6 @@ git push
170
179
171
180
If no changelog entry is needed, add `#skip-changelog` to the PR description to disable the changelog CI check:
172
181
173
-
```bash
174
-
gh pr view <PR_NUMBER> --json body --jq '.body'> /tmp/pr-body.md
Copy file name to clipboardExpand all lines: .cursor/rules/pr.mdc
+22-16Lines changed: 22 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -185,6 +185,8 @@ git push -u origin HEAD
185
185
gh pr create --base main --draft --title "<type>(<scope>): <Topic>" --body "Collection PR for the <Topic> stack. Squash-merge this once all stack PRs are merged."
186
186
```
187
187
188
+
**CRITICAL: Do NOT manually update the collection branch.** Never merge, fast-forward, or push stack branch commits into the collection branch. The collection branch stays at its initial position (the empty commit on `main`) until the user merges individual stack PRs into it one by one through GitHub. If you fast-forward the collection branch to include stack commits, GitHub will auto-merge and delete all stack PR branches, destroying the entire stack.
189
+
188
190
### Creating a New Stacked PR
189
191
190
192
1. Start from the tip of the previous stack branch (or the collection branch for the first PR).
Every PR in the stack must have a stack list **at the top of its description** (before the `## :scroll: Description` section). When a new PR is added, update the description on **all** PRs in the stack.
202
+
Every PR in the stack — **including the collection branch PR** — must have a stack list **at the top of its description** (before the `## :scroll: Description` section). When a new PR is added, update the description on **all** PRs in the stack and on the collection branch PR.
201
203
202
204
Format:
203
205
204
206
```markdown
205
207
## PR Stack (<Topic>)
206
208
207
-
- [#5118](https://github.com/getsentry/sentry-java/pull/5118) — Add scope-level attributes API
208
-
- [#5120](https://github.com/getsentry/sentry-java/pull/5120) — Wire scope attributes into LoggerApi and MetricsApi
209
-
- [#5121](https://github.com/getsentry/sentry-java/pull/5121) — Showcase scope attributes in Spring Boot 4 samples
209
+
- #5118
210
+
- #5120
211
+
- #5121
210
212
211
213
---
212
214
```
213
215
214
216
No status column — GitHub already shows that. The `---` separates the stack list from the rest of the PR description.
215
217
216
-
To update the PR description, use `--body-file` to avoid shell quoting issues with special characters in the body:
218
+
**Merge method reminder:** On stack PRs (not the collection branch PR), add the following line at the very end of the PR description:
217
219
218
-
```bash
219
-
# Get current PR description into a temp file
220
-
gh pr view <PR_NUMBER> --json body --jq '.body' > /tmp/pr-body.md
220
+
```markdown
221
+
> ⚠️ **Merge this PR using a merge commit** (not squash). Only the collection branch is squash-merged into main.
222
+
```
221
223
222
-
# Edit /tmp/pr-body.md to prepend or replace the stack list section
223
-
# (replace everything from "## PR Stack" up to and including the "---" separator,
224
-
# or prepend before the existing description if no stack list exists yet)
224
+
This does not apply to standalone PRs or the collection branch PR.
To update the PR description, use `--body-file` to avoid shell quoting issues with special characters in the body.
227
+
228
+
**Important:** Do not use shell redirects (`>`, `>>`, `|`) or compound commands (`&&`, `||`). These create compound shell expressions that won't match permission patterns. Instead, use the `Write` and `Edit` tools for file manipulation:
229
+
230
+
1. Read the current body with `gh pr view <PR_NUMBER> --json body --jq '.body'` (the output is returned directly — use the `Write` tool to save it to `/tmp/pr-body.md`)
231
+
2. Use the `Edit` tool to prepend or replace the stack list section in `/tmp/pr-body.md`
232
+
3. Update the description: `gh pr edit <PR_NUMBER> --body-file /tmp/pr-body.md`
229
233
230
234
### Merging Stacked PRs (done by the user, not the agent)
231
235
@@ -237,12 +241,12 @@ Once all stack PRs are merged into the collection branch, the collection PR is *
237
241
238
242
### Syncing the Stack
239
243
240
-
When a base PR changes (e.g. after addressing review feedback on PR 1), merge the changes forward through the stack:
244
+
When a base PR changes (e.g. after addressing review feedback on PR 1), merge the changes forward through the stack **between adjacent stack PR branches only**:
**Never merge into the collection branch.** Syncing only happens between stack PR branches. The collection branch is untouched until the user merges PRs through GitHub.
259
+
254
260
Prefer merge over rebase — it preserves commit history, doesn't invalidate existing review comments, and avoids the need for force-pushing. Only rebase if explicitly requested.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+22-8Lines changed: 22 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,27 @@
1
1
# Changelog
2
2
3
+
## 8.35.0
4
+
5
+
### Fixes
6
+
7
+
- Android: Remove the dependency on protobuf-lite for tombstones ([#5157](https://github.com/getsentry/sentry-java/pull/5157))
8
+
9
+
### Features
10
+
11
+
- Add new experimental option to capture profiles for ANRs ([#4899](https://github.com/getsentry/sentry-java/pull/4899))
12
+
- This feature will capture a stack profile of the main thread when it gets unresponsive
13
+
- The profile gets attached to the ANR event on the next app start, providing a flamegraph of the ANR issue on the sentry issue details page
14
+
- Enable via `options.setAnrProfilingSampleRate(<sample-rate>)` or AndroidManifest.xml: `<meta-data android:name="io.sentry.anr.profiling.sample-rate" android:value="[0.0-1.0]" />`
15
+
- The sample rate controls the probability of collecting a profile for each detected foreground ANR (0.0 to 1.0, null to disable)
16
+
17
+
### Behavioral Changes
18
+
19
+
- Add `enableAnrFingerprinting` option which assigns static fingerprints to ANR events with system-only stacktraces
20
+
- When enabled, ANRs whose stacktraces contain only system frames (e.g. `java.lang` or `android.os`) are grouped into a single issue instead of creating many separate issues
21
+
- This will help to reduce overall ANR issue noise in the Sentry dashboard
22
+
- **IMPORTANT:** This option is enabled by default.
23
+
- Disable via `options.setEnableAnrFingerprinting(false)` or AndroidManifest.xml: `<meta-data android:name="io.sentry.anr.enable-fingerprinting" android:value="false" />`
- The `ManifestMetaDataReader` now read the `DIST` ([#5107](https://github.com/getsentry/sentry-java/pull/5107))
48
-
- Add new experimental option to capture profiles for ANRs ([#4899](https://github.com/getsentry/sentry-java/pull/4899))
49
-
- This feature will capture a stack profile of the main thread when it gets unresponsive
50
-
- The profile gets attached to the ANR event on the next app start, providing a flamegraph of the ANR issue on the sentry issue details page
51
-
- Enable via `options.setAnrProfilingSampleRate(<sample-rate>)` or AndroidManifest.xml: `<meta-data android:name="io.sentry.anr.profiling.sample-rate" android:value="[0.0-1.0]" />`
52
-
- The sample rate controls the probability of collecting a profile for each detected foreground ANR (0.0 to 1.0, null to disable)
53
-
- Add `enableAnrFingerprinting` option to reduce ANR noise by assigning static fingerprints to ANR events with system-only stacktraces
54
-
- When enabled, ANRs whose stacktraces contain only system frames (e.g. `java.lang` or `android.os`) are grouped into a single issue instead of creating many separate issues
55
-
- Enable via `options.setEnableAnrFingerprinting(true)` or AndroidManifest.xml: `<meta-data android:name="io.sentry.anr.enable-fingerprinting" android:value="true" />`
0 commit comments