Skip to content

Commit 8a1c349

Browse files
committed
Suppress never-built branches from forks
Typically (always?), the only reason why a branch from a fork would be built in the upstream is for a pull request. But as soon as we discover a build from one such third-party branch, we look up all live branches in that fork. As a result we would list all live branches in all forks, with "(never built)". Ignore these.
1 parent 4fe4270 commit 8a1c349

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

godoctopus.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,12 @@ def main() -> None:
220220

221221
for org, fork in web_artifacts.items():
222222
for branch_name, branch in fork.live_branches.items():
223+
if not branch.build and org != default_org:
224+
logging.debug(
225+
"Ignoring never-built third-party branch %s:%s", org, branch_name
226+
)
227+
continue
228+
223229
item: dict[str, Any] = {"name": f"{org}/{branch_name}"}
224230

225231
try:

0 commit comments

Comments
 (0)