forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopy.bara.sky
67 lines (64 loc) · 2.03 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
moveUrl = "https://github.com/move-language/move.git"
aptosUrl = "https://github.com/aptos-labs/aptos-core.git"
# Workflow to pull from Move to Aptos. This creates a draft PR at the fixed branch `from_move`
# which should be further massaged before sending out.
core.workflow(
name = "pull_move",
origin = git.github_origin(
url = moveUrl,
ref = "aptos-main",
),
destination = git.destination(
url = "NOT_SET", # use --git-destination-url to set this
fetch = "from_move",
push = "from_move",
integrates = [],
),
mode = "ITERATIVE",
origin_files = glob(["language/**"]),
destination_files = glob(["third_party/move/**"]),
authoring = authoring.pass_thru("Wolfgang <[email protected]>"),
transformations = [
core.move("language", "third_party/move"),
],
)
# Workflow to push from Aptos to Move. This creates a PR.
core.workflow(
name = "push_move",
origin = git.github_origin(
url = aptosUrl,
ref = "main",
),
destination = git.destination(
url = "NOT_SET", # use --git-destination-url to set this
fetch = "aptos-main",
push = "to_move",
integrates = [],
),
mode = "ITERATIVE",
origin_files = glob(["third_party/move/**"]),
destination_files = glob(["language/**"]),
authoring = authoring.pass_thru("Wolfgang <[email protected]>"),
transformations = [
core.move("third_party/move", "language"),
],
)
# Workflow to push from Aptos to Move. This directly pushes without PR.
core.workflow(
name = "push_move_direct",
origin = git.github_origin(
url = aptosUrl,
ref = "main",
),
destination = git.github_destination(
url = moveUrl,
push = "aptos-main",
),
mode = "ITERATIVE",
origin_files = glob(["third_party/move/**"]),
destination_files = glob(["language/**"]),
authoring = authoring.pass_thru("Wolfgang <[email protected]>"),
transformations = [
core.move("third_party/move", "language"),
],
)