Skip to content
New issue

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

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

Already on GitHub? # to your account

Fellowship. Evidence service. Add GitHub summary #3185

Open
pgolovkin opened this issue Feb 20, 2025 · 3 comments
Open

Fellowship. Evidence service. Add GitHub summary #3185

pgolovkin opened this issue Feb 20, 2025 · 3 comments
Assignees

Comments

@pgolovkin
Copy link
Collaborator

pgolovkin commented Feb 20, 2025

Add GitHub events summary by GitHub handle. Example https://api.github.com/users/{username}/events

API doc https://docs.github.com/en/rest/activity/events?apiVersion=2022-11-28#list-repository-events

@pgolovkin pgolovkin self-assigned this Feb 20, 2025
@pgolovkin pgolovkin moved this from Todo to Development in Nova Spektr development Feb 20, 2025
@pgolovkin
Copy link
Collaborator Author

pgolovkin commented Feb 24, 2025

GraphQL api looks better https://docs.github.com/en/graphql

Request example

{
  user(login: "USERNAME") {
    contributionsCollection(from: "2024-01-01T00:00:00Z", to: "2024-02-01T00:00:00Z") {
      commitContributionsByRepository {
        repository {
          name
        }
        contributions(first: 10) {
          nodes {
            occurredAt
            commitCount
          }
        }
      }
      pullRequestContributions(first: 10) {
        nodes {
          occurredAt
          pullRequest {
            title
            url
          }
        }
      }
    }
  }
}

@pgolovkin pgolovkin moved this from Development to In Review in Nova Spektr development Feb 25, 2025
@pgolovkin
Copy link
Collaborator Author

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Status: In Review
Development

No branches or pull requests

1 participant