I'll like to include a pull request into my project, but i'm having problems doing it on composer. I'm looking to specifically require this particular pull request.
https://github.com/brexis/laravel-workflow/pull/47
What should I "require" in Composer?
You can't require from a specific pull request, but you can require a specific branch. Composer's documentation talks about requiring specific branches here and using repositories that are not on Packagist (like your forked repository) here.
This answer shows how to require a specific commit in a specific branch. In your case you could skip the specific commit. You could add your repository as follows to your composer.json file:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/personnage/laravel-workflow.git"
}
And you could add your requirement as "brexis/laravel-workflow": "dev-laravel-58-support" (branch name):
"require": {
...
"brexis/laravel-workflow": "dev-laravel-58-support",
...
},
Run composer update to install the dependency. Every time you update your branch (and therefore the pull request), you could run composer update again and Composer should fetch the latest commit on that branch.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With