forgejo/modules/structs
caicandong 13359581df
refactor improve NoBetterThan (#26126)
- The `NoBetterThan` function can only handle comparisons between
"pending," "success," "error," and "failure." For any other comparison,
we directly return false. This prevents logic errors like the one in
#26121.
- The callers of the `NoBetterThan` function should also avoid making
incomparable calls.

---------

Co-authored-by: yp05327 <576951401@qq.com>
Co-authored-by: puni9869 <80308335+puni9869@users.noreply.github.com>
2023-07-26 08:52:07 +00:00
..
activity.go
activitypub.go
admin_user.go
attachment.go
commit_status.go refactor improve NoBetterThan (#26126) 2023-07-26 08:52:07 +00:00
commit_status_test.go refactor improve NoBetterThan (#26126) 2023-07-26 08:52:07 +00:00
cron.go
doc.go
fork.go
git_blob.go
git_hook.go
hook.go
issue.go Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
issue_comment.go
issue_label.go
issue_milestone.go
issue_reaction.go
issue_stopwatch.go
issue_test.go
issue_tracked_time.go
lfs_lock.go
mirror.go
miscellaneous.go
nodeinfo.go
notifications.go
org.go Allow Organisations to have a E-Mail (#25082) 2023-07-25 08:26:27 +00:00
org_member.go
org_team.go
package.go
pull.go
pull_review.go
release.go
repo.go Support copy protected branch from template repository (#25889) 2023-07-21 12:32:47 +08:00
repo_branch.go
repo_collaborator.go
repo_commit.go Add file status for API "Get a single commit from a repository" (#16205) (#25831) 2023-07-20 16:35:47 +08:00
repo_file.go Refactor "Content" for file uploading (#25851) 2023-07-18 18:14:47 +00:00
repo_key.go
repo_note.go
repo_refs.go
repo_tag.go
repo_topic.go
repo_tree.go
repo_watch.go Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
repo_wiki.go
settings.go
status.go
task.go
user.go Add API for changing Avatars (#25369) 2023-06-29 23:22:55 +00:00
user_app.go
user_email.go
user_gpgkey.go
user_key.go
visible_type.go