-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcopy.bara.sky
More file actions
49 lines (41 loc) · 1.71 KB
/
copy.bara.sky
File metadata and controls
49 lines (41 loc) · 1.71 KB
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
"""
Copybara configuration for the github_test project.
Run with:
/google/bin/releases/copybara/public/copybara/copybara google3/experimental/users/chadliu/github_test/copy.bara.sky postsubmit_piper_to_github --init-history
"""
load("//devtools/copybara/library/scrubbing", "message_extract_public_description")
load("//devtools/copybara/library/workflow", "get_google3_default_excludes", "get_service_config", "piper_sot_to_github")
google3_path = "experimental/users/chadliu/github_test"
google3_excludes = get_google3_default_excludes(google3_path)
# Files to be included in the push to GitHub
google3_files = glob(
include = ["google3/" + google3_path + "/**"],
exclude = google3_excludes + [
# Exclude Google-only, internal files.
"google3/" + google3_path + "/internal/**",
"**/BUILD",
],
)
transforms = [
core.move("google3/" + google3_path, ""),
]
allowed_authors = {
"chadliu": "Chad Liu <chadliu@google.com>",
}
# Push to GitHub
piper_sot_to_github(
google3_files = google3_files,
# Use "build:No public description" if the CL description doesn't contain public tags.
# To include a description, use BEGIN_PUBLIC\nDescription\nEND_PUBLIC in your CL.
metadata_scrubber = message_extract_public_description(msg_if_no_match = "build:No public description\n"),
default_author = "Chad Liu <chadliu@google.com>",
allowed_authors = allowed_authors,
url = "https://github.com/nearlyforget/github_test",
branch = "main",
transformations = transforms,
# Uncomment and configure service_config for automated runs
# service_config = get_service_config(
# owner_prod_group = "your-prod-group",
# contact_email = "chadliu@google.com",
# ),
)