Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Changed isMaster to isPr and baseSha condition #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/scripts/calculate-commands.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const execSync = require('child_process').execSync;
const isMaster = process.argv[2] === 'False';
const baseSha = isMaster ? 'origin/master~1' : 'origin/master';
const isPr = process.argv[2] === 'True';
const baseSha = isPr ? 'origin/master' : 'origin/master~1';

console.log(
JSON.stringify({
Expand Down