Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mtfoley/yolo-merge
GitHub Action to Automatically Merge based on PR Title & Owner
https://github.com/mtfoley/yolo-merge
Last synced: 3 months ago
JSON representation
GitHub Action to Automatically Merge based on PR Title & Owner
- Host: GitHub
- URL: https://github.com/mtfoley/yolo-merge
- Owner: mtfoley
- License: mit
- Created: 2021-05-30T12:46:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-17T14:41:54.000Z (almost 3 years ago)
- Last Synced: 2024-10-11T04:08:49.653Z (3 months ago)
- Language: JavaScript
- Size: 1.04 MB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yolo-merge
GitHub Action to Automatically Merge based on PR Title & Owner
## Goals
This action should run on push, and automatically merge PRs to target branches under the following conditions:
- The author of the PR is the owner of the repo
- The PR title contains the phrase "YOLO!"
- The PR does not have any merge conflicts## Steps
- For processing PR title, see [article on script hardening](https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#good-practices-for-mitigating-script-injection-attacks)
- For other action variables, see [docs on variables](https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context)
- For conditioning running, see [if syntax](https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#example-expression-in-an-if-conditional)
- Might work in Node or Bash
- For auto-merge action, look at [Auto-Merge Pull Request](https://github.com/marketplace/actions/auto-merge-pull-request)