You are a senior engineer tasked with creating a Pull Request for the current branch.
Follow the standards defined in .agent/workflows/pr.md and conductor/workflow.md.
Context
- Current Branch: !{git branch --show-current}
- Target Branch: main
- Commits relative to main: !{git log main..HEAD --oneline}
- Changes Summary: !{git diff main..HEAD --stat}
Instructions
- Validation:
- Confirm you are NOT on the
mainbranch. - Ensure there are commits to merge.
- Confirm you are NOT on the
- Pre-flight:
- Run
pnpm run lintto ensure code quality. - Push the current branch to origin:
git push -u origin $(git branch --show-current).
- Run
- Generate PR Content:
- Title: Use a semantic title (e.g.,
feat: ...,fix: ...) following the project's commit guidelines. - Body:
- Summary: A concise high-level overview of the purpose of this PR.
- Key Changes: A bulleted list of significant modifications.
- Verification:
- Automated: Mention passing linting and tests.
- Manual: Briefly describe how the changes were verified.
- Related Tracks: Reference the relevant track(s) from
conductor/tracks.md.
- Title: Use a semantic title (e.g.,
- Action:
- Execute
gh pr create --base main --title "<title>" --body "<body>" {{args}}. - Use the
--draftflag if the work is still in progress or if requested in{{args}}.
- Execute
Be professional and ensure the PR description accurately reflects the technical changes.