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
27 changes: 27 additions & 0 deletions .github/workflows/auto_merged_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Auto_PR_Mered
on:
pull_request:

permissions:
contents: write

jobs:
auto-merge-eclipse:
runs-on: ubuntu-latest
if: >
github.event.pull_request.user.login == 'cx-bot-ghinternal' &&
contains(github.event.pull_request.title, 'Eclipse Plugin Release')
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Enable auto-merge for eligible PRs
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.ECLIPSE_SITE_TOKEN }}
run: gh pr merge --auto --squash "$PR_URL"

- name: Auto approve PRs
uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363
with:
github-token: ${{ secrets.ECLIPSE_SITE_TOKEN }}