cyberneticlibrary

Create pull request with screenshots

create-prcommandsetup L14
chenders/deadonfilm
What it does

Create PR with optional screenshots for UI changes

Best for

When you have UI changes committed and want to auto-generate desktop+mobile screenshots in the PR

Inputs
  • · optional: PR_title
  • · changed_file_list_from_git
Outputs
  • · PR_URL
  • · screenshots_committed
  • · proper_commit_message
Requires
  • · git
  • · gh_CLI
  • · Playwright_browser_automation
Preconditions

Branch has commits; GitHub remote configured; gh authenticated

Failure modes
  • · Dev server not running for screenshots
  • · gh auth fails
  • · PR already exists on branch
Trust signals
  • · Detects UI changes automatically
  • · Takes screenshots at both 1280x800 and 375x667
  • · Uses raw.githubusercontent URLs for images