Skip to content

Commit 7da82bf

Browse files
committed
fix: update usage notes and output
1 parent 628a7fb commit 7da82bf

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

gh-cli/get-migration-status.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ usage() {
1313
echo ""
1414
echo "Notes:"
1515
echo " - Migration ID is the GraphQL node ID (not the REST API migration ID)"
16-
echo " - Requires using a classic Personal Access Token (ghp_*) with appropriate scopes"
16+
echo " - Requires using a classic Personal Access Token (ghp_*) with appropriate scopes (set a class token with \`export GH_TOKEN=ghp_your_token\`)"
1717
exit 1
1818
}
1919

@@ -55,7 +55,7 @@ if [ $? -ne 0 ]; then
5555
echo -e "${RED}❌ Failed to fetch migration information${NC}"
5656
echo "This could be due to:"
5757
echo " - Invalid migration ID"
58-
echo " - Insufficient permissions (set a class token with \`export GH_TOKEN=ghp_your_token\`)"
58+
echo " - Insufficient permissions - make sure to set a class token with \`export GH_TOKEN=ghp_your_token\`"
5959
exit 1
6060
fi
6161

@@ -101,6 +101,3 @@ esac
101101
if [ "$failure_reason" != "N/A" ] && [ "$failure_reason" != "null" ]; then
102102
echo -e "${BLUE}❌ Failure Reason:${NC} ${RED}$failure_reason${NC}"
103103
fi
104-
105-
echo ""
106-
echo "✅ Migration information retrieved successfully"

0 commit comments

Comments
 (0)