Skip to content

Commit a2458f9

Browse files
committed
debug 3
1 parent ee3f0ca commit a2458f9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

gh-repo-stats

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -807,8 +807,8 @@ ParseRepos() {
807807
echo "REPOS after base64 encoding: ${ENCODED_REPOS}"
808808
for REPO_DATA in $(echo -n "${REPOS}" | jq -r '.[] | @base64'); do
809809
_jq() {
810+
echo "decoding REPO_DATA in Parse Repos"
810811
echo -n "${REPO_DATA}" | base64 --decode | jq -r "${1}"
811-
echo "decoding repos"
812812
}
813813

814814
OWNER=$(_jq '.owner.login' | tr '[:upper:]' '[:lower:]')
@@ -858,6 +858,7 @@ ParseRepoData() {
858858
REPO_DATA=$1
859859
# Convert the format to JSON
860860
_jq() {
861+
echo "decoding REPO_DATA in ParseRepoData"
861862
echo -n "${REPO_DATA}" | base64 --decode | jq -r "${1}"
862863
}
863864

@@ -980,6 +981,7 @@ ParseRepoData() {
980981
AnalyzeIssues() {
981982
THIS_REPO=$1
982983
_pr_issue_jq() {
984+
echo "decoding THIS_REPO"
983985
echo -n "${THIS_REPO}" | base64 --decode | jq -r "${1}"
984986
}
985987

@@ -997,8 +999,8 @@ AnalyzeIssues() {
997999
echo "${ISSUES}"
9981000
for ISSUE in $(echo -n "${ISSUES}" | jq -r '.[] | @base64'); do
9991001
_issue_jq() {
1002+
echo "Decoding ISSUE: ${ISSUE}"
10001003
echo -n "${ISSUE}" | base64 --decode | jq -r "${1}"
1001-
echo "decoding ISSUES"
10021004
}
10031005

10041006
EVENT_CT=$(_issue_jq '.timeline.totalCount')
@@ -1095,6 +1097,7 @@ GetNextIssues() {
10951097
AnalyzePullRequests() {
10961098
PR_REPO=$1
10971099
_pr_repo_jq() {
1100+
echo "decoding PR_REPO"
10981101
echo -n "${PR_REPO}" | base64 --decode | jq -r "${1}"
10991102
}
11001103

@@ -1113,8 +1116,8 @@ AnalyzePullRequests() {
11131116
PR_NEXT_PAGE=$(_pr_repo_jq '.pullRequests.pageInfo.endCursor')
11141117
for PR in $(echo -n "${PRS}" | jq -r '.[] | @base64'); do
11151118
_pr_jq() {
1119+
echo "Decoding PRS"
11161120
echo -n "${PR}" | base64 --decode | jq -r "${1}"
1117-
echo "decoding PRS"
11181121
}
11191122

11201123
PR_NUMBER=$(_pr_jq '.number')
@@ -1251,6 +1254,7 @@ GetNextPullRequests() {
12511254
AnalyzeReviews() {
12521255
REVIEW_PR=$1
12531256
_review_jq() {
1257+
echo "decoding REVIEW_PR"
12541258
echo -n "${REVIEW_PR}" | base64 --decode | jq -r "${1}"
12551259
}
12561260

@@ -1270,6 +1274,7 @@ AnalyzeReviews() {
12701274
Debug "Analyzing Pull Request Reviews for: ${REPO_NAME} PR: ${PR_NUMBER}"
12711275
for REVIEW in $(echo -n "${REVIEWS}" | jq -r '.[] | @base64'); do
12721276
_pr_jq() {
1277+
echo "decoding REVIEW"
12731278
echo -n "${REVIEW}" | base64 --decode | jq -r "${1}"
12741279
}
12751280

@@ -1433,6 +1438,7 @@ GetTeams() {
14331438
TEAM_NEXT_PAGE=$(echo "${TEAM_DATA}" | jq -r '.data.organization.teams.pageInfo.endCursor')
14341439
for TEAM in $(echo -n "${TEAMS}" | jq -r '.[] | @base64'); do
14351440
_team_jq() {
1441+
echo "decoding TEAM"
14361442
echo -n "${TEAM}" | base64 --decode | jq -r "${1}"
14371443
}
14381444

0 commit comments

Comments
 (0)