From b65996141903a1b2d57df279f575d5102b6e751a Mon Sep 17 00:00:00 2001 From: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com> Date: Sat, 19 Oct 2024 10:11:58 +0200 Subject: [PATCH] Clearer error message on provider submission Signed-off-by: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com> --- .github/scripts/submit-provider.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/submit-provider.sh b/.github/scripts/submit-provider.sh index 05a9537575..37f257cdbf 100755 --- a/.github/scripts/submit-provider.sh +++ b/.github/scripts/submit-provider.sh @@ -19,7 +19,7 @@ fi repository=$(echo "${BODY}" | grep "### Provider Repository" -A2 | tail -n1 | tr "[:upper:]" "[:lower:]" | sed -e 's/[\r\n]//g') 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 submit the repository in the format of ORGANIZATION/terraform-provider-NAME." + 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." exit 1 fi @@ -62,4 +62,4 @@ git push -u origin "${branch}" # Create pull request and update issue pr=$(gh pr create --title "${TITLE}" --body "Created ${jsonfile/../src/}) for provider ${namespace}/${name}. 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