From 8e65a33d3e7d37ef735de7f72b1af7e2f44377f8 Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Sun, 19 Nov 2023 12:40:09 +0100 Subject: [PATCH] Added the branch info. --- action.yml | 2 +- index.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index b585471..515cb7f 100644 --- a/action.yml +++ b/action.yml @@ -3,7 +3,7 @@ description: Creates a pull request for a branch if it does not already exist inputs: github_token: description: GitHub token for authentication - required: true + required: false branch: description: Branch for which to create the PR required: true diff --git a/index.js b/index.js index b92ae2e..0f0146c 100644 --- a/index.js +++ b/index.js @@ -15,6 +15,9 @@ async function getAndPostPullRequests() { core.getInput("repo") || process.env.GITHUB_REPOSITORY.split("/")[1]; core.info(`Repository Name: ${repo}`); + const branch = core.getInput("branch"); + core.info(`The branch ${branch} should be merged.`); + // core.info(`Post Data: ${JSON.stringify(postData)}`); const githubToken = core.getInput("github_token");