Branch: refs/heads/master Home: https://github.com/phpmyadmin/scripts Commit: ad0661c11055c704336e41fab1c70450565a718c https://github.com/phpmyadmin/scripts/commit/ad0661c11055c704336e41fab1c7045... Author: William Desportes <williamdes@wdes.fr> Date: 2026-05-25 (Mon, 05 May 2026) +02:00 Changed paths: M hooks/commits.php Log Message: ----------- hooks: fix dedupe condition for "too many commits" warning I have been waiting to send this patch I made a while ago, Claude found a small mistake in my implementation and fixed it. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Commit: 757601f55e281038dd323bb9850208867d100e54 https://github.com/phpmyadmin/scripts/commit/757601f55e281038dd323bb98502088... Author: William Desportes <williamdes@wdes.fr> Date: 2026-05-25 (Mon, 05 May 2026) +02:00 Changed paths: A .github/workflows/tests.yml Log Message: ----------- ci: add tests using phpunit Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Commit: d9f781af1c18ed1ef3ca68339d557d2a181dee25 https://github.com/phpmyadmin/scripts/commit/d9f781af1c18ed1ef3ca68339d557d2... Author: William Desportes <williamdes@wdes.fr> Date: 2026-05-25 (Mon, 05 May 2026) +02:00 Changed paths: A hooks/lib/github_client.php M hooks/commits.php Log Message: ----------- hooks: route commits.php through a GithubClient interface Wraps the github_* API helpers in a GithubClient interface with a GithubApiClient implementation, and replaces every call site in commits.php. github_verify_post, json_response and fail stay as free functions since they handle the webhook surface, not the API. The .phpt also copies the new lib file into the temp dir to keep the existing subprocess test green; commit 2 replaces that machinery. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Commit: 0e96d2e89b938041745c4f17ab5162b678197b32 https://github.com/phpmyadmin/scripts/commit/0e96d2e89b938041745c4f17ab5162b... Author: William Desportes <williamdes@wdes.fr> Date: 2026-05-25 (Mon, 05 May 2026) +02:00 Changed paths: A hooks/lib/commits_handler.php A hooks/tests/commits_dedupe.phpt M hooks/commits.php Log Message: ----------- hooks: replace subprocess test with in-process fake GithubClient Extracts the ">50 commits" dedupe block from commits.php into maybe_post_commits_warning() in lib/commits_handler.php so it can be called directly from tests. Rewrites commits_dedupe.phpt to use a FakeGithubClient that implements GithubClient — implements rather than extends GithubApiClient, so a forgotten method is a parse-time error instead of a live API call. Unused methods throw to surface unexpected calls. Drops the temp-dir + proc_open machinery; the test now runs in-process and is ~5x faster. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Commit: cb5f21b64b0b945f859f61400766e26474cea5d4 https://github.com/phpmyadmin/scripts/commit/cb5f21b64b0b945f859f61400766e26... Author: William Desportes <williamdes@wdes.fr> Date: 2026-07-27 (Mon, 07 July 2026) +02:00 Changed paths: M backup/backup Log Message: ----------- backups: document how to use the script