Skip to content

Commit

Permalink
chore: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasbhat0 committed Oct 17, 2024
1 parent e58aec0 commit 42cfa69
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions src/copy.bara.sky.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ core.workflow(
# Pull Request workflow
core.workflow(
name = "pr",
origin = git.github_pr_origin(
origin = git.origin(
url = SOT_REPO,
branch = SOT_BRANCH,
ref = SOT_BRANCH,
),
destination = git.github_pr_destination(
url = DESTINATION_REPO,
Expand All @@ -75,6 +75,7 @@ core.workflow(
destination_files = glob(PUSH_INCLUDE, exclude = PUSH_EXCLUDE),
authoring = authoring.pass_thru(default = COMMITTER),
mode = "ITERATIVE",
set_rev_id = False,
transformations = [
metadata.save_author("ORIGINAL_AUTHOR"),
metadata.expose_label("GITHUB_PR_NUMBER", new_name = "Closes", separator = SOT_REPO.replace("[email protected]:", " ").replace(".git", "#")),
Expand Down
2 changes: 1 addition & 1 deletion src/copybara.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class CopyBara {
case "pr":
return this.exec(
["-e", "COPYBARA_WORKFLOW=pr", "-e", `COPYBARA_SOURCEREF=${ref}`],
["--force", ...copybaraOptions]
["--force","--last-rev","-15", ...copybaraOptions]
);

default:
Expand Down

0 comments on commit 42cfa69

Please sign in to comment.