git clone XXX
cd XXX
...
git diff > [description]-[issue-number]-[comment-number].patch
composer require cweagans/composer-patches
// composer.json
"extra": {
"patches": {
"drupal/homebox": {
"Drupal 9 compatibility for Homebox, https://dgo.to/3146462": "https://www.drupal.org/files/issues/2020-06-05/3146462-2.patch"
}
}
}
// composer.json
"extra": {
"patches": {
"drupal/homebox": {
"Drupal 9 compatibility for Homebox, https://dgo.to/3146462": "https://git.drupalcode.org/project/homebox/-/merge_requests/2.diff"
}
}
}
// composer.json
{
"repositories": {
"drupal": {
"type": "composer",
"url": "https://packages.drupal.org/8",
"exclude": [
"drupal/homebox"
]
},
"drupal/homebox": {
"type": "git",
"url": "git@git.drupal.org:issue/homebox-3146462.git",
"reference": "3146462-drupal-9-compatibility"
}
}
}
Contribute to Drupal.
Types of contribution
Projects anatomy on Drupal.org
Project issues: General
Project issues: Testing patches
Project issues: credits
Generate patches
Apply patches - propose code changes
OR using the Merge Request diff:
Publish a new module
Ideas for contributions
Useful tools
See also
Tools used for this presentation