Skip to content

Bardenn/gitlab-contribution-mapper

 
 

Repository files navigation

GitLab Contribution Mapper

GitLab Contribution Mapper automates the extraction and merging of contributions from multiple GitLab repositories into a single monorepo, while filtering and anonymizing commits based on author email.

Note: The script barely works at the moment, more features will be added in the future (automation through GitHub Actions, more parametrization on what's anonymized or not). Feel free to suggest ideas as GitHub Discussions or Issues.


Setup

  1. Clone this project:
git clone https://github.com/7PH/gitlab-contribution-mapper
cd gitlab-contribution-mapper
  1. Create a virtual environment (optional):
python -m venv venv
source venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Configure your environment:

Copy .env.template to .env and fill in:

cp .env.template .env

Fill in the values (refer to .env.template to know how to fill them).

Usage

Run the tool:

set +a
source .env
set -a
python gitlab-contribution-mapper.py
bash scripts/monorepo-push.sh

About

Make your GitLab contributions visible on GitHub with anonymized history.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 76.4%
  • Shell 23.6%