maxkomarychev / oction-lock-issue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/oction-lock-issue@v0.7.1
  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

About

License:MIT License


Languages

Language:JavaScript 100.0%