This repository has been archived by the owner on Sep 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.yml
53 lines (48 loc) · 2.38 KB
/
config.example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
# Deletes the destination repository (if it already existed) and recreates
# it using the `destination.admin_token`. Useful to retry a migration.
# Can also be enabled with the --reset or -r flag.
reset: false
# After fetching items (issues, comments, ...) they are saved in the
# `data/{reponame}/` directory. If the migration is retried and these items
# already exist in this directory, we will not fetch them again.
# If overwrite is true, we will remove the saved items and redownload them.
# Can also be enabled with the --overwirite or -o flag.
overwrite: true
# If false, this will perform all actions (issues, comments, ...) with the
# `destination.default_token`, can also be enabled with --for-real or -f flag.
for_real: false
# Where we are migrating from
source:
# API URL
api: "https://github.enterprise.com/api/v3"
# Current clone URL of the source repository (in SSH or HTTPS format)
# This can be overwritten with the --source="{repository}" flag
repository: "[email protected]:owner/repo.git"
# Token which has access to this repository
token: "0000000000000000000000000000000000000000"
# Where we are migrating to
destination:
# API URL
api: "https://api.github.com"
# Desired Clone URL of the destination repository (in SSH or HTTPS format)
# This can be overwritten with the --destination="{repository}" flag
# It is not neccesary that this repository already exists, you can let the
# script create the repository with the --reset or -r flag.
repository: "[email protected]:new-owner/repo.git"
# Default token to perform actions with (creating issues, comments, ...).
# If an action doesn't have an author or the token of the author is not
# configured, this token will be used.
default_token: "0000000000000000000000000000000000000000"
# Admin token which will only be used to delete and create the destination
# repository when the --reset flag is used. Can be left empty.
admin_token: "0000000000000000000000000000000000000000"
# If we need to manually commit or merge use the following name and email:
committer_name: "Automatic Committer"
committer_email: "[email protected]"
# Mapping of 'source' to 'destination' usernames
usernames:
"username-github-enterprise": "username-public-github"
# Mappign of 'source' usernames to tokens for the destination
tokens:
"username-github-enterprise": "0000000000000000000000000000000000000000"