forked from google/hdrnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopy.bara.sky
46 lines (45 loc) · 1.17 KB
/
copy.bara.sky
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
"""Defines hdrnet Copybara workflows for testing and release."""
# To test on a local Git repo, set:
# destination = git.destination(
# url = "file:///usr/local/google/home/${USER}/bare_repos/hdrnet.git",
# ),
core.workflow(
name = "piper_to_git",
mode = "ITERATIVE",
origin = piper.origin(),
destination = git.destination(
url = "ssh://git@github.com/google/hdrnet.git",
fetch = "master",
push = "master",
),
authoring = authoring.allowed(
default = "Googler <noreply@google.com>",
allowlist = [
"jiawen",
],
),
transformations = [
core.move("google3/third_party/hdrnet", ""),
core.replace(
before = "TODO(${b})",
after = "TODO(jiawen)",
regex_groups = {"b": "b\\/\\d*"},
),
leakr.check(),
],
origin_files = glob(
include = ["google3/third_party/hdrnet/**"],
exclude = [
"**/BUILD",
"**/METADATA",
"**/OWNERS",
],
),
destination_files = glob(
["**"],
exclude = [
".gitattributes",
".gitignore",
],
),
)