From a1dee5e83584b5cbe42f20bdc8c739978dd3bf2d Mon Sep 17 00:00:00 2001 From: Yassine El Khattabi Date: Fri, 27 Sep 2024 22:24:33 +0100 Subject: [PATCH] Only add default for base branch in the action --- action.yml | 1 + dist/index.js | 2 +- src/config.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index cde59b1..d257d4f 100644 --- a/action.yml +++ b/action.yml @@ -46,6 +46,7 @@ inputs: pr-base: description: >- The base branch to create the PR on. + default: main required: false pr-branch: description: >- diff --git a/dist/index.js b/dist/index.js index bfa99a0..7209f70 100644 --- a/dist/index.js +++ b/dist/index.js @@ -33649,7 +33649,7 @@ class Config { os: core.getInput("os") || "windows", version: core.getInput("version") || "latest", createPR, - prBase: createPR ? core.getInput("pr-base") : "", + prBase: createPR ? core.getInput("pr-base") || "main" : "", prBranch: createPR ? core.getInput("pr-branch") : "", prTitle: createPR ? core.getInput("pr-title") : "", prTestFilename: createPR ? core.getInput("pr-test-filename") : "", diff --git a/src/config.js b/src/config.js index 50aee82..0eac1d8 100644 --- a/src/config.js +++ b/src/config.js @@ -18,7 +18,7 @@ class Config { os: core.getInput("os") || "windows", version: core.getInput("version") || "latest", createPR, - prBase: createPR ? core.getInput("pr-base") : "", + prBase: createPR ? core.getInput("pr-base") || "main" : "", prBranch: createPR ? core.getInput("pr-branch") : "", prTitle: createPR ? core.getInput("pr-title") : "", prTestFilename: createPR ? core.getInput("pr-test-filename") : "",