[Actions] Workflows not triggered for PR assign and review #12481

Closed
opened 2025-11-02 10:11:14 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @clinche on GitHub (Feb 14, 2024).

Description

I'm currently doing the setup of the CI/CD pipeline for our Gitea organization.
I'm writing two workflows that should be triggered by the following:

on:
  pull_request:
    types: [assigned, review_requested, labeled]

and

on:
  pull_request:
    types: [closed, unassigned, unlabeled, review_request_removed]

I didn't saw at the beginning that the review_requested* types are not supported by gitea, and this is okay.

However, the only events that currently trigger the workflow are labeled, unlabeled, and closed. From my understanding, assigned events should work but they trigger nothing.

What could be the causes? (and also, I probably should open another issue for this question but will review* types could be supported on workflows as they are handled by webhooks?)

I created a simple repo that can reproduce the issue here: the actions are launched for labeled and unlabeled but not for every other type trigger. EDIT: when the only label is removed, the called workflow is the one containing labeled, not unlabeled

Gitea Version

1.21.1

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?

I followed the docs on how to launch gitea using systemd, and the binary runs on bare-metal without any containerization

Database

PostgreSQL

Originally created by @clinche on GitHub (Feb 14, 2024). ### Description I'm currently doing the setup of the CI/CD pipeline for our Gitea organization. I'm writing two workflows that should be triggered by the following: ```yaml on: pull_request: types: [assigned, review_requested, labeled] ``` and ```yaml on: pull_request: types: [closed, unassigned, unlabeled, review_request_removed] ``` I didn't saw at the beginning that the `review_requested*` types [are not supported by gitea](https://docs.gitea.com/usage/actions/faq#what-workflow-trigger-events-does-gitea-support), and this is okay. However, the only events that currently trigger the workflow are `labeled`, `unlabeled`, and `closed`. From my understanding, assigned events should work but they trigger nothing. What could be the causes? (and also, I probably should open another issue for this question but will `review*` types could be supported on workflows as they are handled by webhooks?) I created a simple repo that can reproduce the issue [here](https://try.gitea.io/gfjdhgdf/pr_ci_tests/): the actions are launched for `labeled` and `unlabeled` but not for every other type trigger. EDIT: when the only label is removed, the called workflow is the one containing `labeled`, not `unlabeled` ### Gitea Version 1.21.1 ### 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? I followed the docs on how to launch gitea using systemd, and the binary runs on bare-metal without any containerization ### Database PostgreSQL
GiteaMirror added the topic/gitea-actionstype/bug labels 2025-11-02 10:11:14 -06:00
Author
Owner

@yp05327 commented on GitHub (Feb 15, 2024):

image
review requested was supported in #24481 which didn't add the support of detecting it in actions.
And for other hooks defined above should work. I will have a look of this issue.

@yp05327 commented on GitHub (Feb 15, 2024): ![image](https://github.com/go-gitea/gitea/assets/18380374/b42b33cd-cc7d-4032-9dc1-b00fa70ea798) review requested was supported in #24481 which didn't add the support of detecting it in actions. And for other hooks defined above should work. I will have a look of this issue.
Author
Owner

@yp05327 commented on GitHub (Feb 15, 2024):

Actions notifier didn't implement IssueChangeAssignee event.
image
Also PullRequestReviewRequest is not implemented.
There is the list of all no-implemented functions:

image

@yp05327 commented on GitHub (Feb 15, 2024): Actions notifier didn't implement `IssueChangeAssignee` event. ![image](https://github.com/go-gitea/gitea/assets/18380374/f6be3539-408f-4a94-b177-d695d75e1547) Also `PullRequestReviewRequest` is not implemented. There is the list of all no-implemented functions: ![image](https://github.com/go-gitea/gitea/assets/18380374/9d1a7ce4-b12b-4237-82c4-3d2c9df26340)
Author
Owner

@github-actions[bot] commented on GitHub (Feb 29, 2024):

Automatically locked because of our CONTRIBUTING guidelines

@github-actions[bot] commented on GitHub (Feb 29, 2024): Automatically locked because of our [CONTRIBUTING guidelines](https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md#issue-locking)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12481