Skip to content

Commit

Permalink
Merge pull request #1 from louwers/workflow
Browse files Browse the repository at this point in the history
Add workflow for fetching repo stats
  • Loading branch information
louwers authored Mar 12, 2024
2 parents ce4e827 + 66873d4 commit e2001ca
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/store-repostats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: store-repostats
concurrency: store-repostats

on:
schedule:
- cron: "0 23 * * *"
workflow_dispatch:

jobs:
store-repostats:
name: store-repostats
runs-on: ubuntu-latest
strategy:
matrix:
# The repositories to generate reports for
statsRepo: ['maplibre/maplibre-native', 'maplibre/maplibre-gl-native-distribution']
fail-fast: false
max-parallel: 1
steps:
- name: run-ghrs
uses: jgehrcke/github-repo-stats@RELEASE
with:
repository: ${{ matrix.statsRepo }}
ghtoken: ${{ secrets.ghrs_github_api_token }}
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# repo-stats
A repository to get statistics on other maplibre repos
# Repository Statistics

This repository gathers statistics using [github-repo-stats](https://github.com/jgehrcke/github-repo-stats). This is done to overcome a limitation of GitHub, which by default only shows data for the past 14 days.

Raw data is available on the [github-repo-stats](https://github.com/maplibre/repo-stats/tree/github-repo-stats) branch.

Create a PR that modifies `.github/workflows/store-repostats.yml` if you would like to fetch data for another repo.

0 comments on commit e2001ca

Please sign in to comment.