From 01cfaa8cb0efed8489c7a7284b4b1147312d7d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20=C5=9Acieszka?= <79609951+mscieszka@users.noreply.github.com> Date: Sat, 18 May 2024 17:55:49 +0200 Subject: [PATCH] Update script URLs to use the recommended default-ref (#39) --- commands/web/expand-composer-json | 2 +- commands/web/phpcbf | 2 +- commands/web/phpcs | 2 +- commands/web/symlink-project | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/web/expand-composer-json b/commands/web/expand-composer-json index 93c2185..976cf14 100644 --- a/commands/web/expand-composer-json +++ b/commands/web/expand-composer-json @@ -13,6 +13,6 @@ export _WEB_ROOT=$DDEV_DOCROOT [[ $DDEV_PROJECT_TYPE == "drupal9" ]] && export _TARGET_CORE=^9 [[ $DDEV_PROJECT_TYPE == "drupal8" ]] && export _TARGET_CORE=^8 cd "$DDEV_COMPOSER_ROOT" || exit -curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/1.0.x/scripts/expand_composer_json.php +curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/default-ref/scripts/expand_composer_json.php php expand_composer_json.php "$DDEV_SITENAME" rm -f expand_composer_json.php diff --git a/commands/web/phpcbf b/commands/web/phpcbf index 6b601af..04c20a7 100644 --- a/commands/web/phpcbf +++ b/commands/web/phpcbf @@ -12,5 +12,5 @@ if ! command -v phpcbf >/dev/null; then echo "phpcbf is not available. You may need to 'ddev composer install'" exit 1 fi -test -e phpcs.xml.dist || curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/1.0.x/scripts/phpcs.xml.dist +test -e phpcs.xml.dist || curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/default-ref/scripts/phpcs.xml.dist phpcbf -s --report-full --report-summary --report-source web/modules/custom "$@" diff --git a/commands/web/phpcs b/commands/web/phpcs index 2216f52..f85a7ad 100755 --- a/commands/web/phpcs +++ b/commands/web/phpcs @@ -12,5 +12,5 @@ if ! command -v phpcs >/dev/null; then echo "phpcs is not available. You may need to 'ddev composer install'" exit 1 fi -test -e phpcs.xml.dist || curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/1.0.x/scripts/phpcs.xml.dist +test -e phpcs.xml.dist || curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/default-ref/scripts/phpcs.xml.dist phpcs -s --report-full --report-summary --report-source web/modules/custom "$@" diff --git a/commands/web/symlink-project b/commands/web/symlink-project index ac0ef7c..bdb6683 100644 --- a/commands/web/symlink-project +++ b/commands/web/symlink-project @@ -11,7 +11,7 @@ export _WEB_ROOT=$DDEV_DOCROOT #todo use more dynamic ref. cd "$DDEV_COMPOSER_ROOT" || exit -curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/1.0.x/scripts/symlink_project.php +curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/default-ref/scripts/symlink_project.php # Symlink name using underscores. # @see https://www.drupal.org/docs/develop/creating-modules/naming-and-placing-your-drupal-module