]> source.dussan.org Git - gitea.git/commit
Display original author and URL information when showing migrated issues/comments...
authormrsdizzie <info@mrsdizzie.com>
Mon, 8 Jul 2019 02:14:12 +0000 (22:14 -0400)
committerLunny Xiao <xiaolunwen@gmail.com>
Mon, 8 Jul 2019 02:14:12 +0000 (10:14 +0800)
commit1f1ecda541d7f526c004e7bfabab814dbc84dc2c
treeb53d4e692de9b4a5cc0ebfebf09a4cb5d8d5880f
parentfcda2d5b35ec9bec9a8e8fa0a0fb04cb21593648
Display original author and URL information when showing migrated issues/comments (#7352)

* Store original author info for migrated issues and comments

Keep original author name for displaying in Gitea interface and also
store original author user ID for potential future use in linking
accounts from old location.

* Add original_url for repo

Store the original URL for a migrated repo

Clean up migrations/tests

* fix migration

* fix golangci-lint

* make 'make revive' happy also

* Modify templates to use OriginalAuthor if set

Use the original author name in templates if it is set rather than the
user who migrated/currently owns the issues

* formatting fixes

* make generate-swagger

* Use default avatar for imported comments

* Remove no longer used IgnoreIssueAuthor option

* Add OriginalAuthorID to swagger also
28 files changed:
models/issue.go
models/issue_comment.go
models/migrations/migrations.go
models/migrations/v89.go [new file with mode: 0644]
models/repo.go
modules/migrations/base/comment.go
modules/migrations/base/issue.go
modules/migrations/base/options.go
modules/migrations/base/pullrequest.go
modules/migrations/base/repo.go
modules/migrations/gitea.go
modules/migrations/gitea_test.go
modules/migrations/github.go
modules/migrations/github_test.go
modules/migrations/migrate.go
modules/structs/issue.go
modules/structs/issue_comment.go
modules/structs/repo.go
modules/templates/helper.go
options/locale/locale_en-US.ini
public/css/index.css
public/less/_base.less
templates/repo/issue/list.tmpl
templates/repo/issue/view_content.tmpl
templates/repo/issue/view_content/comments.tmpl
templates/repo/issue/view_title.tmpl
templates/swagger/v1_json.tmpl
templates/user/dashboard/issues.tmpl