"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
- 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 }}
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 |
Name | Description |
---|---|
id | id field of the response (if exists) |
number | number field of the response (if exists) |