Skip to content

Commit

Permalink
Merge branch 'main' into GL-1836
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-bansal96 authored Sep 25, 2023
2 parents fbced37 + e317dab commit d320bc5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ jobs:
- uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: '8.1'
- name: 'Get ACLI version'
id: acli-version
run: |
Expand Down
1 change: 0 additions & 1 deletion config/from_d7_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
}
],
"require": {
"acquia/acquia-migrate-accelerate": "^1@dev",
"composer/installers": "^1.9",
"cweagans/composer-patches": "^1.7",
"drupal/core-composer-scaffold": "9.0.1",
Expand Down
5 changes: 4 additions & 1 deletion src/Command/App/NewFromDrupal7Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
fclose($config_resource);

// Parse recommendations for project builder.
$recommendations_location = __DIR__ . '/../../../config/from_d7_recommendations.json';
$recommendations_location = "https://git.drupalcode.org/project/acquia_migrate/-/raw/recommendations/recommendations.json";
if ($input->getOption('recommendations') !== NULL) {
$raw_recommendations_location = $input->getOption('recommendations');
try {
Expand All @@ -148,6 +148,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return Command::FAILURE;
}
}
// PHP defaults to no user agent. (Drupal.org's) GitLab requires it.
// @see https://www.php.net/manual/en/filesystem.configuration.php#ini.user-agent
ini_set('user_agent', 'ACLI');
$recommendations_resource = fopen($recommendations_location, 'r');
$recommendations = Recommendations::createFromResource($recommendations_resource);
fclose($recommendations_resource);
Expand Down
8 changes: 4 additions & 4 deletions src/Command/CodeStudio/CodeStudioCiCdVariables.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,28 @@ public static function getDefaults(?string $cloudApplicationUuid = NULL, ?string
return [
[
'key' => 'ACQUIA_APPLICATION_UUID',
'masked' => FALSE,
'masked' => TRUE,
'protected' => FALSE,
'value' => $cloudApplicationUuid,
'variable_type' => 'env_var',
],
[
'key' => 'ACQUIA_CLOUD_API_TOKEN_KEY',
'masked' => FALSE,
'masked' => TRUE,
'protected' => FALSE,
'value' => $cloudKey,
'variable_type' => 'env_var',
],
[
'key' => 'ACQUIA_CLOUD_API_TOKEN_SECRET',
'masked' => FALSE,
'masked' => TRUE,
'protected' => FALSE,
'value' => $cloudSecret,
'variable_type' => 'env_var',
],
[
'key' => 'ACQUIA_GLAB_TOKEN_NAME',
'masked' => FALSE,
'masked' => TRUE,
'protected' => FALSE,
'value' => $projectAccessTokenName,
'variable_type' => 'env_var',
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/src/CommandTestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -621,15 +621,15 @@ protected function getMockGitLabVariables(): array {
0 => [
'environment_scope' => '*',
'key' => 'ACQUIA_APPLICATION_UUID',
'masked' => FALSE,
'masked' => TRUE,
'protected' => FALSE,
'value' => '2b3f7cf0-6602-4590-948b-3b07b1b005ef',
'variable_type' => 'env_var',
],
1 => [
'environment_scope' => '*',
'key' => 'ACQUIA_CLOUD_API_TOKEN_KEY',
'masked' => FALSE,
'masked' => TRUE,
'protected' => FALSE,
'value' => '111aae74-e81a-4052-b4b9-a27a62e6b6a6',
'variable_type' => 'env_var',
Expand Down

0 comments on commit d320bc5

Please sign in to comment.