inertiajs / inertia-laravel

The Laravel adapter for Inertia.js.
https://inertiajs.com
MIT License
2.03k stars 227 forks source link

Automatically update Facade docblocks #538

Closed timacdonald closed 1 year ago

timacdonald commented 1 year ago

This PR introduces a new workflow that will automatically keep the Inertia\Inertia facade's docblock up to date with the underlying implementation.

This workflow only targets the master branch and will automatically commit changes back into master when a PR is merged - so it won't interrupt PRs from the community.

Note that the script reads the types from the underlying implementation, so if there are mistakes in those types they should be corrected in the implementation rather than on the Facade.

If you run into any issues with the generator - let me know.

We already use this workflow on laravel/framework, laravel/pennant, and some other packages.