github.com/sealerio/sealer@v0.11.1-0.20240507115618-f4f89c5853ae/.github/workflows/auto-approve.yml (about)

     1  name: Auto approve and merge
     2  on:
     3    issue_comment:
     4      types:
     5        - created
     6  jobs:
     7    approve:
     8      name: auto approve using /LGTM
     9      if: ${{ github.event.comment.body == '/LGTM' }}
    10      runs-on: ubuntu-latest
    11      permissions:
    12        issues: write
    13      steps:
    14        - name: Approve Pull Request
    15          uses: juliangruber/approve-pull-request-action@v1
    16          with:
    17            github-token: ${{ secrets.GITHUB_TOKEN }}
    18            number: 1
    19    merge:
    20      name: auto merge using /merge
    21      if: ${{ github.event.comment.body == '/merge' }}
    22      runs-on: ubuntu-latest
    23      permissions:
    24        issues: write
    25      steps:
    26        - name: auto merge
    27          uses: juliangruber/approve-pull-request-action@v1
    28          with:
    29            github-token: ${{ secrets.GITHUB_TOKEN }}
    30            number: 1