[CI] test built
This commit is contained in:
parent
5e9d0ee9ea
commit
5985a52387
2 changed files with 7 additions and 8 deletions
14
dist/index.js
vendored
14
dist/index.js
vendored
|
@ -975,22 +975,20 @@ class GitHubHelper {
|
||||||
const headBranch = `${headOwner}:${inputs.branch}`;
|
const headBranch = `${headOwner}:${inputs.branch}`;
|
||||||
// Create or update the pull request
|
// Create or update the pull request
|
||||||
const pull = yield this.createOrUpdate(inputs, baseRepository, headBranch);
|
const pull = yield this.createOrUpdate(inputs, baseRepository, headBranch);
|
||||||
// Set milestone, labels and assignees
|
// Apply milestone
|
||||||
const updateIssueParams = {};
|
|
||||||
if (inputs.milestone) {
|
if (inputs.milestone) {
|
||||||
updateIssueParams['milestone'] = inputs.milestone;
|
|
||||||
core.info(`Applying milestone '${inputs.milestone}'`);
|
core.info(`Applying milestone '${inputs.milestone}'`);
|
||||||
|
yield this.octokit.issues.update(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { issue_number: pull.number, milestone: inputs.milestone }));
|
||||||
}
|
}
|
||||||
|
// Apply labels
|
||||||
if (inputs.labels.length > 0) {
|
if (inputs.labels.length > 0) {
|
||||||
updateIssueParams['labels'] = inputs.labels;
|
|
||||||
core.info(`Applying labels '${inputs.labels}'`);
|
core.info(`Applying labels '${inputs.labels}'`);
|
||||||
|
yield this.octokit.issues.addLabels(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { issue_number: pull.number, labels: inputs.labels }));
|
||||||
}
|
}
|
||||||
|
// Apply assignees
|
||||||
if (inputs.assignees.length > 0) {
|
if (inputs.assignees.length > 0) {
|
||||||
updateIssueParams['assignees'] = inputs.assignees;
|
|
||||||
core.info(`Applying assignees '${inputs.assignees}'`);
|
core.info(`Applying assignees '${inputs.assignees}'`);
|
||||||
}
|
yield this.octokit.issues.addAssignees(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { issue_number: pull.number, labels: inputs.assignees }));
|
||||||
if (Object.keys(updateIssueParams).length > 0) {
|
|
||||||
yield this.octokit.issues.update(Object.assign(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { issue_number: pull.number }), updateIssueParams));
|
|
||||||
}
|
}
|
||||||
// Request reviewers and team reviewers
|
// Request reviewers and team reviewers
|
||||||
const requestReviewersParams = {};
|
const requestReviewersParams = {};
|
||||||
|
|
1
report.txt
Normal file
1
report.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
1612744542
|
Loading…
Add table
Add a link
Reference in a new issue