{"id":20364370,"url":"https://github.com/bandwidth/automerge-pr-action","last_synced_at":"2026-05-11T09:52:55.658Z","repository":{"id":80265962,"uuid":"554838209","full_name":"Bandwidth/automerge-pr-action","owner":"Bandwidth","description":"GitHub Action to automate merging pull requests as long as required checks have passed","archived":false,"fork":false,"pushed_at":"2026-04-01T15:07:34.000Z","size":52,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2026-04-18T01:27:40.471Z","etag":null,"topics":[],"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/Bandwidth.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":".github/CODEOWNERS","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":"2022-10-20T13:36:51.000Z","updated_at":"2026-04-01T15:08:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"1b054c8e-5fb3-407a-b30a-9cbfa4018b1b","html_url":"https://github.com/Bandwidth/automerge-pr-action","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Bandwidth/automerge-pr-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bandwidth%2Fautomerge-pr-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bandwidth%2Fautomerge-pr-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bandwidth%2Fautomerge-pr-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bandwidth%2Fautomerge-pr-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bandwidth","download_url":"https://codeload.github.com/Bandwidth/automerge-pr-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bandwidth%2Fautomerge-pr-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32889971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"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":"2024-11-15T00:11:26.528Z","updated_at":"2026-05-11T09:52:55.639Z","avatar_url":"https://github.com/Bandwidth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# automerge-pr-action\n\nThis action polls for required checks within a branch, waits for successful completion, and automatically merges a pull request.\n\nIt grabs required check names from your branch protection rules via query of GitHub's API, polls until they are complete, and merges if they are successful.\n\nIf there are no required checks - as long as there are no merge conflicts, the PR can be merged successfully.\n\n### Inputs\n\n| Name       | Description                                                                       | Required | Default     |\n|:-----------|:----------------------------------------------------------------------------------|:--------:|:-----------:|\n| repoOwner  | The owner of the repository with the PR you wish to automatically merge           | false    | `bandwidth` |\n| repoName   | The name of the repo with the PR in question                                      | true     | N/A         |\n| prNumber   | The PR number to automatically merge                                              | true     | N/A         |\n| token      | GH user token with permission to merge PRs and read branch and checks information | true     | N/A         |\n| maxRetries | The amount of times to retry requests for checks status (string)                  | false    | '10'        |\n| retryDelay | Amount of time (in seconds) to wait between retries (string)                      | false    | '60'        |\n\n### Example Usage\n\n```yml\njobs:\n  merge:\n    if: ${{ github.event.action == 'Merge' }}\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n\n      - name: Set PR number as env variable\n        run: |\n          echo \"PR_NUMBER=$(hub pr list -h ${{ github.event.client_payload.branchName }} -f %I)\" \u003e\u003e $GITHUB_ENV\n\n      - uses: bandwidth/automerge-pr-action@v1.0.0\n        with:\n          repoOwner: my-org-that-isnt-bandwidth\n          repoName: my-cool-repo\n          prNumber: ${{ env.PR_NUMBER }}\n          token: ${{ secrets.MY_BOT_GH_USER_TOKEN }}\n          maxRetries: '5'\n          retryDelay: '30'\n\n      - uses: actions/github-script@v6\n        if: failure()\n        with:\n          script: |\n            github.rest.issues.createComment({\n              issue_number: ${{ env.PR_NUMBER }},\n              owner: context.repo.owner,\n              repo: context.repo.repo,\n              body: 'Failed to auto-merge this PR. Check workflow logs for more information'\n            })\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbandwidth%2Fautomerge-pr-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbandwidth%2Fautomerge-pr-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbandwidth%2Fautomerge-pr-action/lists"}