Skip to content
Merged
Show file tree
Hide file tree
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
32 changes: 32 additions & 0 deletions .github/workflows/auto-merge-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Auto-merge PR from ddrayko

on:
pull_request_target:
types: [opened, edited, synchronize, reopened]

permissions:
contents: write
pull-requests: write

jobs:
auto-merge:
if: github.event.pull_request.user.login == 'ddrayko'
runs-on: ubuntu-latest
steps:
- name: Check PR title format
id: check_title
env:
TITLE: ${{ github.event.pull_request.title }}
run: |
if echo "$TITLE" | grep -qE '^v[0-9]+\.[0-9]+\.[0-9]+$'; then
echo "match=true" >> "$GITHUB_OUTPUT"
else
echo "match=false" >> "$GITHUB_OUTPUT"
fi

- name: Auto-merge
if: steps.check_title.outputs.match == 'true'
env:
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
run: |
gh pr merge "${{ github.event.pull_request.html_url }}" --merge --auto
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,3 +561,4 @@ Both use SSH credentials configured as GitHub repository secrets (`SSH_HOST`, `S

## GitHub Stats
![Alt](https://repobeats.axiom.co/api/embed/2f957f930d36f4a2913f8aeb07712cedbd4b38c5.svg "Repobeats analytics image")

Loading