https://github.com/tango-controls/gitlab-migration-tools
https://github.com/tango-controls/gitlab-migration-tools
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tango-controls/gitlab-migration-tools
- Owner: tango-controls
- Created: 2020-12-17T10:58:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-03T07:10:38.000Z (about 5 years ago)
- Last Synced: 2026-01-14T00:09:47.605Z (5 months ago)
- Language: Python
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gitlab-migration-tools
## get_participants.py
Returns the Github user names of contributors and commenters of a github project
**Tip:** you can exclude account names from the output by listing them in the `exclude` file.
Users registered at https://mensuel.framapad.org/p/migration_ready_2548763689 are automatically excluded.
**Note:** the script should work with python>=3.6, but is tested with python>=3.7
```console
$ python3 ./get_participants.py
Repo owner [tango-controls] ?
Repo name [pytango] ? jtango
getting contributors (page 1): 7
getting commenters (page(1): 100
getting commenters (page(2): 100
getting commenters (page(3): 22
Unique users for github.com/tango-controls/jtango:
@Ingvord, @KrystianKedron, @Pascal-Verdier, @altavir, @bourtemb, @gwen-soleil, @jc17609, @jkotan, @ma-neumann, @reszelaz, @sergirubio, @t-b, @tre3k
```
## add_moved_branch.sh
Helper script to add a `moved-to-gitlab` branch to the old repository. So, the day of the migration, do:
1. Run `add_moved_branch.sh `
2. In GH, change the default branch of the project to `moved-to-gitlab` and change the project description to "Moved to gitlab"
3. Archive the GH project
4. Import it as `https://gitlab.com/tango-controls/` using the @tango-controls-bot account, and check it.
5. Delete the `moved-to-gitlab` branch in GitLab and set the proper default branch.
6. Notify the tango community about the migration (send an email to info@tango-controls.org) and add a comment in [this migration issue](https://github.com/tango-controls/TangoTickets/issues/47)