You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Install the program by running the following commandin a shell:
33
79
@@ -38,22 +84,25 @@ After:
38
84
3. Set environment variables and run `import-gitlab-commits`:
39
85
40
86
```shell
41
-
export GITLAB_BASE_URL=<your_gitlab_server_url>
87
+
export GITLAB_BASE_URL=https://gitlab.com
42
88
export GITLAB_TOKEN=<your_gitlab_token>
43
-
export COMMITTER_NAME="<Name Surname>"
44
-
export COMMITTER_EMAIL=<mail@example.com>
45
-
89
+
export COMMITTER_NAME="John Doe"
90
+
export COMMITTER_EMAIL=john.doe@example.com
91
+
46
92
$(go env GOPATH)/bin/import-gitlab-commits
47
93
```
48
94
49
-
Where:
95
+
Where `$(go env GOPATH)/bin/` is the path where `import-gitlab-commits` is installed.
96
+
97
+
## Configuration
98
+
99
+
Configure the tool with these environment variables:
50
100
51
-
- `GITLAB_BASE_URL`is a GitLab [instance URL](https://stackoverflow.com/questions/58236175/what-is-a-gitlab-instance-url-and-how-can-i-get-it),
101
+
- `GITLAB_BASE_URL`- a GitLab [instance URL](https://stackoverflow.com/questions/58236175/what-is-a-gitlab-instance-url-and-how-can-i-get-it),
52
102
e.g., `https://gitlab.com`, `https://gitlab.gnome.org`, or any GitLab server.
53
-
- `GITLAB_TOKEN` is a personal [access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#create-a-personal-access-token).
54
-
- `COMMITTER_NAME` is your GitHub name with surname, e.g., `John Doe` (can be passed to `git config user.name`).
55
-
- `COMMITTER_EMAIL` is your GitHub email, e.g., `john.doe@example.com` (valid for`git config user.email`).
56
-
- `$(go env GOPATH)/bin/` is the path where `import-gitlab-commits` is installed.
103
+
- `GITLAB_TOKEN` - a personal [access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#create-a-personal-access-token) with these scopes: `read_api`, `read_user`, `read_repository`.
104
+
- `COMMITTER_NAME` - your GitHub name with surname, e.g., `John Doe` (can be passed to `git config user.name`).
0 commit comments