diff --git a/action/index.js b/action/index.js index 10f5931..9850da2 100644 --- a/action/index.js +++ b/action/index.js @@ -12406,7 +12406,6 @@ const octokit = github.getOctokit(GITHUB_TOKEN); const { context = {} } = github; const run = async () => { - // check branch; let branch_name = context.payload?.head_commit?.message ?.split("from")[1] ?.split("\n")[0] @@ -12568,7 +12567,7 @@ const createorupdatepr = async ({ branch, owner, repo, body, full_name }) => { owner, repo, state: "open", - head: branch, + head: owner + ":" + branch, base: DESTINATION_BRANCH, }); if (existing_pr?.data?.length === 0) { diff --git a/src/actions.js b/src/actions.js index e2917b8..ce56733 100644 --- a/src/actions.js +++ b/src/actions.js @@ -20,8 +20,6 @@ const run = async () => { branch_name = context.payload.ref?.replace("refs/heads/", ""); } - console.log(branch_name); - // fetching commits let commits = ""; try { @@ -172,7 +170,7 @@ const createorupdatepr = async ({ branch, owner, repo, body, full_name }) => { owner, repo, state: "open", - head: branch, + head: owner + ":" + branch, base: DESTINATION_BRANCH, }); if (existing_pr?.data?.length === 0) {