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");