Skip to content

Commit

Permalink
add auto merge support
Browse files Browse the repository at this point in the history
  • Loading branch information
nolte committed Jan 26, 2022
1 parent 02e7276 commit 76d724f
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/automerge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
pull_request:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
pull_request_review:
types:
- submitted
check_suite:
types:
- completed
status: {}

jobs:
automerge:
uses: nolte/gh-plumbing/.github/workflows/reuseable-automerge.yaml@develop
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/reuseable-automerge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: automerge

on:
workflow_call:
secrets:
token:
required: true

jobs:
automerge:
runs-on: ubuntu-latest
steps:
- name: automerge
uses: "pascalgn/automerge-action@v0.14.3"
env:
GITHUB_TOKEN: ${{ secrets.token }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Used for deduplicate the CI/CD Boilerplate-Code. Like [Workflow](https://docs.gi
| ```reuseable-pre-commit.yaml``` | call [pre-commit](https://pre-commit.com/) for executing a set of Static Tests. |
| ```reuseable-release-drafter.yml``` | Will be use [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) for updating the current "Draft" Release with a Changelog. |
| ```reuseable-trivy.yaml``` | Scan the GitRepo by using [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action). |
| ```reuseable-automerge.yaml``` | Using [pascalgn/automerge-action](https://github.com/pascalgn/automerge-action) for better Merge Request handling. |
<!--td-workflows-end-->

## Probot Config
Expand Down

0 comments on commit 76d724f

Please sign in to comment.