summaryrefslogtreecommitdiff
path: root/copybara.sky
blob: 1e16a3a8bd4dc8f17326b7de6a2dd89722028938 (plain)
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
# This configuration is for migrating code from one Git repository to another using Copybara.
# It selectively copies content, excluding specific paths and preserving authorship.
sourceUrl = "git@github.com:10gen/mongo.git"
destinationUrl = "git@github.com:mongodb/mongo.git"

core.workflow(
    name = "default",
    origin = git.origin(
        url = sourceUrl,
        ref = "v6.0",
        # VersionSelector
    ),
    destination = git.destination(
        url = destinationUrl,
        fetch = "v6.0",
        push = "v6.0",
    ),
    # Change path to the folder you want to publish publicly
    origin_files = glob(["**"], exclude=["src/mongo/db/modules/**"]),

    authoring = authoring.pass_thru("MongoDB <mongodb@mongodb.com>"),

    mode = "ITERATIVE",
    # Change the path here to the folder you want to publish publicly
    # transformations = [
	#     core.move("path/to/folder/you/want/exported", ""),
	# ],
)