diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..92d46b4 Binary files /dev/null and b/.DS_Store differ diff --git a/gh-repo-stats b/gh-repo-stats index da49def..0bc18e7 100755 --- a/gh-repo-stats +++ b/gh-repo-stats @@ -17,6 +17,7 @@ # Last push # Last commit # isFork +# isArchived # Size(mb) # Total record count # Collaborator count @@ -436,7 +437,7 @@ GenerateFiles() { IS_EMPTY_HEADER=""; fi - echo "Org_Name,Repo_Name,${IS_EMPTY_HEADER}Last_Push,Last_Update,isFork,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 + 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')