{"id":51477181,"url":"https://github.com/lee-lott-actions/merge-pull-request","last_synced_at":"2026-07-06T22:01:20.662Z","repository":{"id":356277913,"uuid":"1137850947","full_name":"lee-lott-actions/merge-pull-request","owner":"lee-lott-actions","description":"This repository contains a GitHub Action that automatically merges a pull request using the GitHub REST API. It supports merge, squash, and rebase strategies and enables fully automated, customizable PR merges as part of your CI/CD workflows.","archived":false,"fork":false,"pushed_at":"2026-06-09T18:30:56.000Z","size":42,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-09T20:14:03.891Z","etag":null,"topics":["devops","github-api"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/lee-lott-actions.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":"2026-01-19T23:25:49.000Z","updated_at":"2026-06-09T18:28:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lee-lott-actions/merge-pull-request","commit_stats":null,"previous_names":["lee-lott-actions/merge-pull-request"],"tags_count":6,"template":false,"template_full_name":"lee-lott-actions/template-github-action-repo","purl":"pkg:github/lee-lott-actions/merge-pull-request","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lee-lott-actions%2Fmerge-pull-request","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lee-lott-actions%2Fmerge-pull-request/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lee-lott-actions%2Fmerge-pull-request/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lee-lott-actions%2Fmerge-pull-request/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lee-lott-actions","download_url":"https://codeload.github.com/lee-lott-actions/merge-pull-request/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lee-lott-actions%2Fmerge-pull-request/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35206987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"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":["devops","github-api"],"created_at":"2026-07-06T22:01:19.921Z","updated_at":"2026-07-06T22:01:20.655Z","avatar_url":"https://github.com/lee-lott-actions.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Merge Pull Request GitHub Action\n\nThis GitHub Action merges a pull request using the GitHub REST API.  \nIt is designed to be simple, composable, and independent of the local git state.\n\n## Features\n\n- Merges a pull request in your repository using the REST API (no dependencies on local git or CLI).\n- Supports merge, squash, and rebase strategies.\n- Allows you to specify a custom commit title for the merge commit.\n- Fully supports GitHub Organizations and user-owned repositories.\n- Outputs the merge result and error message (if any) for use in subsequent workflow steps.\n- Designed for secure automation with the minimal required token permissions.\n\n## Inputs\n\n| Name                   | Description                                                                                    | Required | Default |\n|------------------------|------------------------------------------------------------------------------------------------|----------|---------|\n| `pr-number`            | The number of the pull request to merge                                                        | Yes      |         |\n| `repo-name`            | The name of the repository                                                                     | Yes      |         |\n| `org-name`             | The name of the GitHub organization                                                            | Yes      |         |\n| `merge-type`           | The type of merge to perform: `merge`, `squash`, or `rebase`                                  | Yes      |         |\n| `merge-title-message`  | The commit title to use for the merge commit                                                   | Yes      |         |\n| `token`                | GitHub token with access to pull requests                                                      | Yes      |         |\n\n## Outputs\n\n| Name            | Description                                           |\n|-----------------|------------------------------------------------------|\n| `result`        | Result of the merge attempt (`success` or `failure`) |\n| `error-message` | Error message if the merge failed                    |\n\n## Usage\n\nCreate a workflow file in your repository (e.g., `.github/workflows/merge-pr.yml`).  \n**Ensure you pass all required inputs and use a valid token with PR write access.**\n\n### Example Workflow\n\n```yaml\nname: Merge Pull Request\non:\n  workflow_dispatch:\n\njobs:\n  merge-pull-request:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout repository\n        uses: actions/checkout@v6\n\n      - name: Merge Pull Request via API\n        id: merge-pr\n        uses: lee-lott-actions/merge-pull-request@v1\n        with:\n          pr-number: '101'\n          repo-name: ${{ github.event.repository.name }}\n          org-name: ${{ github.repository_owner }}\n          merge-type: 'merge' # or 'squash' or 'rebase'\n          merge-title-message: 'chore: auto-merge PR #101'\n          token: ${{ secrets.GITHUB_TOKEN }}\n\n      - name: Output Merge Result\n        run: |\n          echo \"Merge Result: ${{ steps.merge-pr.outputs.result }}\"\n          echo \"Error Message: ${{ steps.merge-pr.outputs['error-message'] }}\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flee-lott-actions%2Fmerge-pull-request","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flee-lott-actions%2Fmerge-pull-request","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flee-lott-actions%2Fmerge-pull-request/lists"}