Skip to content

Commit

Permalink
remove echos
Browse files Browse the repository at this point in the history
  • Loading branch information
amenocal committed Mar 29, 2024
1 parent a2458f9 commit 9516223
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions gh-repo-stats
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,6 @@ ParseRepoData() {
REPO_DATA=$1
# Convert the format to JSON
_jq() {
echo "decoding REPO_DATA in ParseRepoData"
echo -n "${REPO_DATA}" | base64 --decode | jq -r "${1}"
}

Expand Down Expand Up @@ -981,7 +980,6 @@ ParseRepoData() {
AnalyzeIssues() {
THIS_REPO=$1
_pr_issue_jq() {
echo "decoding THIS_REPO"
echo -n "${THIS_REPO}" | base64 --decode | jq -r "${1}"
}

Expand All @@ -996,10 +994,8 @@ AnalyzeIssues() {
# Get the Current End Cursor #
##############################
ISSUE_NEXT_PAGE=$(_pr_issue_jq '.issues.pageInfo.endCursor')
echo "${ISSUES}"
for ISSUE in $(echo -n "${ISSUES}" | jq -r '.[] | @base64'); do
_issue_jq() {
echo "Decoding ISSUE: ${ISSUE}"
echo -n "${ISSUE}" | base64 --decode | jq -r "${1}"
}

Expand Down Expand Up @@ -1097,7 +1093,6 @@ GetNextIssues() {
AnalyzePullRequests() {
PR_REPO=$1
_pr_repo_jq() {
echo "decoding PR_REPO"
echo -n "${PR_REPO}" | base64 --decode | jq -r "${1}"
}

Expand All @@ -1116,7 +1111,6 @@ 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}"
}

Expand Down Expand Up @@ -1254,7 +1248,6 @@ GetNextPullRequests() {
AnalyzeReviews() {
REVIEW_PR=$1
_review_jq() {
echo "decoding REVIEW_PR"
echo -n "${REVIEW_PR}" | base64 --decode | jq -r "${1}"
}

Expand All @@ -1274,7 +1267,6 @@ AnalyzeReviews() {
Debug "Analyzing Pull Request Reviews for: ${REPO_NAME} PR: ${PR_NUMBER}"
for REVIEW in $(echo -n "${REVIEWS}" | jq -r '.[] | @base64'); do
_pr_jq() {
echo "decoding REVIEW"
echo -n "${REVIEW}" | base64 --decode | jq -r "${1}"
}

Expand Down Expand Up @@ -1438,7 +1430,6 @@ GetTeams() {
TEAM_NEXT_PAGE=$(echo "${TEAM_DATA}" | jq -r '.data.organization.teams.pageInfo.endCursor')
for TEAM in $(echo -n "${TEAMS}" | jq -r '.[] | @base64'); do
_team_jq() {
echo "decoding TEAM"
echo -n "${TEAM}" | base64 --decode | jq -r "${1}"
}

Expand Down

0 comments on commit 9516223

Please sign in to comment.