From a3c7a1eea46985627ff6c63828351a472b9f4728 Mon Sep 17 00:00:00 2001 From: Gregor Martynus Date: Fri, 4 Oct 2019 16:42:54 -0700 Subject: [PATCH] feat: inputs.branch can be set to fully qualified reference name including "refs/heads/" prefix --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index fb8fc01e..9cc63c8b 100644 --- a/index.js +++ b/index.js @@ -36,7 +36,7 @@ async function main() { const inputs = { title: core.getInput("title"), body: core.getInput("body"), - branch: core.getInput("branch"), + branch: core.getInput("branch").replace(/^refs\/heads\//, ""), path: core.getInput("path"), commitMessage: core.getInput("commit-message"), author: core.getInput("author")