mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-10-06 18:12:13 +00:00
Merge pull request #1023 from langchain-ai/yogesh/concise-pr-description
chore: make agent PR bodies more concise by removing change lists and redundant test steps
This commit is contained in:
commit
f80bb37d6a
2 changed files with 17 additions and 19 deletions
|
|
@ -200,13 +200,14 @@ When you have completed your implementation, follow these steps in order:
|
||||||
```
|
```
|
||||||
Where type is one of: `fix` (bug fix), `feat` (new feature), `chore` (maintenance), `ci` (CI/CD)
|
Where type is one of: `fix` (bug fix), `feat` (new feature), `chore` (maintenance), `ci` (CI/CD)
|
||||||
|
|
||||||
**PR Body**:
|
**PR Body** (keep under 10 lines total. the more concise the better):
|
||||||
```
|
```
|
||||||
## Description
|
## Description
|
||||||
<Explain WHY this PR is needed, list the changes, and reference the Linear issue>
|
<1-3 sentences on WHY and the approach.
|
||||||
|
NO "Changes:" section — file changes are already in the commit history.>
|
||||||
|
|
||||||
## Test Plan
|
## Test Plan
|
||||||
- [ ] <specific verification step>
|
- [ ] <new/novel verification steps only — NOT "run existing tests" or "verify existing behavior">
|
||||||
```
|
```
|
||||||
|
|
||||||
**Commit message**: Concise, focusing on the "why" rather than the "what". If not provided, the PR title is used.
|
**Commit message**: Concise, focusing on the "why" rather than the "what". If not provided, the PR title is used.
|
||||||
|
|
|
||||||
|
|
@ -64,33 +64,30 @@ def commit_and_open_pr(
|
||||||
The PR body MUST follow this exact template:
|
The PR body MUST follow this exact template:
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
<Explain WHY this PR is needed. Include:
|
<1-3 sentences explaining WHY this PR is needed and the approach taken.
|
||||||
- List of changes made
|
DO NOT list files changed or enumerate code
|
||||||
- Reference to the Linear issue or design docs
|
changes — that information is already in the commit history.>
|
||||||
- Any context on the approach taken>
|
|
||||||
|
|
||||||
## Test Plan
|
## Test Plan
|
||||||
- [ ] <specific test step 1>
|
- [ ] <new test case or manual verification step ONLY for new behavior>
|
||||||
- [ ] <specific test step 2>
|
|
||||||
|
IMPORTANT RULES for the body:
|
||||||
|
- NEVER add a "Changes:" or "Files changed:" section — it's redundant with git commits
|
||||||
|
- Test Plan must ONLY include new/novel verification steps, NOT "run existing tests"
|
||||||
|
or "verify existing functionality is unaffected" — those are always implied
|
||||||
|
If it's a UI change you may say something along the lines of "Test in preview deployment"
|
||||||
|
- Keep the entire body concise (aim for under 10 lines total)
|
||||||
|
|
||||||
Example body:
|
Example body:
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
Fixes the null pointer exception that occurs when a user without
|
Fixes the null pointer exception when a user without a profile authenticates.
|
||||||
a profile attempts to authenticate. The root cause was a missing
|
The root cause was a missing null check in `getProfile`.
|
||||||
null check in the `getProfile` method.
|
|
||||||
|
|
||||||
Changes:
|
|
||||||
- Added null check in `auth/getProfile.ts`
|
|
||||||
- Added fallback default profile object
|
|
||||||
- Updated related unit tests
|
|
||||||
|
|
||||||
Resolves AA-123
|
Resolves AA-123
|
||||||
|
|
||||||
## Test Plan
|
## Test Plan
|
||||||
- [ ] Verify login works for users without profiles
|
- [ ] Verify login works for users without profiles
|
||||||
- [ ] Verify existing users are unaffected
|
|
||||||
- [ ] Run `yarn test` and confirm all tests pass
|
|
||||||
|
|
||||||
## Commit Message
|
## Commit Message
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue