singuliere
cc643284de
Add Index to comment for migrations and mirroring ( #18806 )
...
Comments have an id (see Gitea[0], GitLab[1], GitHub[2], etc.), and the
comment migration format must represent it during migrations so that
it can be used during mirroring or incremental migrations.
[0] https://try.gitea.io/api/swagger#/issue/issueGetComment
[1] https://docs.gitlab.com/ee/api/discussions.html#get-single-issue-discussion-item
[2] https://docs.github.com/en/rest/reference/issues#get-an-issue-comment
Signed-off-by: Loïc Dachary <loic@dachary.org>
Co-authored-by: Loïc Dachary <loic@dachary.org>
3 years ago
6543
54e9ee37a7
format with gofumpt ( #18184 )
...
* gofumpt -w -l .
* gofumpt -w -l -extra .
* Add linter
* manual fix
* change make fmt
3 years ago
luzpaz
8c647bf0f6
Fix various typos ( #18219 )
...
Found via `codespell -q 3 -S ./options/locale,./vendor -L ba,pullrequest,pullrequests,readby,te,unknwon`
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years ago
wxiaoguang
013fb73068
Use `hostmatcher` to replace `matchlist`, improve security ( #17605 )
...
Use hostmacher to replace matchlist.
And we introduce a better DialContext to do a full host/IP check, otherwise the attackers can still bypass the allow/block list by a 302 redirection.
3 years ago
Lunny Xiao
7e1ae38097
Move migrations into services and base into modules/migration ( #17663 )
...
* Move migrtions into services and base into modules/migration
* Fix imports
* Fix lint
3 years ago
KN4CK3R
cee5f7c5e2
Add migrate from OneDev ( #16356 )
...
* Use context to simplify logic.
* Added migration from OneDev.
This PR adds [OneDev](https://code.onedev.io/ ) as migration source.
Supported:
- [x] Milestones
- [x] Issues
- [x] Pull Requests
- [x] Comments
- [x] Reviews
- [x] Labels
3 years ago
Lunny Xiao
f9acad82ca
Add proxy settings and support for migration and webhook ( #16704 )
...
* Add proxy settings and support for migration and webhook
* Fix default value
* Add newline for example ini
* Add lfs proxy support
* Fix lint
* Follow @zeripath's review
* Fix git clone
* Fix test
* missgin http requests for proxy
* use empty
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: zeripath <art27@cantab.net>
3 years ago
KN4CK3R
422c30d315
Refactored and fixed migration tests. ( #16714 )
...
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years ago
luzpaz
e0296b6a6d
Fix various documentation, user-facing, and source comment typos ( #16367 )
...
* Fix various doc, user-facing, and source comment typos
Found via `codespell -q 3 -S ./options/locale,./vendor -L ba,pullrequest,pullrequests,readby`
3 years ago
Lunny Xiao
0966349354
Make the github migration less rate limit waiting to get comment per page from repository but not per issue ( #16070 )
...
* Make the github migration less rate limit waiting to get comment per page from repository but not per issue
* Fix lint
* adjust Downloader interface
* Fix missed reviews
* Fix test
* Remove unused struct
3 years ago
6543
81c833d92d
Add support to migrate from gogs ( #14342 )
...
Add support to migrate gogs:
* issues
* comments
* labels
* milestones
* wiki
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Andrew Thornton <art27@cantab.net>
4 years ago