Skip to content

add create-pr.sh helper script for streamlined PR creation - #37

Merged
TheJavaGuy merged 1 commit into
masterfrom
add-create-pr-script
Feb 28, 2026
Merged

TheJavaGuy merged 1 commit into
masterfrom
add-create-pr-script

Conversation

@TheJavaGuy

Copy link
Copy Markdown
Owner

Summary

  • Adds create-pr.sh at the repo root to automate gh pr create with sensible defaults
  • Derives PR title from branch name (kebab-case → sentence) and body from commit log
  • Includes a test-plan checklist in the auto-generated body
  • Accepts optional positional args [title] [body] for overrides
  • Guards against running on master directly

Closes #36

Test plan

  • All tests pass: ./mvnw test
  • ./create-pr.sh works from a feature branch with no args
  • ./create-pr.sh "Custom title" overrides the title
  • Script exits with error when run on master

Closes #36

Adds a shell script that automates `gh pr create` with sensible
defaults: derives PR title from branch name and auto-generates
a body from the commit log since master, including a test checklist.
Accepts optional [title] [body] overrides and guards against
running directly on master.
@coveralls

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 22528617984

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 3 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.2%) to 95.738%

Files with Coverage Reduction New Missed Lines %
org/thejavaguy/javafaker/Commerce.java 1 93.1%
org/thejavaguy/javafaker/CreditCard.java 1 69.84%
org/thejavaguy/javafaker/Shipping.java 1 77.53%
Totals Coverage Status
Change from base Build 22526205211: 0.2%
Covered Lines: 1952
Relevant Lines: 2010

💛 - Coveralls

@TheJavaGuy
TheJavaGuy merged commit bef4102 into master Feb 28, 2026
2 checks passed
@TheJavaGuy
TheJavaGuy deleted the add-create-pr-script branch February 28, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add create-pr.sh helper script for streamlined PR creation

2 participants