mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-19 14:35:50 +00:00
build dist files
This commit is contained in:
parent
1401eb0016
commit
d0b06366e4
2 changed files with 2 additions and 5 deletions
5
dist/index.js
generated
vendored
5
dist/index.js
generated
vendored
|
|
@ -296,10 +296,6 @@ function run() {
|
|||
}
|
||||
const octokit = github.getOctokit(config_1.githubToken);
|
||||
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 (previous) {
|
||||
yield (0, comment_1.deleteComment)(octokit, previous.id);
|
||||
|
|
@ -307,6 +303,7 @@ function run() {
|
|||
return;
|
||||
}
|
||||
if (!previous) {
|
||||
yield (0, comment_1.createComment)(octokit, config_1.repo, config_1.pullRequestNumber, config_1.body, config_1.header);
|
||||
return;
|
||||
}
|
||||
if (config_1.hideOldComment) {
|
||||
|
|
|
|||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue