COMMITTER_NAME is your GitHub name with surname, e.g. John Doe (can be passed to git config user.name);
COMMITTER_EMAIL is your GitHub email, e.g. john.doe@example.com (valid for git config user.email);
$(go env GOPATH)/bin/ is the path where import-gitlab-commits installed.
Example
Contributions before running import-gitlab-commits:
After:
Internals
What work the tool does:
gets current user info by GITLAB_TOKEN;
fetches from GITLAB_BASE_URL projects that the current user contributed to;
for all projects fetches commits where author's email is the current user's email;
creates new repo repo.gitlab.yourcompany.com.currentusername and commits all fetched commits with message
Project: GITLAB_PROJECT_ID commit: GITLAB_COMMIT_HASH, commit date GITLAB_COMMIT_DATE, and commit author COMMITTER_NAME <COMMITTER_EMAIL>.
To show the changes on GitHub you need to:
create a new repo yourcompany-contributions in GitHub;
open folder repo.gitlab.yourcompany.com.currentusername;