{"repo":"peter-evans/enable-pull-request-automerge","free":true,"listed":false,"github":"https://github.com/peter-evans/enable-pull-request-automerge","clone":"git clone https://github.com/peter-evans/enable-pull-request-automerge.git","description":"A GitHub action to enable auto-merge on a pull request","language":null,"stars":145,"topics":["github-action","pull-request","automerge","automation"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Enable Pull Request Auto-merge A GitHub action to enable auto-merge on a pull request. :warning: There are very specific conditions under which this action will work as expected. See Conditions for details. Usage :exclamation: Using this action is no longer necessary ----------------------------------------------------------- The same functionality exists in the GitHub CLI. See the documentation here. If you prefer to use this action: Action inputs Name Description Default --- --- --- token GITHUB TOKEN (permissions pull requests: write , contents: write ) or a repo scoped Personal Access Token (PAT). GITHUB TOKEN repository The target GitHub repository containing the pull request. github.repository (Current repository) pull-request-number ( required ) The number of the target pull request merge-method The merge method to use. merge , rebase or squash . merge Conditions The following conditions must be true for auto-merge to be enabled on a pull request. 1. The target repository must have Allow auto-merge enabled in settings. 2. The pull request base must have a branch protection rule with at least one requirement enabled. 3. The pull request must be in a state where requirements have not yet been satisfied. If the pull request is in a state where it can already be merged, the action will merge it immediately without enabling auto-merge. Dependabot example The following example will automerge dependabot pull requests. Note that if you use the default GITHUB TOKEN , as in the ","default_branch":null,"files":null,"tree":[],"storefront":"/r/peter-evans","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/peter-evans/enable-pull-request-automerge/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}