Skip to content

Commit f9707bf

Browse files
committed
Update Go 1.19; extend README
1 parent 31d7690 commit f9707bf

File tree

2,594 files changed

+148
-668709
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,594 files changed

+148
-668709
lines changed

Makefile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ format:
3434
@echo format
3535
@go fmt $(PKGS)
3636

37-
.PHONY: vendor
38-
vendor:
39-
@echo vendor
40-
@-rm -rf vendor/
41-
@go mod vendor
42-
4337
.PHONY: generate
4438
generate:
4539
@echo generate

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ The tool to import commits from private GitLab to separate repo. Can be used to
44

55
# Getting Started
66

7-
> Prerequisites: go 1.15 must be installed.
8-
9-
Install by:
7+
1. Download and install [Go 1.19](https://go.dev/dl/).
8+
2. Install the program by running the command in a shell:
109
```shell
11-
GO111MODULE=on go get github.com/alexandear/import-gitlab-commits
10+
go install github.com/alexandear/import-gitlab-commits@latest
1211
```
1312

14-
Run:
13+
3. Run `import-gitlab-commits`:
1514
```shell
1615
export GITLAB_BASE_URL=https://gitlab.yourcompany.com
1716
export GITLAB_TOKEN=yourgitlabtoken
@@ -21,7 +20,7 @@ export [email protected]
2120
import-gitlab-commits
2221
```
2322

24-
Contributions before run:
23+
Contributions before running `import-gitlab-commits`:
2524

2625
<img src="./screenshots/contribs_before.png" width="1000">
2726

@@ -31,7 +30,7 @@ After:
3130

3231
What work the tool does:
3332
* gets current user info by `GITLAB_TOKEN`;
34-
* fetches from `GITLAB_BASE_URL` projects that the curreny user contributed to;
33+
* fetches from `GITLAB_BASE_URL` projects that the current user contributed to;
3534
* for all projects fetches commits where author's email is the current user's email;
3635
* creates new repo `repo.gitlab.yourcompany.com.currentusername` and commits all fetched commits with message
3736
`Project: GITLAB_PROJECT_ID commit: GITLAB_COMMIT_HASH` and commit date `GITLAB_COMMIT_DATE`.

go.mod

Lines changed: 130 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,139 @@
11
module github.com/alexandear/import-gitlab-commits
22

3-
go 1.15
3+
go 1.19
44

55
require (
6-
github.com/go-git/go-billy/v5 v5.0.0 // indirect
76
github.com/go-git/go-git/v5 v5.2.0
87
github.com/golangci/golangci-lint v1.36.0
98
github.com/stretchr/testify v1.7.0
109
github.com/xanzy/go-gitlab v0.43.0
1110
)
11+
12+
require (
13+
4d63.com/gochecknoglobals v0.0.0-20201008074935-acfc0b28355a // indirect
14+
github.com/BurntSushi/toml v0.3.1 // indirect
15+
github.com/Djarvur/go-err113 v0.0.0-20200511133814-5174e21577d5 // indirect
16+
github.com/Masterminds/semver v1.5.0 // indirect
17+
github.com/OpenPeeDeeP/depguard v1.0.1 // indirect
18+
github.com/ashanbrown/forbidigo v1.0.0 // indirect
19+
github.com/ashanbrown/makezero v0.0.0-20201205152432-7b7cdbb3025a // indirect
20+
github.com/bombsimon/wsl/v3 v3.1.0 // indirect
21+
github.com/daixiang0/gci v0.2.8 // indirect
22+
github.com/davecgh/go-spew v1.1.1 // indirect
23+
github.com/denis-tingajkin/go-header v0.4.2 // indirect
24+
github.com/emirpasic/gods v1.12.0 // indirect
25+
github.com/esimonov/ifshort v1.0.0 // indirect
26+
github.com/fatih/color v1.10.0 // indirect
27+
github.com/fsnotify/fsnotify v1.4.9 // indirect
28+
github.com/go-critic/go-critic v0.5.3 // indirect
29+
github.com/go-git/gcfg v1.5.0 // indirect
30+
github.com/go-git/go-billy/v5 v5.0.0 // indirect
31+
github.com/go-toolsmith/astcast v1.0.0 // indirect
32+
github.com/go-toolsmith/astcopy v1.0.0 // indirect
33+
github.com/go-toolsmith/astequal v1.0.0 // indirect
34+
github.com/go-toolsmith/astfmt v1.0.0 // indirect
35+
github.com/go-toolsmith/astp v1.0.0 // indirect
36+
github.com/go-toolsmith/strparse v1.0.0 // indirect
37+
github.com/go-toolsmith/typep v1.0.2 // indirect
38+
github.com/go-xmlfmt/xmlfmt v0.0.0-20191208150333-d5b6f63a941b // indirect
39+
github.com/gobwas/glob v0.2.3 // indirect
40+
github.com/gofrs/flock v0.8.0 // indirect
41+
github.com/golang/protobuf v1.4.2 // indirect
42+
github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2 // indirect
43+
github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a // indirect
44+
github.com/golangci/errcheck v0.0.0-20181223084120-ef45e06d44b6 // indirect
45+
github.com/golangci/go-misc v0.0.0-20180628070357-927a3d87b613 // indirect
46+
github.com/golangci/gocyclo v0.0.0-20180528144436-0a533e8fa43d // indirect
47+
github.com/golangci/gofmt v0.0.0-20190930125516-244bba706f1a // indirect
48+
github.com/golangci/ineffassign v0.0.0-20190609212857-42439a7714cc // indirect
49+
github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 // indirect
50+
github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca // indirect
51+
github.com/golangci/misspell v0.0.0-20180809174111-950f5d19e770 // indirect
52+
github.com/golangci/prealloc v0.0.0-20180630174525-215b22d4de21 // indirect
53+
github.com/golangci/revgrep v0.0.0-20180526074752-d9c87f5ffaf0 // indirect
54+
github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4 // indirect
55+
github.com/google/go-cmp v0.5.4 // indirect
56+
github.com/google/go-querystring v1.0.0 // indirect
57+
github.com/gostaticanalysis/analysisutil v0.4.1 // indirect
58+
github.com/gostaticanalysis/comment v1.4.1 // indirect
59+
github.com/hashicorp/go-cleanhttp v0.5.1 // indirect
60+
github.com/hashicorp/go-retryablehttp v0.6.4 // indirect
61+
github.com/hashicorp/hcl v1.0.0 // indirect
62+
github.com/imdario/mergo v0.3.9 // indirect
63+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
64+
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
65+
github.com/jgautheron/goconst v0.0.0-20201117150253-ccae5bf973f3 // indirect
66+
github.com/jingyugao/rowserrcheck v0.0.0-20191204022205-72ab7603b68a // indirect
67+
github.com/jirfag/go-printf-func-name v0.0.0-20191110105641-45db9963cdd3 // indirect
68+
github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd // indirect
69+
github.com/kisielk/gotool v1.0.0 // indirect
70+
github.com/kulti/thelper v0.2.1 // indirect
71+
github.com/kunwardeep/paralleltest v1.0.2 // indirect
72+
github.com/kyoh86/exportloopref v0.1.8 // indirect
73+
github.com/magiconair/properties v1.8.1 // indirect
74+
github.com/maratori/testpackage v1.0.1 // indirect
75+
github.com/matoous/godox v0.0.0-20190911065817-5d6d842e92eb // indirect
76+
github.com/mattn/go-colorable v0.1.8 // indirect
77+
github.com/mattn/go-isatty v0.0.12 // indirect
78+
github.com/mbilski/exhaustivestruct v1.1.0 // indirect
79+
github.com/mitchellh/go-homedir v1.1.0 // indirect
80+
github.com/mitchellh/mapstructure v1.1.2 // indirect
81+
github.com/moricho/tparallel v0.2.1 // indirect
82+
github.com/nakabonne/nestif v0.3.0 // indirect
83+
github.com/nbutton23/zxcvbn-go v0.0.0-20201221231540-e56b841a3c88 // indirect
84+
github.com/nishanths/exhaustive v0.1.0 // indirect
85+
github.com/nishanths/predeclared v0.2.1 // indirect
86+
github.com/pelletier/go-toml v1.2.0 // indirect
87+
github.com/phayes/checkstyle v0.0.0-20170904204023-bfd46e6a821d // indirect
88+
github.com/pkg/errors v0.9.1 // indirect
89+
github.com/pmezard/go-difflib v1.0.0 // indirect
90+
github.com/polyfloyd/go-errorlint v0.0.0-20201127212506-19bd8db6546f // indirect
91+
github.com/quasilyte/go-ruleguard v0.2.1-0.20201030093329-408e96760278 // indirect
92+
github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95 // indirect
93+
github.com/ryancurrah/gomodguard v1.2.0 // indirect
94+
github.com/ryanrolds/sqlclosecheck v0.3.0 // indirect
95+
github.com/securego/gosec/v2 v2.6.1 // indirect
96+
github.com/sergi/go-diff v1.1.0 // indirect
97+
github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c // indirect
98+
github.com/sirupsen/logrus v1.7.0 // indirect
99+
github.com/sonatard/noctx v0.0.1 // indirect
100+
github.com/sourcegraph/go-diff v0.6.1 // indirect
101+
github.com/spf13/afero v1.1.2 // indirect
102+
github.com/spf13/cast v1.3.0 // indirect
103+
github.com/spf13/cobra v1.1.1 // indirect
104+
github.com/spf13/jwalterweatherman v1.0.0 // indirect
105+
github.com/spf13/pflag v1.0.5 // indirect
106+
github.com/spf13/viper v1.7.1 // indirect
107+
github.com/ssgreg/nlreturn/v2 v2.1.0 // indirect
108+
github.com/stretchr/objx v0.1.1 // indirect
109+
github.com/subosito/gotenv v1.2.0 // indirect
110+
github.com/tdakkota/asciicheck v0.0.0-20200416190851-d7f85be797a2 // indirect
111+
github.com/tetafro/godot v1.4.3 // indirect
112+
github.com/timakin/bodyclose v0.0.0-20190930140734-f7f2e9bca95e // indirect
113+
github.com/tomarrell/wrapcheck v0.0.0-20200807122107-df9e8bcb914d // indirect
114+
github.com/tommy-muehle/go-mnd/v2 v2.3.1 // indirect
115+
github.com/ultraware/funlen v0.0.3 // indirect
116+
github.com/ultraware/whitespace v0.0.4 // indirect
117+
github.com/uudashr/gocognit v1.0.1 // indirect
118+
github.com/xanzy/ssh-agent v0.2.1 // indirect
119+
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 // indirect
120+
golang.org/x/mod v0.4.0 // indirect
121+
golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb // indirect
122+
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 // indirect
123+
golang.org/x/sys v0.4.0 // indirect
124+
golang.org/x/text v0.3.4 // indirect
125+
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 // indirect
126+
golang.org/x/tools v0.0.0-20210105210202-9ed45478a130 // indirect
127+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
128+
google.golang.org/appengine v1.6.1 // indirect
129+
google.golang.org/protobuf v1.23.0 // indirect
130+
gopkg.in/ini.v1 v1.51.0 // indirect
131+
gopkg.in/warnings.v0 v0.1.2 // indirect
132+
gopkg.in/yaml.v2 v2.4.0 // indirect
133+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
134+
honnef.co/go/tools v0.0.1-2020.1.6 // indirect
135+
mvdan.cc/gofumpt v0.1.0 // indirect
136+
mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed // indirect
137+
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b // indirect
138+
mvdan.cc/unparam v0.0.0-20200501210554-b37ab49443f7 // indirect
139+
)

0 commit comments

Comments
 (0)