Skip to content

Commit

Permalink
fix: await for label removal
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Jun 7, 2024
1 parent 2bb21e3 commit 7e8049e
Show file tree
Hide file tree
Showing 5 changed files with 170 additions and 13 deletions.
156 changes: 156 additions & 0 deletions dist/action.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/action.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,13 @@ async function action(
);
} else {
if (pr.currentLabels.includes(config.labels['revert'])) {
pr.removeLabel(config.labels['revert']);
await pr.removeLabel(config.labels['revert']);
}
}
statusTables.push(detectedReverts.getStatusMessage() + '\n');
} else {
if (pr.currentLabels.includes(config.labels['revert'])) {
pr.removeLabel(config.labels['revert']);
await pr.removeLabel(config.labels['revert']);
}
}

Expand All @@ -181,13 +181,13 @@ async function action(
);
} else {
if (pr.currentLabels.includes(config.labels['follow-up'])) {
pr.removeLabel(config.labels['follow-up']);
await pr.removeLabel(config.labels['follow-up']);
}
}
statusTables.push(detectedFollowUps.getStatusMessage() + '\n');
} else {
if (pr.currentLabels.includes(config.labels['follow-up'])) {
pr.removeLabel(config.labels['follow-up']);
await pr.removeLabel(config.labels['follow-up']);
}
}

Expand All @@ -200,13 +200,13 @@ async function action(
);
} else {
if (pr.currentLabels.includes(config.labels['mention'])) {
pr.removeLabel(config.labels['mention']);
await pr.removeLabel(config.labels['mention']);
}
}
statusTables.push(detectedMentions.getStatusMessage() + '\n');
} else {
if (pr.currentLabels.includes(config.labels['mention'])) {
pr.removeLabel(config.labels['mention']);
await pr.removeLabel(config.labels['mention']);
}
}

Expand Down

0 comments on commit 7e8049e

Please sign in to comment.