test
This commit is contained in:
parent
16e0059bfd
commit
38d2dcaa13
1 changed files with 27 additions and 3 deletions
30
dist/index.js
vendored
30
dist/index.js
vendored
|
@ -1284,7 +1284,7 @@ class GitHubHelper {
|
||||||
options.auth = `${token}`;
|
options.auth = `${token}`;
|
||||||
}
|
}
|
||||||
if (githubServerHostname !== 'github.com') {
|
if (githubServerHostname !== 'github.com') {
|
||||||
options.baseUrl = `https://${githubServerHostname}/api/v3`;
|
options.baseUrl = `https://${githubServerHostname}/api/v1`;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
options.baseUrl = 'https://api.github.com';
|
options.baseUrl = 'https://api.github.com';
|
||||||
|
@ -1306,7 +1306,31 @@ class GitHubHelper {
|
||||||
// Try to create the pull request
|
// Try to create the pull request
|
||||||
try {
|
try {
|
||||||
core.info(`Attempting creation of pull request`);
|
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})`);
|
core.info(`Created pull request #${pull.number} (${headBranch} => ${inputs.base})`);
|
||||||
return {
|
return {
|
||||||
number: pull.number,
|
number: pull.number,
|
||||||
|
@ -36020,4 +36044,4 @@ function validateConcurrency(concurrency) {
|
||||||
/******/ module.exports = __webpack_exports__;
|
/******/ module.exports = __webpack_exports__;
|
||||||
/******/
|
/******/
|
||||||
/******/ })()
|
/******/ })()
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in a new issue