Skip to content

Commit

Permalink
Add isArchive functionality.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmartindev committed Nov 9, 2023
1 parent 324fbbd commit 3c4a6fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
5 changes: 4 additions & 1 deletion gh-repo-stats
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# Last push
# Last commit
# isFork
# isArchived
# Size(mb)
# Total record count
# Collaborator count
Expand Down Expand Up @@ -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 #
Expand Down Expand Up @@ -648,6 +649,7 @@ GetRepos() {
hasWikiEnabled
${IS_EMPTY_FLAG}
isFork
isArchived
issues(first: \$pageSize) {
totalCount
pageInfo {
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 3c4a6fa

Please sign in to comment.