Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add enable auto merge workflow #872

Merged
merged 19 commits into from
Sep 19, 2024
Merged
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"
Loading