Skip to content
lock

GitHub Action

oction-lock-issue

v0.7.1 Latest version

oction-lock-issue

lock

oction-lock-issue

This action implements `PUT` request to `/repos/{owner}/{repo}/issues/{issue_number}/lock`

Installation

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

              

- name: oction-lock-issue

uses: maxkomarychev/[email protected]

Learn more about this action in maxkomarychev/oction-lock-issue

Choose a version

Lock an issue

"Oction" is a GitHub Action that implements a single call with @octokit/request allowing easy interaction with GitHub REST APIs from your workflow.

Original documentation: https://developer.github.com/v3/issues/#lock-an-issue

This action implements PUT request to /repos/{owner}/{repo}/issues/{issue_number}/lock

Quick start

- uses: maxkomarychev/[email protected]
  id: my_step_id
  with:
    token: <token value>
    issue_number: <issue_number value>
- name: Print outputs
  run: |
    echo ${{ steps.my_step_id.outputs.id }}
    echo ${{ steps.my_step_id.outputs.number }}

Inputs

Name Is required Description
token true Token to authenticate the request
owner false owner parameter
repo false repo parameter
issue_number true issue_number parameter
lock_reason The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: * off-topic * too heated * resolved * spam

Outputs

Name Description
id id field of the response (if exists)
number number field of the response (if exists)

Friendly octions