Skip to content

Commit 80ae492

Browse files
committed
remove dependency on pr_number when updating output paths
1 parent 6749705 commit 80ae492

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

buildbot_nix/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -808,9 +808,7 @@ def join_all_traversalsafe(self, root: Path, *paths: Path) -> Path:
808808
def run(self) -> Generator[Any, object, Any]:
809809
props = self.build.getProperties()
810810

811-
pr = props.getProperty("pr_number")
812-
813-
if not pr and props.getProperty("branch") != self.project.default_branch:
811+
if props.getProperty("branch") != self.project.default_branch:
814812
return util.SKIPPED
815813

816814
out_path = props.getProperty("out_path")
@@ -820,7 +818,7 @@ def run(self) -> Generator[Any, object, Any]:
820818

821819
project_name = Path(props.getProperty("projectname"))
822820

823-
target = Path(f"pulls/{pr}") if pr else Path(props.getProperty("branch"))
821+
target = Path(props.getProperty("branch"))
824822

825823
attr = Path(props.getProperty("attr"))
826824

0 commit comments

Comments
 (0)