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.
1 parent 2ecc5b7 commit 550c080Copy full SHA for 550c080
FetchGHSponsors/action.yml
@@ -17,6 +17,11 @@ runs:
17
-H "Authorization: Bearer $GH_TOKEN" \
18
-H "Content-Type: application/json" \
19
-d "{\"query\":\"$QUERY\",\"variables\":{\"login\":\"$GH_LOGIN\"}}")
20
+
21
+ echo "=== Raw GraphQL response ==="
22
+ echo "$RESP"
23
+ echo "============================"
24
25
CENTS=$(echo "$RESP" | jq '.data.organization.monthlyEstimatedSponsorsIncomeInCents // 0')
26
COUNT=$(echo "$RESP" | jq '.data.organization.sponsorshipsAsMaintainer.totalCount // 0')
27
jq -n --argjson sum "$CENTS" --argjson count "$COUNT" \
0 commit comments