From 31b3beced28725b35bf7784e632e8a658f37eede Mon Sep 17 00:00:00 2001 From: jiriks74 Date: Sat, 14 Dec 2024 23:02:24 +0100 Subject: [PATCH] test --- dist/index.js | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index b555e94..12fae01 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1302,11 +1302,35 @@ class GitHubHelper { createOrUpdate(inputs, baseRepository, headRepository) { return __awaiter(this, void 0, void 0, function* () { const [headOwner] = headRepository.split('/'); - const headBranch = `${headOwner}:${inputs.branch}`; + const headBranch = `${inputs.branch}`; // Try to create the pull request try { core.info(`Attempting creation of pull request`); - const { data: pull } = yield this.octokit.rest.pulls.create(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { title: inputs.title, head: headBranch, head_repo: headRepository, base: inputs.base, body: inputs.body, draft: inputs.draft.value, maintainer_can_modify: inputs.maintainerCanModify })); + core.info(`Testing`); + core.info(`Testing1`); + const test = { title: inputs.title, head: headBranch, head_repo: headRepository, base: inputs.base, body: inputs.body, draft: inputs.draft.value, maintainer_can_modify: inputs.maintainerCanModify } + core.info("Title:"); + core.info(inputs.title); + core.info("Head branch:"); + core.info(headBranch); + core.info("Head repository:"); + core.info(headRepository); + core.info("Base:"); + core.info(inputs.base); + core.info("Body:"); + core.info(inputs.body); + core.info("Draft:"); + core.info(inputs.draft.value); + core.info("MaintainerCanModify:"); + core.info(inputs.maintainerCanModify); + core.info(`Testing2`); + core.info(test); + core.info(`Testing3`); + core.info(this.parseRepository(baseRepository)); + var object1 = Object.assign({}, this.parseRepository(baseRepository)) + core.info(object1); + const { data: pull } = yield this.octokit.rest.pulls.create(Object.assign(object1, test)); + core.info(`Testing4`); core.info(`Created pull request #${pull.number} (${headBranch} => ${inputs.base})`); return { number: pull.number, @@ -36020,4 +36044,4 @@ function validateConcurrency(concurrency) { /******/ module.exports = __webpack_exports__; /******/ /******/ })() -; \ No newline at end of file +;