@@ -135,7 +135,10 @@ pub(super) async fn parse_input(
135
135
None => return Ok ( None ) ,
136
136
} ;
137
137
if config. owners . is_empty ( )
138
- || !matches ! ( event. action, IssuesAction :: Opened )
138
+ || !matches ! (
139
+ event. action,
140
+ IssuesAction :: Opened | IssuesAction :: Synchronize
141
+ )
139
142
|| !event. issue . is_pr ( )
140
143
{
141
144
return Ok ( None ) ;
@@ -159,7 +162,7 @@ pub(super) async fn handle_input(
159
162
} ;
160
163
161
164
// Don't auto-assign or welcome if the user manually set the assignee when opening.
162
- if event. issue . assignees . is_empty ( ) {
165
+ if matches ! ( event . action , IssuesAction :: Opened ) && event. issue . assignees . is_empty ( ) {
163
166
let ( assignee, from_comment) = determine_assignee ( ctx, event, config, & diff) . await ?;
164
167
if assignee. as_deref ( ) == Some ( "ghost" ) {
165
168
// "ghost" is GitHub's placeholder account for deleted accounts.
@@ -218,7 +221,7 @@ pub(super) async fn handle_input(
218
221
}
219
222
}
220
223
221
- // Compute some warning messages to post to new PRs.
224
+ // Compute some warning messages to post to new (and old) PRs.
222
225
let mut warnings = Vec :: new ( ) ;
223
226
if let Some ( exceptions) = config. warn_non_default_branch . enabled_and_exceptions ( ) {
224
227
warnings. extend ( non_default_branch ( exceptions, event) ) ;
@@ -232,6 +235,7 @@ pub(super) async fn handle_input(
232
235
let warning = format ! ( ":warning: **Warning** :warning:\n \n {}" , warnings. join( "\n " ) ) ;
233
236
event. issue . post_comment ( & ctx. github , & warning) . await ?;
234
237
} ;
238
+
235
239
Ok ( ( ) )
236
240
}
237
241
0 commit comments