Skip to content

Commit bd34046

Browse files
committed
init
1 parent cdebbd8 commit bd34046

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tooling/mirror-community-pull-request.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ fi
5151
echo "- Checking requirements"
5252
# Check gh is installed
5353
gh --version 1>/dev/null 2>&1 || { echo "❌ gh is not installed. Please install GitHub CLI."; exit 1; }
54+
# Check that user is logged into gh cli
55+
gh auth status 1>/dev/null 2>&1 || { echo "❌ Not logged into Github CLI. Please login with \`gh auth status\`."; exit 1; }
5456
# Check jq is installed
5557
jq --version 1>/dev/null 2>&1 || { echo "❌ jq is not installed. Please install jq."; exit 1; }
5658
# Check there are no local changes
@@ -60,6 +62,7 @@ git diff --quiet --exit-code || { echo "❌ There are local changes. Please comm
6062
# Fetch PR information.
6163
#
6264
echo "- Fetching PR #$PR_NUMBER details"
65+
exit 1
6366
# Check if PR exists and get details
6467
PR_DATA=$(gh pr view "$PR_NUMBER" --json headRepository,headRepositoryOwner,headRefName,title,number,state,author 2>/dev/null || echo "")
6568
if [ -z "$PR_DATA" ]; then

0 commit comments

Comments
 (0)