create-pull-request
作者: bitwarden
为 Bitwarden 客户端创建拉取请求的工作流程。在创建 PR、编写 PR 描述或准备分支以供审查时使用。由“create…”触发。
npx skills add https://github.com/bitwarden/clients --skill create-pull-requestCreate Pull Request
PR Title Format
[PROJ-XXXXX] Short imperative summary
Examples:
[PM-12345] Add passkey support to vault item creation[CL-1124] Increase badge max-width[PM-33446] Ensure attachments are cleared on clone
Rules:
- Include the Jira ticket prefix (e.g.
PM-,CL-) - Keep under 70 characters total
- Use imperative mood in the summary
PR Body Template
IMPORTANT: Always follow the repo's PR template at .github/PULL_REQUEST_TEMPLATE.md. Add TODO items to the screenshots section for each scenario that should be captured if any.
Pre-PR Checklist
- All tests pass: Run
npm test - Lint clean: Run
npm run lint - No unintended changes: Check
git diff origin/main...HEADfor unexpected files - Branch up to date: Rebase on
mainif needed
Creating the PR
# Ensure branch is pushed
git push -u origin <branch-name>
# Create PR as draft by default (body follows .github/PULL_REQUEST_TEMPLATE.md)
gh pr create --draft --title "[PM-XXXXX] Short summary" --body "<fill in from PR template>"
Default to draft PRs. Only create a non-draft (ready for review) PR if the user explicitly requests it.
Base Branch
- Default target:
main - Check with team if targeting a feature branch instead