con un clic
create-pr
// Create a GitHub pull request with Conventional Commits title and structured description. Use when creating PRs, opening pull requests, or submitting code for review.
// Create a GitHub pull request with Conventional Commits title and structured description. Use when creating PRs, opening pull requests, or submitting code for review.
Create a GitHub issue (Bug Report or Feature Request) for the current project. Use when filing bugs, reporting issues, or requesting features.
Review a GitHub pull request with inline comments on specific diff lines. Use when reviewing PRs, analyzing pull request changes, or providing code review feedback.
| name | create-pr |
| description | Create a GitHub pull request with Conventional Commits title and structured description. Use when creating PRs, opening pull requests, or submitting code for review. |
| argument-hint | ["base branch (optional)"] |
Create a pull request for the current branch.
If $ARGUMENTS is provided, use it as the base branch. Otherwise, default to the repository's development branch.
Gather context — run these in parallel:
git status (never use -uall)git diff to see staged and unstaged changesgit log --oneline for recent commit stylegit log <base-branch>..HEAD --oneline and git diff <base-branch>...HEAD to see all commits and changes since diverging from the base branchDetermine the issue number — look at branch name and commit messages for issue references (e.g. #123, issue-123). If no issue number can be found, ask the user for the related GitHub issue number before proceeding.
Draft the PR title — use Conventional Commits format:
feat: ... for new featuresfix: ... for bug fixeschore: ... for maintenancetest: ... for tests! after the type for breaking changes (e.g. feat!: ...)feat(auth): ...)Draft the PR description using this exact template:
### Applicable issues
<!-- Please link the GitHub issues related to this PR (You can reference an issue using # then number, e.g. #123) -->
- fixes #<ISSUE_NUMBER>
### Description of changes
<!-- Please explain the changes you made right below this line. -->
<SUMMARY_OF_CHANGES>
### Checklist
<!-- [Place an '[X]' (no spaces) in all applicable fields. Please remove unrelated fields.] -->
- [X] Title of the pull request follows [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/)
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Show the draft to the user — present the title and description for review. Ask if they want to adjust anything before creating.
Create the PR:
-u if neededgh pr create with the title and body. Use a HEREDOC for the body.Return the PR URL to the user.
<SUMMARY_OF_CHANGES> with a concise description of what the PR does, based on the commits and diff.[X].