Skip to content

Commit d4a0e87

Browse files
committed
fix(shortcut): don't disable systems if there are no rebuilds at all
Resolves Defelo#41
1 parent 3554d4f commit d4a0e87

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

shortcut.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ const repo = "Defelo/nixpkgs-review-gha";
99
const reviewDefaults = ({ title, commits, labels, author, authoredByMe, hasLinuxRebuilds, hasDarwinRebuilds }) => {
1010
const darwinSandbox = "true";
1111

12+
const hasRebuilds = hasLinuxRebuilds || hasDarwinRebuilds;
13+
1214
return {
1315
// "branch": "main",
14-
"x86_64-linux": hasLinuxRebuilds,
15-
"aarch64-linux": hasLinuxRebuilds,
16-
"x86_64-darwin": hasDarwinRebuilds ? `yes_sandbox_${darwinSandbox}` : "no",
17-
"aarch64-darwin": hasDarwinRebuilds ? `yes_sandbox_${darwinSandbox}` : "no",
16+
"x86_64-linux": !hasRebuilds || hasLinuxRebuilds,
17+
"aarch64-linux": !hasRebuilds || hasLinuxRebuilds,
18+
"x86_64-darwin": !hasRebuilds || hasDarwinRebuilds ? `yes_sandbox_${darwinSandbox}` : "no",
19+
"aarch64-darwin": !hasRebuilds || hasDarwinRebuilds ? `yes_sandbox_${darwinSandbox}` : "no",
1820
// "extra-args": "",
1921
// "push-to-cache": true,
2022
// "upterm": false,

0 commit comments

Comments
 (0)