Process Laravel Shift pull requests - review changes, act on instructions, and test the app
Review and process this Laravel Shift pull request from this repo.
Use gh CLI to:
gh pr view $ARGUMENTS --commentsgh pr diff $ARGUMENTSBefore checking out the PR branch, verify the working directory is clean:
git status --porcelain
If there are any uncommitted changes, STOP immediately and tell the user:
"You have uncommitted changes in your working directory. Please commit or discard them before running this skill."
Do NOT stash, reset, or otherwise modify their working directory. Only proceed if git status --porcelain returns empty output.
Checkout the PR branch locally so all testing happens on the actual PR code:
gh pr checkout $ARGUMENTS
Analyze what Laravel Shift has done:
First, run composer update. If it fails with PHP version compatibility errors, check whether this is a Valet or Herd isolated site:
valet isolated (if that fails, try herd isolated)valet composer update (or herd composer update respectively)If composer update fails for other reasons, investigate and fix before proceeding.
Next, follow any instructions given in the PR description or comments. This typically includes:
Please pay special attention to the "Automate more with AI..." section of each step, since it's specifically directed towards LLM comprehension.
For any changes marked as "optional" in the PR:
After making changes:
php artisan test --compact to verify tests passcomposer.json for tightenco/duster, laravel/pint, or friendsofphp/php-cs-fixer (in that priority order) and run the first one found. Use the --dirty flag for Duster and Pint. If none are found, skip this step.Do NOT commit any changes or push to the remote. Leave all changes as uncommitted modifications in the working directory so the user can review them before committing.
Summarize:
End with: "If you want to merge this PR, you can run gh pr merge $ARGUMENTS --merge --delete-branch on your command line."