We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9ecb3a9 + eeb3d82 commit c7792dbCopy full SHA for c7792db
pr-ready/pr-ready.sh
@@ -19,8 +19,9 @@ merge_pr() {
19
local response=$(curl -s -H "Authorization: token $token" -H "Accept: application/vnd.github+json" "https://api.github.com/repos/$REPO/pulls/$pr_number")
20
# Check if the PR is mergeable
21
if jq -e '.mergeable' <<< "$response" > /dev/null; then
22
- # _PR="https://api.github.com/repos/$REPO/pulls/$pr_number"
+ _PR="https://api.github.com/repos/$REPO/pulls/$pr_number"
23
echo "https://api.github.com/repos/$REPO/pulls/$pr_number"
24
+ exit 1
25
else
26
echo "PR #$pr_number is not mergeable"
27
sleep 60
0 commit comments