Skip to content

Commit

Permalink
debug 2
Browse files Browse the repository at this point in the history
  • Loading branch information
amenocal committed Mar 29, 2024
1 parent 9cf9d99 commit ee3f0ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gh-repo-stats
Original file line number Diff line number Diff line change
Expand Up @@ -807,8 +807,8 @@ ParseRepos() {
echo "REPOS after base64 encoding: ${ENCODED_REPOS}"
for REPO_DATA in $(echo -n "${REPOS}" | jq -r '.[] | @base64'); do
_jq() {
echo "decoding repos"
echo -n "${REPO_DATA}" | base64 --decode | jq -r "${1}"
echo "decoding repos"
}

OWNER=$(_jq '.owner.login' | tr '[:upper:]' '[:lower:]')
Expand Down Expand Up @@ -997,8 +997,8 @@ AnalyzeIssues() {
echo "${ISSUES}"
for ISSUE in $(echo -n "${ISSUES}" | jq -r '.[] | @base64'); do
_issue_jq() {
echo "decoding ISSUES"
echo -n "${ISSUE}" | base64 --decode | jq -r "${1}"
echo "decoding ISSUES"
}

EVENT_CT=$(_issue_jq '.timeline.totalCount')
Expand Down Expand Up @@ -1112,9 +1112,9 @@ AnalyzePullRequests() {
##############################
PR_NEXT_PAGE=$(_pr_repo_jq '.pullRequests.pageInfo.endCursor')
for PR in $(echo -n "${PRS}" | jq -r '.[] | @base64'); do
_pr_jq() {
echo "decoding PRS"
echo -n "${PR}" | base64 --decode | jq -r "${1}"
_pr_jq() {
echo -n "${PR}" | base64 --decode | jq -r "${1}"
echo "decoding PRS"
}

PR_NUMBER=$(_pr_jq '.number')
Expand Down

0 comments on commit ee3f0ca

Please sign in to comment.