https://github.com/4cecoder/github-pr-metrics
A Golang tool to fetch and analyze pull request metrics for specified repositories using GitHub's GraphQL API
https://github.com/4cecoder/github-pr-metrics
Last synced: about 1 year ago
JSON representation
A Golang tool to fetch and analyze pull request metrics for specified repositories using GitHub's GraphQL API
- Host: GitHub
- URL: https://github.com/4cecoder/github-pr-metrics
- Owner: 4cecoder
- License: apache-2.0
- Created: 2023-06-12T00:37:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-30T19:40:04.000Z (about 2 years ago)
- Last Synced: 2025-01-05T16:29:21.913Z (about 1 year ago)
- Language: Go
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub PR Metrics
A Golang tool to fetch and analyze pull request metrics for specified repositories using GitHub's GraphQL API.
## Technical Overview
This project is a single Golang file that interacts with the GitHub GraphQL API to fetch data for pull request metrics. It retrieves information for a list of specified repositories and shows the following data:
1. For each contributor (provided by GitHub username), the date of their first, second, up to the 10th pull request.
2. For the pull requests mentioned above, the time taken to approve and merge them.
### Usage
Replace the `repos` array with the desired repositories in the format "owner/repo" and provide your GitHub API token in the `token` variable. The code will fetch the first 10 pull requests for each repository and print the author's username, the created date, and the merged date (if available) for each pull request.
### Dependencies
- Go 1.16 or higher
- GitHub API token with appropriate permissions