Skip to content

Lock issue conversation via API #33677

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dimasrespect opened this issue Feb 21, 2025 · 0 comments · Fixed by #34165
Closed

Lock issue conversation via API #33677

dimasrespect opened this issue Feb 21, 2025 · 0 comments · Fixed by #34165
Labels
topic/api Concerns mainly the API topic/issues type/proposal The new feature has not been accepted yet but needs to be discussed first.
Milestone

Comments

@dimasrespect
Copy link

Feature Description

There are no API endpoint to lock issue conversation. We have this button (see attached screenshot) but I can not find any API endpoint to lock issues programmatically.

Screenshots

Image

@dimasrespect dimasrespect added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Feb 21, 2025
@kemzeb kemzeb added topic/api Concerns mainly the API topic/issues labels Feb 21, 2025
wxiaoguang added a commit that referenced this issue Apr 21, 2025
This pull request adds a GitHub-compatible API endpoint to lock and
unlock an issue.

The following routes exist now:
- `PUT /api/v1/repos/{owner}/{repo}/issues/{id}/lock` to lock an issue
- `DELETE /api/v1/repos/{owner}/{repo}/issues/{id}/lock` to unlock an issue

Fixes #33677
Fixes #20012

---------

Co-authored-by: wxiaoguang <[email protected]>
@lunny lunny added this to the 1.24.0 milestone Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/api Concerns mainly the API topic/issues type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants