Skip to content

Commit

Permalink
Merge pull request #6 from IMS-Network/production
Browse files Browse the repository at this point in the history
Pull Prod
  • Loading branch information
github-actions[bot] authored Mar 15, 2024
2 parents 6a98b82 + aa2c1ed commit 3948b49
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/assign-reviewers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Auto-Approve and Merge PR on Comment

on:
issue_comment:
types: [created]

jobs:
approve-and-merge:
runs-on: ubuntu-latest
if: github.event.issue.pull_request && contains(github.event.comment.body, '✅')
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Approve and Merge PR
if: contains(fromJson('["TickerDev", "thefourcraft"]'), github.event.comment.user.login)
run: |
PR_NUMBER=$(echo "${{ github.event.issue.pull_request.url }}" | grep -oP '(?<=pulls/)\d+')
gh pr review "$PR_NUMBER" --approve
gh pr merge "$PR_NUMBER" --merge
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3948b49

Please sign in to comment.