Simulating Git events on hosted Drupal.org development environments

Last updated on
27 January 2018

Invoking hook_versioncontrol_code_arrival():  

// 640498 is a project’s node ID.
$repository = versioncontrol_project_repository_load(640498);
// 1338024 is a versioncontrol event ID. Find with:
// SELECT * FROM versioncontrol_git_event_data WHERE new_sha1 LIKE '56026cc%';
$event = $repository->loadEvent(1338024);
module_invoke_all('versioncontrol_code_arrival', $repository, $event);

Help improve this page

Page status: No known problems

You can: