{"id":15567735,"url":"https://github.com/circa10a/github-pr-exporter","last_synced_at":"2026-02-12T01:34:16.534Z","repository":{"id":57629558,"uuid":"394506185","full_name":"circa10a/github-pr-exporter","owner":"circa10a","description":"A prometheus exporter for monitoring pull requests for specified users in the last X number of days.","archived":false,"fork":false,"pushed_at":"2024-10-23T16:55:33.000Z","size":103,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T05:14:04.579Z","etag":null,"topics":["github","github-api","go","golang","hacktoberfest","prometheus-exporter","prometheus-metrics","pull-requests"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/circa10a.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-10T02:51:56.000Z","updated_at":"2024-10-23T16:54:53.000Z","dependencies_parsed_at":"2024-06-20T11:51:55.153Z","dependency_job_id":"1a8cc130-7e18-4d33-b51a-f658ff7597b0","html_url":"https://github.com/circa10a/github-pr-exporter","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":0.09090909090909094,"last_synced_commit":"5ad01bc88d7395745da38254f7d77308639a72f0"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/circa10a/github-pr-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circa10a%2Fgithub-pr-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circa10a%2Fgithub-pr-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circa10a%2Fgithub-pr-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circa10a%2Fgithub-pr-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/circa10a","download_url":"https://codeload.github.com/circa10a/github-pr-exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circa10a%2Fgithub-pr-exporter/sbom","scorecard":{"id":283092,"data":{"date":"2025-08-11","repo":{"name":"github.com/circa10a/github-pr-exporter","commit":"40a64d2fa9277136a527759bdaedcf49fcea07ac"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/12 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/comment.yaml:1","Warn: no topLevel permission defined: .github/workflows/deploy.yaml:1","Warn: no topLevel permission defined: .github/workflows/pr.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/deploy.yaml:9"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/comment.yaml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/circa10a/github-pr-exporter/comment.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/circa10a/github-pr-exporter/deploy.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yaml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/circa10a/github-pr-exporter/deploy.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yaml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/circa10a/github-pr-exporter/deploy.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yaml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/circa10a/github-pr-exporter/deploy.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yaml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/circa10a/github-pr-exporter/deploy.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yaml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/circa10a/github-pr-exporter/deploy.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yaml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/circa10a/github-pr-exporter/deploy.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yaml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/circa10a/github-pr-exporter/deploy.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yaml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/circa10a/github-pr-exporter/deploy.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yaml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/circa10a/github-pr-exporter/pr.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yaml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/circa10a/github-pr-exporter/pr.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/circa10a/github-pr-exporter/pr.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/circa10a/github-pr-exporter/pr.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yaml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/circa10a/github-pr-exporter/pr.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yaml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/circa10a/github-pr-exporter/pr.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yaml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/circa10a/github-pr-exporter/pr.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yaml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/circa10a/github-pr-exporter/pr.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr.yaml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/circa10a/github-pr-exporter/pr.yaml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating golang:alpine to golang:alpine@sha256:c8c5f95d64aa79b6547f3b626eb84b16a7ce18a139e3e9ca19a8c078b85ba80d","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  11 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.4.0 not signed: https://api.github.com/repos/circa10a/github-pr-exporter/releases/181534399","Warn: release artifact v0.3.2 not signed: https://api.github.com/repos/circa10a/github-pr-exporter/releases/164082055","Warn: release artifact v0.3.1 not signed: https://api.github.com/repos/circa10a/github-pr-exporter/releases/94172865","Warn: release artifact v0.3.0 not signed: https://api.github.com/repos/circa10a/github-pr-exporter/releases/63420301","Warn: release artifact v0.2.1 not signed: https://api.github.com/repos/circa10a/github-pr-exporter/releases/60546833","Warn: release artifact v0.4.0 does not have provenance: https://api.github.com/repos/circa10a/github-pr-exporter/releases/181534399","Warn: release artifact v0.3.2 does not have provenance: https://api.github.com/repos/circa10a/github-pr-exporter/releases/164082055","Warn: release artifact v0.3.1 does not have provenance: https://api.github.com/repos/circa10a/github-pr-exporter/releases/94172865","Warn: release artifact v0.3.0 does not have provenance: https://api.github.com/repos/circa10a/github-pr-exporter/releases/63420301","Warn: release artifact v0.2.1 does not have provenance: https://api.github.com/repos/circa10a/github-pr-exporter/releases/60546833"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T16:27:06.948Z","repository_id":57629558,"created_at":"2025-08-17T16:27:06.948Z","updated_at":"2025-08-17T16:27:06.948Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271027687,"owners_count":24687082,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github","github-api","go","golang","hacktoberfest","prometheus-exporter","prometheus-metrics","pull-requests"],"created_at":"2024-10-02T17:12:44.697Z","updated_at":"2026-02-12T01:34:11.511Z","avatar_url":"https://github.com/circa10a.png","language":"Go","readme":"# \u003cimg src=\"https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png\" height=\"5%\" width=\"5%\" align=\"left\"/\u003e github-pr-exporter\n\nA prometheus exporter for monitoring pull requests for specified users in the last X number of days. Useful for tracking things like [hacktoberfest](https://hacktoberfest.digitalocean.com/) within your org.\n\n![Build Status](https://github.com/circa10a/github-pr-exporter/workflows/deploy/badge.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/circa10a/github-pr-exporter)](https://goreportcard.com/report/github.com/circa10a/github-pr-exporter)\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/circa10a/github-pr-exporter?style=plastic)\n![Docker Pulls](https://img.shields.io/docker/pulls/circa10a/github-pr-exporter?style=plastic)\n\n![alt text](https://i.imgur.com/Ur1N1S5.png)\n\n## Usage\n\nOnce started, application will be accessible at http://localhost:8080/metrics\n\n### CLI\n\n```log\n# Install with Go\ngo install github.com/circa10a/github-pr-exporter@latest\n\n# Execute\n❯ github-pr-exporter -h\nUsage of ./github-pr-exporter:\n      --config string       Path to config file (default \"./config.yaml\")\n      --days-ago int        How many days back to search for pull requests (default 90)\n      --ignore-user-repos   Ignore the user's own repos\n      --interval int        How many seconds to wait before refreshing pull request data. Defaults to 6 hours (default 21600)\n      --port int            What port to listen on (default 8080)\npflag: help requested\n```\n\n#### Configuration file\n\nThe CLI expects a YAML config file like so:\n\n```yaml\n---\nconfig:\n  users:\n    - circa10a\n    - sindresorhus\n```\n\nYou can also look in the [examples](/examples) directory\n\n### Docker\n\n```bash\ndocker run -p 8080:8080 -v $PWD/config.yaml:/config.yaml circa10a/github-pr-exporter\n```\n\n#### docker-compose\n\nFirst, update `examples/config.yaml`\n\nThen, to start a preconfigured prometheus + grafana + exporter stack:\n\n```bash\ndocker compose up\n```\n\nThen you can browse the preconfigured dashboard at http://localhost:3000/d/h_PRluMnk/pull-requests?orgId=1\n\n## Metrics\n\n| Name               | Type  | Cardinality  | Help                                                                                                |\n|--------------------|-------|--------------|-----------------------------------------------------------------------------------------------------|\n| pull_request       | gauge | 4            | A pull request from a user in config. Contains labels `user`, `created_at`, `link`, and `status`    |\n| pull_request_total | gauge | 0            | Total number of pull requests created by all users in the configured time window (previous 90 days) |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcirca10a%2Fgithub-pr-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcirca10a%2Fgithub-pr-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcirca10a%2Fgithub-pr-exporter/lists"}