-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
53 lines (45 loc) · 1.8 KB
/
config.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
# Organization to sync/migrate the repositories to
target_org: org-name
# Add a prefix to identify the source of the repository (eg: BitBucket)
# IMPORTANT: Always use the same prefix with the same source everytime you sync, (BitBucket is always bb:)
# otherwise, the script checks identifies the repos as 'not-existing' on GHE and makes new migrations
# instead of syncing old repos.
# You can choose to make this an empty string as well, to maintain same repository names
# IMPORTANT Only use alphabets, numbers, hyphen, underscore and fullstops.
# GitHub converts any substring of other characters to a single hyphen. eg: ~!@123ABC_po%. becomes -123ABC_po-.
prefix: ""
master_branch_prefix: bb-
# Specify log levels for console and files
console_log_level: info
console_log_normal: false # false: JSON formatted logs, true: Normal oneline string logs
file_log_level: debug
# At any level inside sync_config, can choose to mention regex=true
# to enable regex matching for all the subsequent children
# All children derive the regex setting of their parent
# This can be overriden by mentioning a regex=true/false for the children as well
# When regex is mentioned, the config must be nested under a different repo_config key
# By default, regex matching is false and is propogated to all children
sync_config:
include:
regex: true
repo_config:
ABC: # project key
regex: false
repo_config:
- repo-name-1
- team-alpha: # team name
regex: true
repo_config:
- .*-some-pattern$
DEF: # project key
regex: true
repo_config:
- team_beta: # team name
- .*-more-pattern$
exclude:
regex: true
repo_config:
ABC:
- .*suffixpattern$
DEF:
- repo-pattern