From 3c4a6fa0e6ebac1c283abbf15e5ed9a50d68f689 Mon Sep 17 00:00:00 2001 From: Preston Martin Date: Thu, 9 Nov 2023 12:09:49 -0600 Subject: [PATCH] Add isArchive functionality. --- .DS_Store | Bin 0 -> 6148 bytes gh-repo-stats | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..92d46b4d417b8fb4b401f363550e6582637fa112 GIT binary patch literal 6148 zcmeHKyG{c^3>-s*BBe=5xxc_4oTBgr`~V_}1X9EyF7(&&+l(JTqDxu|G>+`K^?G)7 zQ=DS}w))uK0ZRaLx+6Y4OwIS*Cw5gCM~gFdc*THc^f*ka&nKL_AZLSj?D+fT58Gk0 zf9m_a6K|^I1#dVUZ=63>St%d|q<|EV0#e|T0_@pt^F^Yf6p#W^;70-fJ~X;xS2!ld zr-LCz0OE}4Fh0jDL2RBNc7>"${OUTPUT_FILE_NAME}" 2>&1 + echo "Org_Name,Repo_Name,${IS_EMPTY_HEADER}Last_Push,Last_Update,isFork,isArchived,Repo_Size(mb),Record_Count,Collaborator_Count,Protected_Branch_Count,PR_Review_Count,Milestone_Count,Issue_Count,PR_Count,PR_Review_Comment_Count,Commit_Comment_Count,Issue_Comment_Count,Issue_Event_Count,Release_Count,Project_Count,Branch_Count,Tag_Count,Discussion_Count,Has_Wiki,Full_URL,Migration_Issue,Created" >>"${OUTPUT_FILE_NAME}" 2>&1 ####################### # Load the error code # @@ -648,6 +649,7 @@ GetRepos() { hasWikiEnabled ${IS_EMPTY_FLAG} isFork + isArchived issues(first: \$pageSize) { totalCount pageInfo { @@ -866,6 +868,7 @@ ParseRepoData() { UPDATED_AT=$(_jq '.updatedAt') HAS_WIKI=$(_jq '.hasWikiEnabled') IS_FORK=$(_jq '.isFork') + IS_ARCHIVED=$(_jq '.isArchived') URL=$(_jq '.url') MILESTONE_CT=$(_jq '.milestones.totalCount')