fix(shortcut): don't disable systems if there are no rebuilds at all
Resolves #41
This commit is contained in:
parent
3554d4f59d
commit
d4a0e8702a
1 changed files with 6 additions and 4 deletions
10
shortcut.js
10
shortcut.js
|
|
@ -9,12 +9,14 @@ const repo = "Defelo/nixpkgs-review-gha";
|
|||
const reviewDefaults = ({ title, commits, labels, author, authoredByMe, hasLinuxRebuilds, hasDarwinRebuilds }) => {
|
||||
const darwinSandbox = "true";
|
||||
|
||||
const hasRebuilds = hasLinuxRebuilds || hasDarwinRebuilds;
|
||||
|
||||
return {
|
||||
// "branch": "main",
|
||||
"x86_64-linux": hasLinuxRebuilds,
|
||||
"aarch64-linux": hasLinuxRebuilds,
|
||||
"x86_64-darwin": hasDarwinRebuilds ? `yes_sandbox_${darwinSandbox}` : "no",
|
||||
"aarch64-darwin": hasDarwinRebuilds ? `yes_sandbox_${darwinSandbox}` : "no",
|
||||
"x86_64-linux": !hasRebuilds || hasLinuxRebuilds,
|
||||
"aarch64-linux": !hasRebuilds || hasLinuxRebuilds,
|
||||
"x86_64-darwin": !hasRebuilds || hasDarwinRebuilds ? `yes_sandbox_${darwinSandbox}` : "no",
|
||||
"aarch64-darwin": !hasRebuilds || hasDarwinRebuilds ? `yes_sandbox_${darwinSandbox}` : "no",
|
||||
// "extra-args": "",
|
||||
// "push-to-cache": true,
|
||||
// "upterm": false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue