Skip to content

Commit 750cd40

Browse files
changlanGitHub Enterprise
authored andcommitted
[Internal] Revise the pull workflow (#1521)
1 parent 6ce25f1 commit 750cd40

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

copy.bara.sky

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,16 @@ core.workflow(
4040
url = external_url,
4141
required_labels = ["ready-to-merge"],
4242
baseline_from_branch = True,
43-
required_check_runs = ["build-and-test"],
43+
required_check_runs = [
44+
"pre-commit",
45+
"build-and-test-job (a)",
46+
"build-and-test-job (b)",
47+
"build-and-test-job (c)",
48+
"build-and-test-job (d)",
49+
"build-and-test-job (e)",
50+
],
4451
review_state = "HEAD_COMMIT_APPROVED",
45-
review_approvers = ["OWNER"],
52+
review_approvers = ["OWNER", "MEMBER"],
4653
),
4754
destination = git.destination(
4855
url = internal_url,
@@ -52,7 +59,7 @@ core.workflow(
5259
mode = "CHANGE_REQUEST",
5360
set_rev_id = False,
5461

55-
origin_files = glob(["**"]),
62+
origin_files = glob(["**"], exclude = ["CODEOWNERS"]),
5663
destination_files = glob(["**"], exclude = internal_only_files),
5764

5865
authoring = authoring.pass_thru("AXLearn Contributor <[email protected]>"),
@@ -83,7 +90,9 @@ core.workflow(
8390
write_file("CODEOWNERS", external_codeowners),
8491
metadata.restore_author(),
8592
metadata.expose_label("COPYBARA_INTEGRATE_REVIEW"),
86-
# Scrub internal keywords from commit messages
93+
# Scrub internal PR number.
94+
metadata.scrubber(r' \(#\d+\)'),
95+
# Scrub internal keywords from commit messages.
8796
metadata.scrubber("Rio"),
8897
metadata.scrubber('(^|\n)CONFIDENTIAL:(.|\n)*')
8998
],

0 commit comments

Comments
 (0)