PRODYNA / github-users

GitHub Action that creates a list of GitHub users with their SSO identity linked
MIT License
0 stars 0 forks source link

Extend List of GitHub Enterprise Users w/ Usage Stats #8

Closed mopore closed 6 months ago

mopore commented 6 months ago

Add the following values of the GitHub Enterprise user accounts

dkrizic commented 6 months ago
query {
  enterprise(slug:"prodyna") {
    slug
    name
    ownerInfo {
      samlIdentityProvider {
        externalIdentities(first:10) {
          pageInfo {
            hasNextPage
            startCursor
          }
          edges {
            node {
              user {
                login
                name
                organizations(first:99) {
                  nodes {
                    name
                  }
                }
                contributionsCollection {
                  contributionCalendar {
                    totalContributions
                  }
                }
              }
              samlIdentity {
                nameId
              }
            }
          }
        }
      }
    }
  }
}
dkrizic commented 6 months ago

First version only contains total Contributions, can be extended later.

mopore commented 6 months ago

I assume that total contributions not only includes commits. Sounds good enough then.

dkrizic commented 6 months ago

Yes, but obviously not only limited to the current enterprise or organisation. The current result is visible here:

https://github.com/PRODYNA/github-housekeeping/wiki/Enterprise-users

But currently it definitely helps us to find users doing nothing in GitHub.