Repository navigation
chore: Use What/Why structure in PR template #26348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+11
−15
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ff8292f
chore: Restore previous PR template and agent PR rules
andreiborza fe9c578
Keep AGENTS.md PR rules unchanged
andreiborza 38e3dbb
Use What/Why structure in PR template
andreiborza 6609c08
Move general guidance to the top of the PR template
andreiborza b887fa3
Update .github/PULL_REQUEST_TEMPLATE.md
andreiborza df9efab
Keep the external contributor note in the PR template
andreiborza c647055
Merge remote-tracking branch 'origin/ab/revert-pr-template' into ab/r…
andreiborza File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,19 @@ | ||
| <!-- | ||
| Read the Contributing guidelines first: https://github.com/getsentry/sentry-javascript/blob/develop/CONTRIBUTING.md | ||
|
|
||
| Before you request a review: | ||
|
|
||
| - Add tests for new or changed behavior. `pnpm run lint` and `pnpm run test` pass. | ||
| - Fix or dismiss AI review findings. | ||
| - Read your own diff first, add inline comments with explanation or where to look closely. | ||
| - Large PR? Split or stack it, or describe why you cannot. | ||
|
|
||
| - Remove fields that do not apply (e.g. on small PRs). | ||
| - External contributors: link an issue where you got a maintainer's go-ahead. | ||
| Use simple, direct sentences. No "Summary" heading, no test-plan checklist. | ||
| Remove "Closes" if there is no linked issue. | ||
| External contributors: link an issue where you got a maintainer's go-ahead. | ||
| --> | ||
|
|
||
| **Why:** <!-- reason behind change, why this approach (no implementation walkthrough), non-obvious decisions/tradeoffs --> | ||
| ## What | ||
|
|
||
| **How to review:** <!-- where to start, what to skim --> | ||
| <!-- | ||
| One or two sentences on what changed for users. Add one-line bullets for the changes if needed. | ||
| Describe behavior and intent, not implementation. Reviewers read the diff for the how. | ||
| --> | ||
|
|
||
| **Unsure about:** <!-- where you want a second opinion --> | ||
| ## Why | ||
|
|
||
| Closes # | ||
| <!-- One or two sentences: reason behind change, why this approach (no implementation walkthrough), non-obvious decisions/tradeoffs --> | ||
|
|
||
| <!-- Long, AI-written descriptions at the end, inside `<details><summary>AI walkthrough</summary>...</details>` --> | ||
| Closes: # | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should keep this line somewhere.