[ 03 ]Commands
copia-cli issue lock¶
copia-cli issue lock {<number> | <url>} [flags]
Lock the conversation of an issue by number or URL, so that only collaborators can comment.
An issue that is already locked is not changed; unlock it first to lock it with another reason. Locking needs write access to the repository's issues.
app.copia.io does not serve the lock endpoint and answers with HTTP 404, so the command reports that the host does not support it.
Options¶
-r,--reason <string>- Optional reason for locking conversation (off_topic, resolved, spam, too_heated)
Options inherited from parent commands¶
--host <string>- Target Copia host
-R,--repo <string>- Select repository (owner/repo)
--token <string>- Authentication token
Examples¶
# Lock an issue in the current repository
$ copia-cli issue lock 23
# Lock an issue as resolved
$ copia-cli issue lock 23 --reason resolved
# Lock an issue by URL
$ copia-cli issue lock https://app.copia.io/my-org/my-repo/issues/23