diff --git a/.github/scripts/submit-module.sh b/.github/scripts/submit-module.sh index 74a5f0fce9..22ed78c7fa 100755 --- a/.github/scripts/submit-module.sh +++ b/.github/scripts/submit-module.sh @@ -17,6 +17,7 @@ if [[ -z "${NUMBER}" ]]; then fi repository=$(echo "${BODY}" | grep "### Module Repository" -A2 | tail -n1 | tr "[:upper:]" "[:lower:]" | sed -e 's/[\r\n]//g') +repository=$(echo -n "${repository}" | sed -e 's$https://github.com/$$' -e 's$github.com/$$') if [[ ! "${repository}" =~ ^[a-zA-Z0-9-]+/terraform-[a-zA-Z0-9-]+$ ]]; then gh issue comment "${NUMBER}" -b "Failed validation: Invalid repository name: '${repository}'. Please edit your issue to state the name of the repository in the format of ORGANIZATION/terraform-NAME-TARGETSYSTEM." diff --git a/.github/scripts/submit-provider.sh b/.github/scripts/submit-provider.sh index 37f257cdbf..86d72dfda8 100755 --- a/.github/scripts/submit-provider.sh +++ b/.github/scripts/submit-provider.sh @@ -17,6 +17,7 @@ if [[ -z "${NUMBER}" ]]; then fi repository=$(echo "${BODY}" | grep "### Provider Repository" -A2 | tail -n1 | tr "[:upper:]" "[:lower:]" | sed -e 's/[\r\n]//g') +repository=$(echo -n "${repository}" | sed -e 's$https://github.com/$$' -e 's$github.com/$$') if [[ ! "${repository}" =~ ^[a-zA-Z0-9-]+/terraform-provider-[a-zA-Z0-9-]+$ ]]; then gh issue comment "${NUMBER}" -b "Failed validation: Invalid repository name: '${repository}'. Please edit your issue to state the repository in the format of ORGANIZATION/terraform-provider-NAME."