build dist files

This commit is contained in:
Federico 2022-02-22 11:03:48 -08:00
parent 1401eb0016
commit d0b06366e4
2 changed files with 2 additions and 5 deletions

5
dist/index.js generated vendored
View file

@ -296,10 +296,6 @@ function run() {
} }
const octokit = github.getOctokit(config_1.githubToken); const octokit = github.getOctokit(config_1.githubToken);
const previous = yield (0, comment_1.findPreviousComment)(octokit, config_1.repo, config_1.pullRequestNumber, config_1.header); const previous = yield (0, comment_1.findPreviousComment)(octokit, config_1.repo, config_1.pullRequestNumber, config_1.header);
if (!previous && !config_1.deleteOldComment) {
yield (0, comment_1.createComment)(octokit, config_1.repo, config_1.pullRequestNumber, config_1.body, config_1.header);
return;
}
if (config_1.deleteOldComment) { if (config_1.deleteOldComment) {
if (previous) { if (previous) {
yield (0, comment_1.deleteComment)(octokit, previous.id); yield (0, comment_1.deleteComment)(octokit, previous.id);
@ -307,6 +303,7 @@ function run() {
return; return;
} }
if (!previous) { if (!previous) {
yield (0, comment_1.createComment)(octokit, config_1.repo, config_1.pullRequestNumber, config_1.body, config_1.header);
return; return;
} }
if (config_1.hideOldComment) { if (config_1.hideOldComment) {

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long