Giter VIP home page Giter VIP logo

moving-stars's Introduction

Moving Stars

ci documentation pypi version

โญ Star on GitLab.com the same repos your starred on GitHub.com! ๐ŸŒ 

screenshot

Namespace and project name must be the same on GitHub and GitLab. Case is insensitive though ๐Ÿ‘!

Requirements

Moving Stars requires Python 3.6 or above.

To install Python 3.6, I recommend using pyenv.
# install pyenv
git clone https://github.com/pyenv/pyenv ~/.pyenv

# setup pyenv (you should also put these three lines in .bashrc or similar)
export PATH="${HOME}/.pyenv/bin:${PATH}"
export PYENV_ROOT="${HOME}/.pyenv"
eval "$(pyenv init -)"

# install Python 3.6
pyenv install 3.6.12

# make it available globally
pyenv global system 3.6.12

Installation

With pip:

python3.6 -m pip install moving-stars

With pipx:

python3.6 -m pip install --user pipx

pipx install --python python3.6 moving-stars

Usage

Bash

export GITHUB_TOKEN=<github_token>
export GITLAB_TOKEN=<gitlab_token>

moving-stars

Docker

docker run -e GITHUB_TOKEN=<github_token> -e GITLAB_TOKEN=<gitlab_token> --rm pawamoy/moving-stars

Tokens

Input file

A file containing the list of starred repositories that you want to copy on GitLab. The format of the input file is very simple.

namespace/repository
namespace2/repository2
...

Example:

microsoft/ghcrawler-cli
github/VisualStudio
Pawamoy/moving-stars
this-repo/does-not-exist
cryptsetup/cryptsetup

Other options

$ moving-stars -h
usage: moving-stars [-h] [-f FROM_FILE] [--no-pre-skip]

Command line tool to copy GitHub stars to GitLab.

optional arguments:
  -h, --help            show this help message and exit
  -f FROM_FILE, --from-file FROM_FILE
                        Read star list from file.
  -o OUTPUT_SOURCE_LIST, --output-source-list OUTPUT_SOURCE_LIST
                        Output downloaded source list to file.
  --no-pre-skip         Don't download list from target to skip already
                        starred projects.

It can be useful to first download your starred list, update it manually (to correct unmatching namespaces / project names), and then star on GitLab with this list:

moving-stars -o star_list
# edit file manually...
moving-stars -f star_list

moving-stars's People

Contributors

pawamoy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

moving-stars's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.