{"id":22665177,"url":"https://github.com/br0ken-/gh-pr-approver","last_synced_at":"2025-09-01T20:40:53.294Z","repository":{"id":40715607,"uuid":"272701804","full_name":"BR0kEN-/gh-pr-approver","owner":"BR0kEN-","description":"Automated GitHub Pull Request approver.","archived":false,"fork":false,"pushed_at":"2025-02-15T04:58:13.000Z","size":7431,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"v2","last_synced_at":"2025-03-26T03:41:33.594Z","etag":null,"topics":["aws","aws-lambda","bot","github","github-api","github-bot","pull-request-approver","review"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BR0kEN-.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-16T12:27:09.000Z","updated_at":"2025-02-15T04:58:16.000Z","dependencies_parsed_at":"2023-01-30T21:15:17.617Z","dependency_job_id":null,"html_url":"https://github.com/BR0kEN-/gh-pr-approver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BR0kEN-%2Fgh-pr-approver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BR0kEN-%2Fgh-pr-approver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BR0kEN-%2Fgh-pr-approver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BR0kEN-%2Fgh-pr-approver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BR0kEN-","download_url":"https://codeload.github.com/BR0kEN-/gh-pr-approver/tar.gz/refs/heads/v2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248540362,"owners_count":21121346,"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","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":["aws","aws-lambda","bot","github","github-api","github-bot","pull-request-approver","review"],"created_at":"2024-12-09T13:19:56.388Z","updated_at":"2025-04-12T08:32:57.636Z","avatar_url":"https://github.com/BR0kEN-.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Automated GitHub Pull Request approver\n\nThe worker that automatically approves pull requests on GitHub from the authors you trust.\n\n## Usage\n\n```\n$ npm run daemon -- -h\nusage: gh-pr-approver [-h] [-i INTERVAL] [-a USERNAME] org query\n\nAutomated GitHub Pull Request approver.\n\npositional arguments:\n  org                   The name of a GitHub organization. Can be superseded by the\n                        \"GITHUB_ORGANIZATION\" environment variable.\n  query                 The query to find repositories (e.g. \"fluent\" or \"fluent OR typescript\").\n                        Can be superseded by the \"GITHUB_REPOS_QUERY\" environment variable.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -i INTERVAL, --interval INTERVAL\n                        The interval (in minutes) to check for requested reviews (defaults to 10,\n                        minimum - 3, maximum - 120). Can be superseded by the \"CHECK_INTERVAL\"\n                        environment variable.\n  -a USERNAME, --accept-author USERNAME\n                        The GitHub usernames whose PRs should be automatically approved. Can be\n                        superseded by the \"GITHUB_ACCEPTED_AUTHORS\" environment variable.\n```\n\n### Example\n\nThis configuration starts a worker that checks for open PRs once in 10 minutes in the repositories of `microsoft` organization, containing the `fluent` or `typescript` in their names (see https://github.com/orgs/microsoft/repositories?q=fluent+OR+typescript+in%3Aname). You can also use logical operators like `OR` and `AND` to widen the results (e.g. `fluent OR typescript OR gsl`, https://github.com/orgs/microsoft/repositories?q=fluent+OR+typescript+OR+gsl+in%3Aname). See more at https://help.github.com/en/github/searching-for-information-on-github/searching-for-repositories.\n\nThe PR can be automatically approved when the following rules met:\n- the PR is not a draft;\n- the PR was created by users specified by the `--accept-author`;\n- the PR requests a review from a user the access token belongs to.\n\n```shell\nexport GITHUB_ACCESS_TOKEN=your_token\nnpm run daemon -- microsoft \"fluent OR typescript\" --accept-author BR0kEN- --accept-author jondoe\n```\n\n#### Notes\n\n- The `GITHUB_ACCESS_TOKEN` environment variable is mandatory and must contain a valid GitHub access token that can be used for accessing a range of repositories.\n- The worker will approve a PR again in case the previous review has been dismissed and the new one requested.\n- Add as many `--accept-author` as you need.\n- It is possible to replace `npm run daemon` arguments with the environment variables. Example:\n  ```shell\n  export GITHUB_ACCESS_TOKEN=your_token\n  export GITHUB_ORGANIZATION=microsoft\n  export GITHUB_REPOS_QUERY=\"fluent OR typescript\"\n  # The `+` character is a separator\n  # allowing to provide multiple users.\n  export GITHUB_ACCEPTED_AUTHORS=\"BR0kEN-+jondoe\"\n  export CHECK_INTERVAL=5\n  npm run daemon\n  ```\n\n## Deploy\n\n- [AWS](deploy/aws)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbr0ken-%2Fgh-pr-approver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbr0ken-%2Fgh-pr-approver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbr0ken-%2Fgh-pr-approver/lists"}