Skip to content

PULL_REQUEST

PULL_REQUEST #55

Workflow file for this run

name: Merge & Locking
on:
issue_comment:
permissions:
actions: write
contents: write
pull-requests: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
squash_merge:
runs-on: ubuntu-latest
if: >-
github.event.issue.pull_request &&
startsWith(github.event.comment.body, '/merge') &&
github.event.comment.user.id == 2387514
steps:
- name: Squash & Merge
run: gh pr merge $PR -t "$SQUASH_TITLE" -b "" -s
working-directory: ${{ github.workspace }}
env:
PR: ${{ github.event.issue.pull_request.html_url }}
SQUASH_TITLE: "(#${{ github.event.issue.number }}) ${{ github.event.issue.title }}"
- name: Lock
run: gh pr lock $ISSUE -r "resolved"
working-directory: ${{ github.workspace }}
env:
ISSUE: "${{ github.event.repository.html_url }}/issues/${{ github.event.issue.number }}"