A composite action for locking github issues.
This requires issues: write permissions in order to work correctly.
| Name | Description | Default |
|---|---|---|
github-token |
The default token to use for this Git operation. If unspecified, this will default to github.token. |
"${{ github.token }}" |
issue-number |
The issue number to comment on | "0" |
lock-reason |
The reason the issue is being locked. Must be one of: "off-topic", "too heated", "resolved", "spam" | "resolved" |
owner |
The repository owner. If unspecified, this will default to the owner of the current repository. | "" |
repo |
The name of the repository. If unspecified, this will default to the current repository. | "" |
retries |
The number of times to attempt to retry if this fails. | "0" |
retry-exempt-status-codes |
A list of error-codes that are exempt from being retried. | "400,401,403,404,422" |
issues/lock does not have any outputs at this time
Here is a very basic example of how to use the issues/lock composite action
in a project (placeholders are used in place of real inputs):
run:
example-job:
# ...
steps:
# ...
- name: Lock issue
uses: bitwizeshift/actions-github/issues/lock@v1
with:
# Optional inputs
github-token: GITHUB_TOKEN
issue-number: ISSUE_NUMBER
lock-reason: LOCK_REASON
owner: OWNER
repo: REPO
retries: RETRIES
retry-exempt-status-codes: RETRY_EXEMPT_STATUS_CODES