Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lunny Xiao
cc27b50bdf
Fix a bug returning 404 when display a single tag with no release ( #29466 )
...
Partially caused by #29149
When use
```go
releases, err := getReleaseInfos(ctx, &repo_model.FindReleasesOptions{
ListOptions: db.ListOptions{Page: 1, PageSize: 1},
RepoID: ctx.Repo.Repository.ID,
TagNames: []string{ctx.Params("*")},
// only show draft releases for users who can write, read-only users shouldn't see draft releases.
IncludeDrafts: writeAccess,
})
```
replace
```go
release, err := repo_model.GetRelease(ctx, ctx.Repo.Repository.ID, ctx.Params("*"))
```
It missed `IncludeTags: true,`. That means this bug will be occupied only when the release is a tag.
This PR will fix
- Get the right tag record when it's not a release
- Display correct tag tab but not release tag when it's a tag.
- The button will bring the tag name to the new page when it's a single tag page
- the new page will automatically hide the release target inputbox when the tag name is pre filled. This should be backport to v1.21.
9 months ago
..
actions
Actions Artifacts v4 backend ( #28965 )
9 months ago
setting
Move migration functions to services layer ( #29497 )
9 months ago
activity.go
Move context from modules to services ( #29440 )
9 months ago
attachment.go
Move context from modules to services ( #29440 )
9 months ago
blame.go
Move context from modules to services ( #29440 )
9 months ago
branch.go
Move context from modules to services ( #29440 )
9 months ago
cherry_pick.go
Move context from modules to services ( #29440 )
9 months ago
code_frequency.go
Move context from modules to services ( #29440 )
9 months ago
commit.go
Move context from modules to services ( #29440 )
9 months ago
compare.go
Move context from modules to services ( #29440 )
9 months ago
contributors.go
Move context from modules to services ( #29440 )
9 months ago
download.go
Move context from modules to services ( #29440 )
9 months ago
editor.go
Move context from modules to services ( #29440 )
9 months ago
editor_test.go
Move context from modules to services ( #29440 )
9 months ago
find.go
Move context from modules to services ( #29440 )
9 months ago
githttp.go
Move context from modules to services ( #29440 )
9 months ago
githttp_test.go
Fix http protocol auth ( #27875 )
1 year ago
helper.go
Move context from modules to services ( #29440 )
9 months ago
helper_test.go
Make web context initialize correctly for different cases ( #26726 )
1 year ago
issue.go
Rename Str2html to SanitizeHTML and clarify its behavior ( #29516 )
9 months ago
issue_content_history.go
Fix issue & comment history bugs ( #29525 )
9 months ago
issue_dependency.go
Move context from modules to services ( #29440 )
9 months ago
issue_label.go
Move context from modules to services ( #29440 )
9 months ago
issue_label_test.go
Move context from modules to services ( #29440 )
9 months ago
issue_lock.go
Move context from modules to services ( #29440 )
9 months ago
issue_pin.go
Move context from modules to services ( #29440 )
9 months ago
issue_stopwatch.go
Move context from modules to services ( #29440 )
9 months ago
issue_test.go
Implement FSFE REUSE for golang files ( #21840 )
2 years ago
issue_timetrack.go
Move context from modules to services ( #29440 )
9 months ago
issue_watch.go
Move context from modules to services ( #29440 )
9 months ago
main_test.go
make writing main test easier ( #27270 )
1 year ago
middlewares.go
Move context from modules to services ( #29440 )
9 months ago
migrate.go
Move context from modules to services ( #29440 )
9 months ago
milestone.go
Move context from modules to services ( #29440 )
9 months ago
packages.go
Move context from modules to services ( #29440 )
9 months ago
patch.go
Move context from modules to services ( #29440 )
9 months ago
projects.go
Move context from modules to services ( #29440 )
9 months ago
projects_test.go
Move context from modules to services ( #29440 )
9 months ago
pull.go
Fix incorrect redirection when creating a PR fails ( #29537 )
9 months ago
pull_review.go
Move context from modules to services ( #29440 )
9 months ago
pull_review_test.go
Move context from modules to services ( #29440 )
9 months ago
recent_commits.go
Move context from modules to services ( #29440 )
9 months ago
release.go
Fix a bug returning 404 when display a single tag with no release ( #29466 )
9 months ago
release_test.go
Move context from modules to services ( #29440 )
9 months ago
render.go
Move context from modules to services ( #29440 )
9 months ago
repo.go
migrate some more "OptionalBool" to "Option[bool]" ( #29479 )
9 months ago
search.go
Move context from modules to services ( #29440 )
9 months ago
topic.go
Move context from modules to services ( #29440 )
9 months ago
treelist.go
Move context from modules to services ( #29440 )
9 months ago
view.go
Move context from modules to services ( #29440 )
9 months ago
view_test.go
Implement FSFE REUSE for golang files ( #21840 )
2 years ago
wiki.go
Move context from modules to services ( #29440 )
9 months ago
wiki_test.go
Move context from modules to services ( #29440 )
9 months ago