Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/enable-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Automatically enable auto-merge on PRs"

on:
pull_request_target:
types:
- opened
- ready_for_review
branches:
- main

jobs:
enable-automerge:
if: github.event.pull_request.draft == false
permissions:
pull-requests: write

runs-on: ubuntu-latest
steps:
- name: Enable auto-merge for the PR
run: gh pr merge "$PR_URL" --auto --squash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_URL: ${{ github.event.pull_request.html_url }}
Loading