diff --git a/.github/scripts/submit-module.sh b/.github/scripts/submit-module.sh index 23d9105ede..74a5f0fce9 100755 --- a/.github/scripts/submit-module.sh +++ b/.github/scripts/submit-module.sh @@ -19,7 +19,7 @@ fi repository=$(echo "${BODY}" | grep "### Module Repository" -A2 | tail -n1 | tr "[:upper:]" "[:lower:]" | sed -e 's/[\r\n]//g') if [[ ! "${repository}" =~ ^[a-zA-Z0-9-]+/terraform-[a-zA-Z0-9-]+$ ]]; then - gh issue comment "${NUMBER}" -b "Failed validation: Invalid repository name: '${repository}'. Please submit the repository in the format of ORGANIZATION/terraform-NAME-TARGETSYSTEM." + 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." exit 1 fi @@ -63,4 +63,4 @@ git push -u origin "${branch}" # Create pull request and update issue pr=$(gh pr create --title "${TITLE}" --body "Created ${jsonfile/../src/} for module ${namespace}/${name}/${target}. Closes #${NUMBER}.") #--assignee opentofu/core-engineers) gh issue comment "${NUMBER}" -b "Your submission has been validated and has moved on to the pull request phase (${pr}). This issue has been locked." -gh issue lock "${NUMBER}" -r resolved \ No newline at end of file +gh issue lock "${NUMBER}" -r resolved