Skip to content

Commit

Permalink
fix: allow unlabeling draft PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Nov 1, 2024
1 parent 74bcc93 commit edb13c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api-review-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,8 @@ export function setupAPIReviewStateManagement(probot: Probot) {
throw new Error('Something went wrong - label does not exist.');
}

// Once a PR is merged, allow tampering.
if (pr.merged) return;
// It's permissible to change labels on merged or draft PRs.
if (pr.merged || pr.draft) return;

// Exclude PRs from API review if they:
// 1) Have backport, backport-skip, or fast-track labels
Expand Down

0 comments on commit edb13c7

Please sign in to comment.