https://github.com/minhomega/auto-merge
GitHub Action to automatically merge pull requests after they have received the required approvals.
https://github.com/minhomega/auto-merge
actions approval auto-merge automation containers continuous-integration continuous-integration-and-deployment developer-tools devops docker github-action github-actions golang productivity pull-requests software-development workflow
Last synced: 4 months ago
JSON representation
GitHub Action to automatically merge pull requests after they have received the required approvals.
- Host: GitHub
- URL: https://github.com/minhomega/auto-merge
- Owner: MinhOmega
- License: mit
- Created: 2024-07-22T04:39:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-31T06:09:51.000Z (over 1 year ago)
- Last Synced: 2025-03-19T23:19:28.314Z (9 months ago)
- Topics: actions, approval, auto-merge, automation, containers, continuous-integration, continuous-integration-and-deployment, developer-tools, devops, docker, github-action, github-actions, golang, productivity, pull-requests, software-development, workflow
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Auto Merge PRs
A GitHub Action to automatically merge pull requests after they have received the required approvals.
## Usage
To use this action, create a workflow YAML file in your .github/workflows directory in your GitHub repository. Here is an example:
```yaml
name: Auto-Merge-PRs
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
auto-merge:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run Auto-Merge PRs
uses: MinhOmega/auto-merge@v1.0.4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
```
## Inputs
| Input | Description | Required | Default |
|------------------|----------------------------------------------------|----------|---------|
| `sleep_duration` | Duration to sleep between checks (in seconds) | false | `5` |
| `timeout_minutes`| Timeout for the merge process (in minutes) | false | `1440` |
| `base_branch` | Base branch to check against | false | `master`|
| `github_token` | GitHub token for authentication | true | N/A |
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.