Skip to content
git-pull-request

GitHub Action

Lock pull-request

v1.1.0 Latest version

Lock pull-request

git-pull-request

Lock pull-request

Lock a pull-request when an event triggers the action

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Lock pull-request

uses: sudo-bot/[email protected]

Learn more about this action in sudo-bot/action-pull-request-lock

Choose a version

Lock a pull-request

This action locks a pull-request

Example usage

  - name: lock pull request
    uses: sudo-bot/[email protected]
    with:
        github-token: ${{ secrets.GITHUB_TOKEN }}
        number: ${{ github.event.pull_request.number }}
        lock-reason: resolved