Webhook value requested_reviewers is not up to date #14888

Closed
opened 2025-11-02 11:25:11 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @kim2048 on GitHub (Aug 21, 2025).

Description

Hello,
when I create a PR via the web ui and add one (or more) reviewer I get 2 webhook actions:

opened
    pull_request -> requested_reviewers : []

review_requested
    pull_request -> requested_reviewers : []
    requested_reviewer : <correct user>

The pull_request -> requested_reviewers will only be correct after the next change to the pr.

For PRs with automatically added reviewers via the CODEOWNERS file I get those actions:

review_requested
    pull_request -> requested_reviewers : <correct users>
    requested_reviewer : <correct user>

opened
    pull_request -> requested_reviewers : <correct users>

Here the requested_reviewers field is set correct (no idea why I get the review_requested first, but that's fine).

Btw: Is anyone else using the webhook api? I found so many bugs there - I must be the only one ;)

Gitea Version

1.24.3

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?

No idea

Database

PostgreSQL

Originally created by @kim2048 on GitHub (Aug 21, 2025). ### Description Hello, when I create a PR via the web ui and add one (or more) reviewer I get 2 webhook actions: ``` opened pull_request -> requested_reviewers : [] review_requested pull_request -> requested_reviewers : [] requested_reviewer : <correct user> ``` The `pull_request -> requested_reviewers` will only be correct after the next change to the pr. For PRs with automatically added reviewers via the `CODEOWNERS` file I get those actions: ``` review_requested pull_request -> requested_reviewers : <correct users> requested_reviewer : <correct user> opened pull_request -> requested_reviewers : <correct users> ``` Here the `requested_reviewers` field is set correct (no idea why I get the `review_requested` first, but that's fine). Btw: Is anyone else using the webhook api? I found so many bugs there - I must be the only one ;) ### Gitea Version 1.24.3 ### 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? No idea ### Database PostgreSQL
GiteaMirror added the topic/webhookstype/bug labels 2025-11-02 11:25:11 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14888