Skip to content
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

Fix incorrect aggregated status of commit statuses #25826

Conversation

CaiCandong
Copy link
Member

I checked the commit history and found that in the last modification to modules/structs/commit_status.go, a status running was added, but it was not handled in time for the NoBetterThan function, which led to issue #25776. So I made a simple change to NoBetterThan.
This PR will close #25776

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 11, 2023
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 11, 2023
@wolfogre
Copy link
Member

wolfogre commented Jul 11, 2023

Maybe we could remove running and warning to keep consistent with GitHub.

image

See also #25776 (comment)

@CaiCandong
Copy link
Member Author

That is another solution or feature if remove running and warning to keep consistent with GitHub. That should be a new PR. and I'll start by converting this PR to draft status.

@CaiCandong CaiCandong marked this pull request as draft July 11, 2023 09:00
@CaiCandong CaiCandong marked this pull request as ready for review July 12, 2023 10:47
@lunny lunny closed this in #25839 Jul 21, 2023
lunny pushed a commit that referenced this pull request Jul 21, 2023
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 <i@wolfogre.com>
@CaiCandong CaiCandong deleted the fix-incorrect-aggregated-status-of-commit-statuses branch July 24, 2023 07:38
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Oct 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect aggregated status of commit statuses
4 participants