You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/models/issues
wxiaoguang e71eb8930a
Refactor some Str2html code (#29397)
This PR touches the most interesting part of the "template refactoring".

1. Unclear variable type. Especially for "web/feed/convert.go":
sometimes it uses text, sometimes it uses HTML.
2. Assign text content to "RenderedContent" field, for example: `
project.RenderedContent = project.Description` in web/org/projects.go
3. Assign rendered content to text field, for example: `r.Note =
rendered content` in web/repo/release.go
4. (possible) Incorrectly calling `{{Str2html
.PackageDescriptor.Metadata.ReleaseNotes}}` in
package/content/nuget.tmpl, I guess the name Str2html misleads
developers to use it to "render string to html", but it only sanitizes.
if ReleaseNotes really contains HTML, then this is not a problem.
11 months ago
..
assignees.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 1 year ago
assignees_test.go Remove deadcode under models/issues (#28536) 1 year ago
comment.go Refactor some Str2html code (#29397) 11 months ago
comment_code.go Rework markup link rendering (#26745) 1 year ago
comment_list.go Use ghost user if user was not found (#29161) 12 months ago
comment_test.go More `db.DefaultContext` refactor (#27265) 1 year ago
content_history.go Fix gitea-action user avatar broken on edited menu (#29190) 12 months ago
content_history_test.go Fix comment permissions (#28213) 1 year ago
dependency.go Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
dependency_test.go Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
issue.go Refactor some Str2html code (#29397) 11 months ago
issue_index.go Another round of `db.DefaultContext` refactor (#27103) 1 year ago
issue_label.go Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
issue_label_test.go Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
issue_list.go Add context parameter to some database functions (#26055) 2 years ago
issue_list_test.go Add context parameter to some database functions (#26055) 2 years ago
issue_lock.go Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
issue_project.go Clean some functions about project issue (#27705) 1 year ago
issue_search.go Remove deadcode under models/issues (#28536) 1 year ago
issue_stats.go Another round of `db.DefaultContext` refactor (#27103) 1 year ago
issue_test.go Allow non-admin users to delete review requests (#29057) 11 months ago
issue_update.go Don't use subselect in `DeleteIssuesByRepoID` (#27332) 1 year ago
issue_user.go Add combined index for issue_user.uid and issue_id (#28080) 1 year ago
issue_user_test.go Fix bug with sqlite load read (#26305) 2 years ago
issue_watch.go Even more `db.DefaultContext` refactor (#27352) 1 year ago
issue_watch_test.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
issue_xref.go bump to use go 1.22 (#29119) 12 months ago
issue_xref_test.go Replace 'userxx' with 'orgxx' in all test files when the user type is org (#27052) 1 year ago
label.go Refactor deletion (#28610) 1 year ago
label_test.go Remove deadcode under models/issues (#28536) 1 year ago
main_test.go make writing main test easier (#27270) 1 year ago
milestone.go Refactor some Str2html code (#29397) 11 months ago
milestone_list.go Remove deadcode under models/issues (#28536) 1 year ago
milestone_test.go Remove deadcode under models/issues (#28536) 1 year ago
pull.go Add API to get PR by base/head (#29242) 11 months ago
pull_list.go More refactoring of `db.DefaultContext` (#27083) 1 year ago
pull_test.go Add API to get merged PR of a commit (#29243) 11 months ago
reaction.go Another round of `db.DefaultContext` refactor (#27103) 1 year ago
reaction_test.go Another round of `db.DefaultContext` refactor (#27103) 1 year ago
review.go Workaround to clean up old reviews on creating a new one (#28554) 12 months ago
review_list.go bump to use go 1.22 (#29119) 12 months ago
review_test.go Fix 500 when deleting a dismissed review (#27903) 1 year ago
stopwatch.go Remove deadcode under models/issues (#28536) 1 year ago
stopwatch_test.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
tracked_time.go Add ability to see open and closed issues at the same time (#28757) 1 year ago
tracked_time_test.go Add ability to see open and closed issues at the same time (#28757) 1 year ago