Commit 2f7b5303 authored by Aral Balkan's avatar Aral Balkan

Minor cleanup of output.

parent e5a05342
Pipeline #476 skipped
......@@ -69,7 +69,6 @@ createGlobals(){
contentRepositoryID=106
categoryCapitalised="$(tr '[:lower:]' '[:upper:]' <<< ${category:0:1})${category:1}"
issueTitle="${categoryCapitalised}: ${domain}"
echo $issueTitle
}
......@@ -201,8 +200,9 @@ checkIfIssueExists(){
#
checkIfLocalBranchExists
checkIfRemoteBranchExists
checkIfMergeRequestExists
else
echo " ✕ Issue does not exist."
echo " ✕ Issue does not exist (so not checking for branches or merge requests)."
fi
}
......@@ -225,7 +225,6 @@ checkIfLocalBranchExists(){
checkIfRemoteBranchExists(){
echo " · Check if remote branch exists - todo"
remoteBranchExists=$(curl --silent -H "PRIVATE-TOKEN: ${privateToken}" https://source.ind.ie/api/v3/projects/${contentRepositoryID}/repository/branches | $private/lib/jq --arg name "$issueTitle" --raw-output '.[] | select(.name == $name)')
......@@ -233,13 +232,18 @@ checkIfRemoteBranchExists(){
comparisonURL="https://source.ind.ie/better/content/compare/master...${issueTitle}"
echo " ✓ Remote branch exists. Compare: ${comparisonURL}"
echo " ✓ Remote branch exists: ${comparisonURL}"
else
echo " ✕ Remote branch does *not* exist."
fi
}
checkIfMergeRequestExists(){
echo " · Check if merge request exists - todo"
}
checkIfPublished(){
echo " · Check if content published - todo"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment