{"id":15462763,"url":"https://github.com/gr2m/org-stats-action","last_synced_at":"2025-07-31T00:40:06.213Z","repository":{"id":38149003,"uuid":"267415537","full_name":"gr2m/org-stats-action","owner":"gr2m","description":"A GitHub Action to track statistics for a GitHub organization in a CSV file","archived":false,"fork":false,"pushed_at":"2024-05-22T18:40:05.000Z","size":526,"stargazers_count":7,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-21T05:35:17.113Z","etag":null,"topics":["github-actions"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gr2m.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"gr2m"}},"created_at":"2020-05-27T20:05:06.000Z","updated_at":"2024-06-05T16:01:01.000Z","dependencies_parsed_at":"2023-02-18T16:32:37.717Z","dependency_job_id":"6169a5e6-125b-43fb-beac-08f7d1ff80f8","html_url":"https://github.com/gr2m/org-stats-action","commit_stats":{"total_commits":41,"total_committers":4,"mean_commits":10.25,"dds":"0.46341463414634143","last_synced_commit":"477cd2b17eb56fc66da880b80418864d4d219844"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/gr2m/org-stats-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Forg-stats-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Forg-stats-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Forg-stats-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Forg-stats-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gr2m","download_url":"https://codeload.github.com/gr2m/org-stats-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Forg-stats-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267803761,"owners_count":24146520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions"],"created_at":"2024-10-02T00:04:26.616Z","updated_at":"2025-07-31T00:40:06.150Z","avatar_url":"https://github.com/gr2m.png","language":"JavaScript","funding_links":["https://github.com/sponsors/gr2m"],"categories":[],"sub_categories":[],"readme":"# org-stats-action\n\n\u003e A GitHub Action to fetch statistics for a GitHub organization\n\n## Usage\n\n### Fetch and log stats\n\n```yml\nname: Log @octokit organization statistics\non:\n  schedule:\n    # https://crontab.guru/every-day\n    - cron: \"0 0 * * *\"\n\njobs:\n  logOctokitStats:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: gr2m/org-stats-action@v1.x\n        id: stats\n        with:\n          org: octokit\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n      - run: |\n          cat \u003c\u003c EOF\n          result: ${{ steps.stats.outputs.data }}\n          EOF\n```\n\n### Fetch stats and update CSV file in repository\n\n```yml\nname: Update data/octokit-stats.csv\non:\n  schedule:\n    # https://crontab.guru/every-day\n    - cron: \"0 0 * * *\"\njobs:\n  updateOctokitStats:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      # fetch statistics for @octokit org\n      - uses: gr2m/org-stats-action@v1.x\n        id: stats\n        with:\n          org: octokit\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n      # append stats to data/octokit.csv\n      - uses: gr2m/write-csv-file-action@v1.x\n        with:\n          path: data/octokit.csv\n          columns: open issues,closed issues,open pull requests,closed pull requests,merged pull requests\n          \"open issues\": ${{ fromJson(steps.stats.outputs.data).openIssues }}\n          \"closed issues\": ${{ fromJson(steps.stats.outputs.data).closedIssues }}\n          \"open pull requests\": ${{ fromJson(steps.stats.outputs.data).openPullRequests }}\n          \"closed pull requests\": ${{ fromJson(steps.stats.outputs.data).closedPullRequests }}\n          \"merged pull requests\": ${{ fromJson(steps.stats.outputs.data).mergedPullRequests }}\n      # push updated file back to main branch\n      - run: git config --local user.email \"action@github.com\"\n      - run: git config --local user.name \"GitHub Action\"\n      - run: git add data\n      - run: git commit -m \"data/octokit.csv updated\"\n      - run: \"git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD\"\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## License\n\n[ISC](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgr2m%2Forg-stats-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgr2m%2Forg-stats-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgr2m%2Forg-stats-action/lists"}