-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Incorrect aggregated status of commit statuses #25776
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
Comments
I don't think it's related to Actions, Actions create commit statuses, and it seems that the aggregated status is incorrect. |
What is the current "order" / priority for those states? @lunny you did the last implementation of this order - so maybe you got any thoughts on this? I'd assume the following : Order (always if one state is available first, then this should be the combined state) [Pending, Running, Error, Failure, Warning, Success] so if one is pending -> show pending As far as i understand this aligns with the github documentation (which is not very detailled ;))
This would change the evaluation - please see results compared:
|
gitea/modules/structs/commit_status.go Lines 26 to 40 in 491cc06
The truth table for the above function is as follows ,
|
But I noticed that there are only 4 statuses for github create-a-commit-status
The design of gitea is still somewhat different from github, so we can't fully align it with github.
|
My idea is to remove And |
Fix #25776. Close #25826. In the discussion of #25776, @wolfogre's suggestion was to remove the commit status of `running` and `warning` to keep it consistent with github. references: - https://docs.github.com/en/rest/commits/statuses?apiVersion=2022-11-28#about-commit-statuses ##⚠️ BREAKING⚠️ So the commit status of Gitea will be consistent with GitHub, only `pending`, `success`, `error` and `failure`, while `warning` and `running` are not supported anymore. --------- Co-authored-by: Jason Song <[email protected]>
Description
The commit as part of PR is marked with green check, when some workflows is still running.
Gitea Version
v1.19.4
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
Git Version
No response
Operating System
No response
How are you running Gitea?
official docker image
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: