A Golang tool to fetch and analyze pull request metrics for specified repositories using GitHub's GraphQL API.
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:
- For each contributor (provided by GitHub username), the date of their first, second, up to the 10th pull request.
- For the pull requests mentioned above, the time taken to approve and merge them.
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.
- Go 1.16 or higher
- GitHub API token with appropriate permissions