Skip to content

Commit

Permalink
Add enable auto merge workflow (#872)
Browse files Browse the repository at this point in the history
* Add enable auto merge workflow

* Add enable auto merge workflow

* Change token

* Change token

* Set username

* Set mail

* Set env

* Set env

* Set env

* Set env

* Revert to github token

* Revert to github token

* Revert to github token

* Change permissions

* Revert to github token

* Change permissions

* Fix indentation

* Change to pull request target

* Remove permissions
  • Loading branch information
MarekMichali authored Sep 19, 2024
1 parent 1feaa87 commit 8685ad8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/auto-merge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Enable auto merge
on:
pull_request_target:
branches: [main, sm-integration]
types:
- opened
- reopened
- ready_for_review
- synchronize

jobs:
enable-auto-merge:
runs-on: ubuntu-latest
steps:
- name: Enable auto-merge for PRs
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.BOT_TOKEN}}
GIT_NAME: kyma-gopher-bot
run: gh pr merge -A ${{ env.GIT_NAME }} --auto --squash "$PR_URL"

0 comments on commit 8685ad8

Please sign in to comment.