clean up copybara config a smidge

GitOrigin-RevId: 5179f64eecdf7f500a9341c22402fe42ef032529
This commit is contained in:
Colin McMillen 2020-02-17 18:43:24 -05:00
parent 143aeb983d
commit 3107c8448e

View File

@ -1,27 +1,10 @@
sourceUrlGitHub = "git@github.com:mcmillen/sneak-private.git"
sourceUrlGitea = "git@git.semicolin:semicolin/sneak-private.git"
destinationUrlGitea = "git@git.semicolin:semicolin/sneak.git"
destinationUrlGitHub = "git@github.com:mcmillen/sneak.git"
sourceUrlGitea = "git@git.semicolin:semicolin/sneak-private.git"
destinationUrlGitea = "git@git.semicolin:semicolin/sneak.git"
files = ["README.md", "tools/**", "Shared/**", "SharedTests/**", "Jumpy.Shared/**"]
core.workflow(
name = "github",
mode = "ITERATIVE",
origin = git.origin(
url = sourceUrlGitea,
ref = "master",
),
destination = git.destination(
url = destinationUrlGitHub,
fetch = "master",
push = "master",
),
origin_files = glob(files),
authoring = authoring.pass_thru("Unknown Author <nobody@semicolin.games>"),
)
core.workflow(
name = "gitea",
mode = "ITERATIVE",
@ -38,4 +21,19 @@ core.workflow(
authoring = authoring.pass_thru("Unknown Author <nobody@semicolin.games>"),
)
core.workflow(
name = "github",
mode = "ITERATIVE",
origin = git.origin(
url = sourceUrlGitea,
ref = "master",
),
destination = git.destination(
url = destinationUrlGitHub,
fetch = "master",
push = "master",
),
origin_files = glob(files),
authoring = authoring.pass_thru("Unknown Author <nobody@semicolin.games>"),
)