Commit f82eef73 authored by cmosh's avatar cmosh

Fix if statement on merge request creation

parent 06cd7ad6
...@@ -518,11 +518,11 @@ cmd_review() { ...@@ -518,11 +518,11 @@ cmd_review() {
}' \ }' \
"https://api.github.com/repos/$OWNER/$REPO/pulls") "https://api.github.com/repos/$OWNER/$REPO/pulls")
if [ "$GITHUB_REQUEST" -eq 200 ] if [ "$GITHUB_REQUEST" -gt 300 ]
then then
echo "Pull request created succesfully"
else
echo "Failed to create pull request" echo "Failed to create pull request"
else
echo "Pull request created succesfully"
fi fi
fi fi
...@@ -542,11 +542,11 @@ cmd_review() { ...@@ -542,11 +542,11 @@ cmd_review() {
}' "https://gitlab.com/api/v3/projects/$OWNER%2F$REPO/merge_requests") }' "https://gitlab.com/api/v3/projects/$OWNER%2F$REPO/merge_requests")
if [ "$GITLAB_REQUEST" -eq 200 ] if [ "$GITLAB_REQUEST" -gt 300 ]
then then
echo "Merge request created succesfully"
else
echo "Failed to create merge request" echo "Failed to create merge request"
else
echo "Merge request created succesfully"
fi fi
fi fi
......
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