Skip to content

Commit

Permalink
fix(manage-merge-queue): async removePrFromQueue method (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
danadajian authored Jul 9, 2024
1 parent e05ba86 commit 4a3a2d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/676.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/676.index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/helpers/manage-merge-queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const manageMergeQueue = async ({ login, slack_webhook_url, skip_auto_mer
export const removePrFromQueue = async (pullRequest: PullRequest) => {
const queueLabel = pullRequest.labels.find(label => label.name?.startsWith(QUEUED_FOR_MERGE_PREFIX))?.name;
if (queueLabel) {
await map([READY_FOR_MERGE_PR_LABEL, queueLabel], async label => removeLabelIfExists(label, pullRequest.number));
await map([READY_FOR_MERGE_PR_LABEL, queueLabel], async label => await removeLabelIfExists(label, pullRequest.number));
await setCommitStatus({
sha: pullRequest.head.sha,
context: MERGE_QUEUE_STATUS,
Expand Down

0 comments on commit 4a3a2d4

Please sign in to comment.