mirror of
1
Fork 0
forgejo/vendor/github.com
Jordan 5c092eb0ef
Add support for migrating from Gitlab (#9084)
* First stab at a Gitlab migrations interface.

* Modify JS to show migration for Gitlab

* Properly strip out #gitlab tag from repo name

* Working Gitlab migrations!
Still need to figure out how to hide tokens/etc from showing up in opts.CloneAddr

* Try #2 at trying to hide credentials.
CloneAddr was being used as OriginalURL.
Now passing OriginalURL through from the form and saving it.

* Add go-gitlab dependency

* Vendor go-gitlab

* Use gitlab.BasicAuthClient
Correct CloneURL.
This should be functioning!
Previous commits fixed "Migrated from"
from including the migration credentials.

* Replaced repoPath with repoID globally.
RepoID is grabbed in NewGitlabDownloader

* Logging touchup

* Properly set private repo status.
Properly set milestone deadline time.
Consistently use Gitlab username for 'Name'.

* Add go-gitlab vendor cache

* Fix PR migrations:
- Count of issues is kept to set a non-conflicting PR.ID
- Bool is used to tell whether to fetch Issue or PR comments

* Ensure merged PRs are closed and set with the proper time

* Remove copyright and some commented code

* Rip out '#gitlab' based self-hosted Gitlab support

* Hide given credentials for migrated repos.

CloneAddr was being saved as OriginalURL.

Now passing OriginalURL through from the form and
saving it in it's place

* Use asset.URL directly, no point in parsing.
Opened PRs should fall through to false.

* Fix importing Milestones.
Allow importing using Personal Tokens or anonymous access.

* Fix Gitlab Milestone migration if DueDate isn't set

* Empty Milestone due dates properly return nil, not zero time

* Add GITLAB_READ_TOKEN to drone unit-test step

* Add working gitlab_test.go.
A Personal Access Token, given in env variable GITLAB_READ_TOKEN
is required to run the test.

* Fix linting issues

* Add modified JS files

* Remove pre-build JS files

* Only merged PRs are marged as merged/closed

* Test topics

* Skip test if gitlab is inaccessible

* Grab personal token from username, not password.
Matches Github migration implementation

* Add SetContext() to GitlabDownloader.

* Checking Updated field in Issues.

* Actually fetch Issue Updated time from Gitlab

* Add Gitlab migration GetReviews() stub

* Fix Patch and Clone URLs

* check Updated too

* fix mod

* make vendor with go1.14

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-04-19 23:44:11 +08:00
..
BurntSushi/toml Use Go1.11 module (#5743) 2019-03-27 19:15:23 +08:00
PuerkitoBio Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
RoaringBitmap/roaring Upgrade blevesearch to v0.8.1 (#9177) 2019-11-27 11:23:33 +02:00
andybalholm/cascadia Update to mod enabled version goquery (#8021) 2019-08-29 11:18:42 +08:00
anmitsu/go-shlex switch to use gliderlabs/ssh for builtin server (#7250) 2019-07-06 21:28:09 -04:00
asaskevich/govalidator Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
aymerick/douceur upgrade to most recent bluemonday (#11007) 2020-04-07 23:08:47 +03:00
beorn7/perks Use Go1.11 module (#5743) 2019-03-27 19:15:23 +08:00
blevesearch Add detected file language to code search (#10256) 2020-02-20 16:53:55 -03:00
boombuler/barcode Use Go1.11 module (#5743) 2019-03-27 19:15:23 +08:00
bradfitz/gomemcache Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
chris-ramon/douceur upgrade to most recent bluemonday (#11007) 2020-04-07 23:08:47 +03:00
couchbase chore: update github.com/couchbase/gomemcached and github.com/couchbase/go-couchbase (#9419) 2019-12-18 21:03:26 -05:00
couchbaselabs/go-couchbase Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
davecgh/go-spew Use Go1.11 module (#5743) 2019-03-27 19:15:23 +08:00
denisenkom/go-mssqldb go-mssqldb UPDATE (#9522) 2019-12-28 17:14:38 +00:00
dgrijalva/jwt-go workaround broken drone build (#7362) 2019-07-06 16:16:43 +01:00
dustin/go-humanize Show download count info in release list (#10124) 2020-02-03 21:50:37 +02:00
editorconfig/editorconfig-core-go/v2 upgrade gopkg.in/editorconfig/editorconfig-core-go.v1 (#8501) 2019-10-15 22:24:16 +01:00
edsrzf/mmap-go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
emirpasic/gods Implement git refs API for listing references (branches, tags and other) (#5354) 2018-11-27 16:52:20 -05:00
etcd-io/bbolt Upgrade blevesearch to v0.8.1 (#9177) 2019-11-27 11:23:33 +02:00
ethantkoenig/rupture Use Go1.11 module (#5743) 2019-03-27 19:15:23 +08:00
fatih Rename scripts to build and add revive command as a new build tool command (#10942) 2020-04-03 22:29:12 +03:00
fsnotify/fsnotify Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
gliderlabs/ssh switch to use gliderlabs/ssh for builtin server (#7250) 2019-07-06 21:28:09 -04:00
glycerine/go-unsnap-stream Upgrade blevesearch to v0.8.1 (#9177) 2019-11-27 11:23:33 +02:00
go-enry Migrate to go-enry new version (#10906) 2020-04-15 20:40:39 +03:00
go-git Exclude vendor dirs from git CRLF normalization (#10911) 2020-04-01 09:33:49 +03:00
go-openapi use go 1.13 (#8088) 2019-09-12 14:58:32 +03:00
go-redis/redis Issue indexer queue redis support (#6218) 2019-04-08 12:05:15 +03:00
go-sql-driver/mysql Fix error log when loading issues caused by a xorm bug (#7271) 2019-06-23 18:22:43 +03:00
go-stack/stack Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
go-swagger/go-swagger [Vendor Update] go-swagger v0.20.1 -> v0.21.0 (#9410) 2019-12-18 16:05:30 +01:00
gobwas/glob Implement webhook branch filter (#7791) 2019-09-09 08:48:21 +03:00
gogs deps: update and fix chardet import (#9351) 2019-12-14 02:15:48 +02:00
golang go 1.14 (#10467) 2020-03-20 10:29:31 -04:00
golang-sql/civil Update to github.com/lafriks/xormstore@v1.3.0 (#8317) 2019-10-02 02:32:12 +02:00
google use go 1.13 (#8088) 2019-09-12 14:58:32 +03:00
gorilla upgrade to most recent bluemonday (#11007) 2020-04-07 23:08:47 +03:00
hashicorp/hcl Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
huandu/xstrings More expansions in template repositories (#10021) 2020-01-28 13:57:15 +00:00
issue9/identicon Use Go1.11 module (#5743) 2019-03-27 19:15:23 +08:00
jaytaylor/html2text Use Go1.11 module (#5743) 2019-03-27 19:15:23 +08:00
jbenet/go-context Implement git refs API for listing references (branches, tags and other) (#5354) 2018-11-27 16:52:20 -05:00
jessevdk/go-flags Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
kballard/go-shellquote Use Go1.11 module (#5743) 2019-03-27 19:15:23 +08:00
kevinburke/ssh_config Update src-d/go-git to v4.13.0 (#7688) 2019-07-31 12:45:42 -04:00
keybase/go-crypto update vendor keybase/go-crypto (#10234) 2020-02-11 20:58:23 +02:00
klauspost/compress update: macaron cores,gzip,session (#10522) 2020-02-28 10:51:18 +01:00
kr Migrate to go-git/go-git v5.0.0 (#10735) 2020-03-17 12:19:58 -04:00
lafriks/xormstore Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
lib/pq use go 1.13 (#8088) 2019-09-12 14:58:32 +03:00
lunny upgrade levelqueue to 0.1.0 (#9192) 2019-11-28 23:37:33 +08:00
magiconair/properties Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
mailru/easyjson Issue search support elasticsearch (#9428) 2020-02-13 14:06:17 +08:00
markbates/goth OAuth2: add Yandex provider (#8335) (#10564) 2020-03-05 00:08:52 +02:00
mattn Rename scripts to build and add revive command as a new build tool command (#10942) 2020-04-03 22:29:12 +03:00
matttproud/golang_protobuf_extensions Use Go1.11 module (#5743) 2019-03-27 19:15:23 +08:00
mcuadros/go-version update github.com/mcuadros/go-version to v0.0.0-20190308113854-92cdf37c5b75 (#6815) 2019-05-01 11:44:16 -04:00
mgechev Rename scripts to build and add revive command as a new build tool command (#10942) 2020-04-03 22:29:12 +03:00
microcosm-cc/bluemonday upgrade to most recent bluemonday (#11007) 2020-04-07 23:08:47 +03:00
mitchellh Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
mrjones/oauth Use Go1.11 module (#5743) 2019-03-27 19:15:23 +08:00
mschoch/smat Use Go1.11 module (#5743) 2019-03-27 19:15:23 +08:00
msteinert/pam Use Go1.11 module (#5743) 2019-03-27 19:15:23 +08:00
nfnt/resize Use Go1.11 module (#5743) 2019-03-27 19:15:23 +08:00
niklasfasching/go-org Update go-org to 0.1.9 (#9782) 2020-01-16 09:27:41 +01:00
olekukonko/tablewriter Rename scripts to build and add revive command as a new build tool command (#10942) 2020-04-03 22:29:12 +03:00
oliamb/cutter Improve handling of non-square avatars (#7025) 2019-05-25 14:46:14 +03:00
olivere/elastic/v7 Issue search support elasticsearch (#9428) 2020-02-13 14:06:17 +08:00
pelletier/go-toml Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
philhofer/fwd Use Go1.11 module (#5743) 2019-03-27 19:15:23 +08:00
pkg/errors Rename scripts to build and add revive command as a new build tool command (#10942) 2020-04-03 22:29:12 +03:00
pmezard/go-difflib Update code.gitea.io/git (#3137) 2017-12-11 10:23:34 +08:00
pquerna/otp Use Go1.11 module (#5743) 2019-03-27 19:15:23 +08:00
prometheus Update swagger to 0.20.1 (#8010) 2019-08-28 08:55:22 +02:00
quasoft/websspi Add single sign-on support via SSPI on Windows (#8463) 2019-11-23 01:33:31 +02:00
satori/go.uuid Use Go1.11 module (#5743) 2019-03-27 19:15:23 +08:00
sergi/go-diff Migrate to go-git/go-git v5.0.0 (#10735) 2020-03-17 12:19:58 -04:00
shurcooL Change markdown rendering from blackfriday to goldmark (#9533) 2019-12-31 03:53:28 +02:00
siddontang/go-snappy add other session providers (#5963) 2019-02-05 11:52:51 -05:00
spf13 Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
steveyen/gtreap Use Go1.11 module (#5743) 2019-03-27 19:15:23 +08:00
stretchr/testify Update swagger to 0.20.1 (#8010) 2019-08-28 08:55:22 +02:00
syndtr/goleveldb Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
tinylib/msgp go 1.14 (#10467) 2020-03-20 10:29:31 -04:00
toqueteos Exclude vendor dirs from git CRLF normalization (#10911) 2020-04-01 09:33:49 +03:00
tstranex/u2f Use Go1.11 module (#5743) 2019-03-27 19:15:23 +08:00
unknwon Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
urfave/cli Update https://github.com/urfave/cli to version 1.2.0 (#6838) 2019-05-03 08:49:14 -04:00
willf/bitset Upgrade blevesearch to v0.8.1 (#9177) 2019-11-27 11:23:33 +02:00
xanzy Add support for migrating from Gitlab (#9084) 2020-04-19 23:44:11 +08:00
yohcop/openid-go Use Go1.11 module (#5743) 2019-03-27 19:15:23 +08:00
yuin Handle yaml frontmatter (#11016) 2020-04-09 11:54:50 +01:00