Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ooojustin opened this issue Jul 6, 2024 · 0 comments
Open

Comments

@ooojustin
Copy link

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

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 #1628

@ooojustin ooojustin changed the title I'm using this tool for the first time and getting some inaccurate results. Inaccurate results regarding certain metrics (notably, commit count) Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant