File tree 2 files changed +5
-3
lines changed 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -255,6 +255,8 @@ pub struct Issue {
255
255
pub pull_request : Option < PullRequestDetails > ,
256
256
#[ serde( default ) ]
257
257
pub merged : bool ,
258
+ #[ serde( default ) ]
259
+ pub draft : bool ,
258
260
// API URL
259
261
comments_url : String ,
260
262
#[ serde( skip) ]
Original file line number Diff line number Diff line change @@ -37,13 +37,13 @@ pub(super) async fn parse_input(
37
37
38
38
if !matches ! (
39
39
event. action,
40
- IssuesAction :: Opened | IssuesAction :: Synchronize
40
+ IssuesAction :: Opened | IssuesAction :: Synchronize | IssuesAction :: ReadyForReview
41
41
) {
42
42
return Ok ( None ) ;
43
43
}
44
44
45
- // Don't ping on rollups.
46
- if event. issue . title . starts_with ( "Rollup of" ) {
45
+ // Don't ping on rollups or draft PRs .
46
+ if event. issue . title . starts_with ( "Rollup of" ) || event . issue . draft {
47
47
return Ok ( None ) ;
48
48
}
49
49
You can’t perform that action at this time.
0 commit comments