Enable GitLab CI, wiki & snippets for projects, except sandboxes

Created on 1 June 2023, about 1 year ago
Updated 2 June 2023, about 1 year ago

We are now ready to make GitLab CI available to all projects, except sandboxes.

✨ Feature request
Status

Fixed

Version

3.0

Component

GitLab integration

Created by

πŸ‡ΊπŸ‡ΈUnited States drumm NY, US

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @drumm
  • Status changed to RTBC about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States drumm NY, US

    This is now deployed. Bulk updating existing projects is

    $client = versioncontrol_gitlab_get_client()->getHttpClient();
    $result = (new EntityFieldQuery())->entityCondition('entity_type', 'node')
    ->entityCondition('bundle', project_project_node_types())
    ->fieldCondition('field_project_type', 'value', 'full')
    ->execute();
    foreach (array_keys($result['node']) as $nid) {
      $repository = versioncontrol_project_repository_load($nid);
      print $repository->name . PHP_EOL;
      $client->put('projects/' . $repository->gitlab_project_id, ['Content-type' => 'application/x-www-form-urlencoded'], drupal_http_build_query([
        'jobs_enabled' => 'true',
        'shared_runners_enabled' => 'true',
        'snippets_enabled' => 'true',
        'wiki_enabled' => 'true',
      ]));
    }
  • Status changed to Fixed about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States drumm NY, US

    All projects except one with a missing field_project_type value now have GitLab CI enabled.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024