8000 Inaccurate results regarding certain metrics (notably, commit count) · Issue #1629 · lowlighter/metrics · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Inaccurate results regarding certain metrics (notably, commit count) #1629
Open
@ooojustin

Description

@ooojustin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0