> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# issues_lock

> Lock an issue or pull request's conversation. Needs push access. If `lock_reason` is given it must be one of 'off-topic', 'too heated', 'resolved' or 'spam' — anything else is refused.

<div className="tool-route"><span className="tool-row-method" data-method="PUT">PUT</span><code>{"https://api.github.com/repos/{owner}/{repo}/issues/{issueNumber}/lock"}</code></div>

```python github_issues_lock.py theme={null}
from charter.packs import github

result = await github.issues_lock.ainvoke({"owner": ..., "repo": ..., "issueNumber": ...})
```

<Note>
  Requires `repo`, `read:user`.
</Note>

## Path parameters

<div className="reference-table">
  | Field                                                               | Type      | Description                                                                              |
  | ------------------------------------------------------------------- | --------- | ---------------------------------------------------------------------------------------- |
  | `owner` <span className="required" title="required">\*</span>       | `string`  | The account owner of the repository. The name is not case sensitive.                     |
  | `repo` <span className="required" title="required">\*</span>        | `string`  | The name of the repository without the `.git` extension. The name is not case sensitive. |
  | `issueNumber` <span className="required" title="required">\*</span> | `integer` | The number that identifies the issue.                                                    |
</div>

## Body

<div className="reference-table">
  | Field        | Type                                                          | Description                                                                                                          |
  | ------------ | ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
  | `lockReason` | [LockReason](/charter/charter/packs/github/issues/objects#lockreason) | The reason for locking the issue or pull request conversation. Locking fails if the reason is not one of these four. |
</div>
