Repository navigation
Adding or retiring a patch
Written against v1.6.1.
This page is for changing the package itself. The detailed procedure is the patch-package skill, delivered to this repository under .claude/skills/patch-package/; this page keeps the rules a change has to respect.
- Cut the patch against the exact upstream pin (
pestphp/pest-plugin-mutate5.0.2) so thatgit apply -p1accepts it. - Register it under
extra.patchesincomposer.jsonas a{"description", "url"}entry of the array, never as a key of an object (Packagist reorders object keys). The description names the ticket that tracks the upstream fix, where there is one, and the path startsvendor/uams-web/patches-pest-plugin-mutate/patches/. - Place it in the order it was cut for. Patches apply in the order listed, and a later patch is cut against the output of the earlier ones.
- Add its entry to the list in the README and to Patches. The README text must equal the
composer.jsondescription exactly;node scripts/check-patch-descriptions.mjschecks it. - Where the patch changes behavior a check can drive, add a check under
tests/and call it fromtests/check.sh, and confirm thatSKIP_PATCH=<file> tests/check.shthen fails. See Verifying the set. - If a ticket in this repository waits on an upstream issue or pull request, add an upstream watch row in the same pull request (see below).
A patch retires once a fixed upstream release ships. Remove its file, its composer.json entry, its README and wiki entries, any check that drives it, and its watch row, and close the tracking issue. Removing a patch is a minor release; see Versioning.
The watch-upstream workflow (.github/workflows/watch-upstream.yml) reads one JSON file per upstream issue or pull request in .github/upstream-watches/ once a day, and comments on the row's tracking issue when something moves. A directory with no rows is valid, and the run then does nothing. The row format is in .github/upstream-watches/README.md.
Reference: Patches, Versioning.
Home | Using the patches | Patches | Versioning | Verifying the set | Adding or retiring a patch | Troubleshooting | README | Repository
Written against v1.6.1. Edit these pages in docs/wiki/ through a pull request; edits made here are overwritten on the next publish.
Getting started
Reference
Maintaining the package
Troubleshooting
Project