Skip to content

Commit f46e21c

Browse files
committed
Do not apply labels in autolabel when opening a draft PR
1 parent 76b673c commit f46e21c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handlers/autolabel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub(super) async fn parse_input(
6969
name: label.to_owned(),
7070
});
7171
}
72-
if cfg.new_pr && event.action == IssuesAction::Opened {
72+
if cfg.new_pr && event.action == IssuesAction::Opened && !event.issue.draft {
7373
autolabels.push(Label {
7474
name: label.to_owned(),
7575
});

0 commit comments

Comments
 (0)