Skip to content

Commit 1479a96

Browse files
mhliddamarziali
authored andcommitted
Update Mirroring Script to Include Verification of gh auth status (#9843)
* init * cleanup
1 parent d8907af commit 1479a96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tooling/mirror-community-pull-request.sh

Lines changed: 2 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 login\`."; 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

0 commit comments

Comments
 (0)