Skip to content

Cannot set labels inherited from organization via API #32891

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
hwaastad opened this issue Dec 18, 2024 · 1 comment · Fixed by #32988
Closed

Cannot set labels inherited from organization via API #32891

hwaastad opened this issue Dec 18, 2024 · 1 comment · Fixed by #32988
Labels
topic/api Concerns mainly the API type/bug

Comments

@hwaastad
Copy link

Description

Hi,
I'm not sure if this is a bug or a feature request.
Having labels defined in Organization, labels are available to use on a repo issue/pr
However, using API, labels are not accessible

I would like to be able to add labels inherited from org to issues/pull requests using API

Gitea Version

1.22.6

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Running Gitea docker container.( in k8s)

Database

MySQL/MariaDB

@kemzeb kemzeb added the topic/api Concerns mainly the API label Dec 18, 2024
@Zettat123
Copy link
Contributor

I think this bug is related to #30943. We should also query label names from the org. I'll create a PR to fix it.

@lunny lunny closed this as completed in 44b4fb2 Dec 26, 2024
lunny pushed a commit that referenced this issue Dec 27, 2024
Backport #32988 by @Zettat123

Fix #32891

Co-authored-by: Zettat123 <zettat123@gmail.com>
project-mirrors-bot-tu bot pushed a commit to project-mirrors/forgejo-as-gitea-fork that referenced this issue Jan 23, 2025
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Mar 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/api Concerns mainly the API type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants