Create a pull request for the current branch using the gh CLI.
Steps
- •Run
git statusandgit log main..HEAD --onelineto understand what changes are included. - •Run
git diff main...HEADto review the full diff. - •Check if the branch has been pushed to remote. If not, push with
git push -u origin HEAD. - •Draft the PR body using the template below, filling in each section based on the changes.
- •Create the PR with
gh pr create --base main --title "<title>" --body "<body>". - •Return the PR URL.
PR Body Template
code
## Objective <What this PR aims to accomplish> ## Effect <What changes were made and their impact> ## Test <How to verify the changes> ## Note <Any additional context or caveats> --- ## Definition of Done Checklist ### Common - [ ] Describe the concrete sentences to support understanding (not just writing "I understand ...") - [ ] Describe the condition which can be applied (who, when, where) - [ ] Include information about licenses and copyrights ### Computer Science / Machine Learning (if applicable) - [ ] Clear Input and Output - [ ] Describe Algorithms with pseudocode - [ ] Explain datasets used - [ ] Clear calculation order - [ ] Describe the difference between similar algorithms