This commit is contained in:
Jiří Štefka 2024-12-14 23:02:24 +01:00
parent 16e0059bfd
commit ba49f246e9
Signed by: jiriks74
GPG key ID: 1D5E30D3DB2264DE

28
dist/index.js vendored
View file

@ -1306,7 +1306,31 @@ class GitHubHelper {
// 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__;
/******/
/******/ })()
;
;