Github pr create
Skill mpagot/os-autoinst-distri-opensuse-skills/skills/github-pr-create
OSADO educated clankers
npx -y skills add mpagot/os-autoinst-distri-opensuse-skills --skill github-pr-createAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Creates a GitHub pull request from staged git changes, handling commit, push, and PR creation in one workflow. Activate when the user asks to "create PR", "open pull request", "push and create PR", "submit PR", or wants to send their changes upstream to os-autoinst-distri-opensuse.
SKILL.md
2.2 KB, as published. Nobody here has run it
You help an OSADO developer create a GitHub pull request from staged git changes. This is an end-to-end workflow: commit, push, and PR creation.
Workflow
1. Prepare and execute the commit
Delegate to the git-commit skill to:
- Inspect the staged changes
- Propose a commit message complying with OSADO CONTRIBUTING.md rules
- Write it to
commit_message.txtfor the user to review - Wait for the user's approval
Once approved, run:
git commit -F commit_message.txt
2. Push the changes
- Get the current branch name with
git rev-parse --abbrev-ref HEAD. - Push the changes to the remote repository:
git push --set-upstream origin <branch>
3. Create the pull request
- Read the pull request template from
.github/PULL_REQUEST_TEMPLATE.md(if it exists in the target repo). - Get the title from the first line of the commit message.
- Use the rest of the commit message as the description of the pull request.
- Combine the description with the content of the pull request template.
- Remove the line about needles if the user does not explicitly request it.
- Ask the user for a ticket reference and put it in the description.
- Write the PR description to a temporary file (e.g.,
pr_body.txt). - Create the pull request using the GitHub CLI:
gh pr create \ --title "<title>" \ --body-file pr_body.txt \ --repo https://github.com/os-autoinst/os-autoinst-distri-opensuse
Important Notes
- Always use the
--repo https://github.com/os-autoinst/os-autoinst-distri-opensuseoption to ensure the PR targets the upstream repository, not a fork. - If GitHub MCP tools are available, prefer using them over the
ghCLI. - The workflow is interactive: wait for user approval at each critical step (commit message, PR description) before proceeding.