Prompt file imported from brublurryface/sanaka (
.github/prompts/publish-pr.prompt.md). Fill in{{commitMessage}},{{prTitle}},{{issueNumber}}before use. Copyright stays with the author.
Publish the currently reviewed and staged Sanaka change.
Commit message: {{commitMessage}}
Pull request title: {{prTitle}}
Related issue, if applicable: {{issueNumber}}
Do not modify source files. Do not stage unrelated files.
Workflow:
- Run
git status --short. - Run
git --no-pager diff --cached --stat. - Run
git diff --cached --check. - If nothing is staged, stop.
- If the staged diff contains unexpected files or the whitespace check fails, stop.
- If there are unstaged changes inside paths already included in the staged change, stop and report them before committing.
- Commit exactly the reviewed changes using the requested commit message.
- Push the current branch and configure its upstream if necessary.
- Create a pull request against
mainusing GitHub CLI. - Generate a concise pull request body containing:
- Summary
- Validation
Closes #<issue number>only when a related issue was provided
- Report:
- commit hash
- branch
- push result
- PR number
- PR URL
Do not merge the pull request.