From 508383ec9abc862dcb72434d6e9cc18d1d46b650 Mon Sep 17 00:00:00 2001 From: Liam Morland Date: Tue, 1 Feb 2022 12:14:06 -0500 Subject: [PATCH] ISTWCMS-5258: Read project list from wcms/drupal-recommended-project --- uw_wcms_tools.gitlab.inc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/uw_wcms_tools.gitlab.inc b/uw_wcms_tools.gitlab.inc index b3ab573..43db3aa 100644 --- a/uw_wcms_tools.gitlab.inc +++ b/uw_wcms_tools.gitlab.inc @@ -885,21 +885,22 @@ function uw_wcms_tools_gitlab_tag_release(string $namespace, string $path): void } /** - * Return an array of WCMS projects in uw_base_profile composer.json. + * Return an array of WCMS projects in wcms/drupal-recommended-project. * * @return array[] * An array of project arrays with keys 'namespace' and 'path'. */ function uw_wcms_tools_gitlab_get_profile_projects(): array { - // Get composer.json from development branch in uw_base_profile. - $project = uw_wcms_tools_get_project('wcms', 'uw_base_profile'); + // Get composer.json from development branch in + // wcms/drupal-recommended-project. + $project = uw_wcms_tools_get_project('wcms', 'drupal-recommended-project'); $file_path = 'composer.json'; $params = [ 'ref' => uw_wcms_tools_get_branch_default_or_latest($project->id), ]; $composer = uw_wcms_tools_query_gitlab_api('projects/' . $project->id . '/repository/files/' . urlencode($file_path) . '/raw', $params); if ($composer['http_status'] !== 200) { - throw new Exception('Unable to load ' . $file_path . ' from uw_base_profile.'); + throw new Exception('Unable to load ' . $file_path . ' from wcms/drupal-recommended-project.'); } // Make an array of all projects in the 'wcms' group. -- GitLab