Skip to content

Incorrect labeled event fired when label is Deleted from PR #34317

Open
@Sumit189

Description

@Sumit189

Description

When a label is removed from a Pull Request (PR) in Gitea, the system triggers the labeled event, which is incorrect. The expected behavior is that the unlabeled event should be fired when a label is removed from a PR.

Steps to Reproduce:

  1. Open a PR in Gitea and add a label to it.
  2. Remove a label from the PR.
  3. Observe that the labeled event is triggered instead of the expected unlabeled event.

Expected Behavior:
The system should fire the unlabeled event when a label is removed from a PR.

Actual Behavior:
The system fires the labeled event when a label is removed from a PR.

Proposed Fix:
Ensure the correct unlabeled event is triggered when a label is removed from a PR.

Related PR:
👉 #34316

Gitea Version

v1.23.7

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Binary Image

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions