lowlighter / metrics

📊 An infographics generator with 30+ plugins and 300+ options to display stats about your GitHub account and render them as SVG, Markdown, PDF or JSON!
https://metrics.lecoq.io
MIT License
13.67k stars 1.7k forks source link

Inaccurate results regarding certain metrics (notably, commit count) #1629

Open ooojustin opened 3 months ago

ooojustin commented 3 months ago

I'm using this tool for the first time and getting some inaccurate results. I couldn't find a good answer elsewhere, so I decided to ask here.

The workflow file I am using is as follows:

Workflow File

```yaml name: Metrics on: # Schedule daily updates schedule: [{cron: "0 0 * * *"}] # (optional) Run workflow manually workflow_dispatch: # (optional) Run workflow when pushing on master/main push: {branches: ["master", "main"]} jobs: github-metrics: runs-on: ubuntu-latest environment: name: production permissions: contents: write steps: - uses: lowlighter/metrics@latest with: token: ${{ secrets.METRICS_TOKEN }} user: ooojustin template: classic base: header, activity, community, repositories, metadata config_timezone: America/New_York ```

Somehow, I end up with the following result:

bOXoSJSFJ2.png

There are 2 metrics that stand out as extremely off: 1.) Commit count (not sure why) 2.) Pull requests opened/reviewed (likely because I'm no longer part of the org that work was done at)

So I understand the PRs, but I am a bit confused where the commit count number is coming from. I should note my token has the following scopes: gist, read:org, read:project, read:user, repo, user:email Any info would be appreciated.

Originally posted by @ooojustin in https://github.com/lowlighter/metrics/discussions/1628