{"id":27976528,"url":"https://github.com/doist/auto-request-reviews-action","last_synced_at":"2025-10-05T01:40:47.954Z","repository":{"id":287632106,"uuid":"965327271","full_name":"Doist/auto-request-reviews-action","owner":"Doist","description":"GitHub Action that automatically requests pull request reviews","archived":false,"fork":false,"pushed_at":"2025-06-05T21:34:06.000Z","size":556,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-05T22:28:42.906Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/Doist.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-12T23:02:54.000Z","updated_at":"2025-06-05T21:29:56.000Z","dependencies_parsed_at":"2025-04-13T00:21:08.589Z","dependency_job_id":"99cfc237-a43e-4028-aa44-90645fc57cab","html_url":"https://github.com/Doist/auto-request-reviews-action","commit_stats":null,"previous_names":["doist/auto-request-reviews-action"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Doist/auto-request-reviews-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Fauto-request-reviews-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Fauto-request-reviews-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Fauto-request-reviews-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Fauto-request-reviews-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Doist","download_url":"https://codeload.github.com/Doist/auto-request-reviews-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Fauto-request-reviews-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278399607,"owners_count":25980329,"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-10-04T02:00:05.491Z","response_time":63,"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":[],"created_at":"2025-05-08T01:27:41.223Z","updated_at":"2025-10-05T01:40:47.918Z","avatar_url":"https://github.com/Doist.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auto Request Reviews Action\n\nA GitHub Action that automatically requests reviews in pull requests from members of a specified team, up to a designated number of reviewers.\n\n## Usage\n\n```yml\nname: Automatically request reviews\n\non:\n  pull_request:\n    types: [opened, ready_for_review, reopened]\n\njobs:\n  request-reviews:\n    runs-on: ubuntu-latest\n    if: ${{ !github.event.pull_request.draft }}\n    steps:\n      - name: Automatically request reviews\n        uses: doist/auto-request-reviews-action@v1\n        with:\n          reviewers: 2\n          team: 'Doist/team'\n          token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## Inputs\n\n| Input | Description | Required |\n|-------|-------------|----------|\n| `reviewers` | Desired total number of reviewers in total | Yes |\n| `team` | Team to pick reviewers from (format: org/team) | Yes |\n| `token` | GitHub token with required permissions (see [Permissions](#permissions)) | Yes |\n\n## How it works\n\nThis action:\n\n1. Fetches the current pull request and counts how many reviewers are already requested\n2. Calculates how many more reviewers are needed to reach the specified number\n3. Gets all members of the specified team, excluding the PR author and existing reviewers\n4. Randomly selects the required number of reviewers from eligible team members\n5. If there aren't enough eligible team members, requests as many as possible and logs a warning\n\n## Permissions\n\nThis action requires that:\n\n1. **You provide a token with `repo` and `read:org` permissions.**  \\\n  The default `GITHUB_TOKEN` is insufficient because it lacks scopes for team member access.\n2. **The token belongs to account with at least `Triage` permisisons on the repository.**\n\nStore the Perosnal Access Token (PAT) as a repository secret and pass it in your workflow.\n\n## Development\n\n### Setup\n\n```bash\nnpm install\n```\n\n### Build\n\n```bash\nnpm run build\n```\n\nThis project uses [esbuild](https://esbuild.github.io/) for bundling, which creates a single file with all dependencies included.\n\n### Lint \u0026 Format\n\n```bash\n# Run linter\nnpm run lint\n\n# Format code\nnpm run format\n```\n\nThis project uses [Biome](https://biomejs.dev/) for both linting and formatting.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoist%2Fauto-request-reviews-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoist%2Fauto-request-reviews-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoist%2Fauto-request-reviews-action/lists"}