File tree 1 file changed +12
-7
lines changed
1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -182,13 +182,18 @@ async function processIssues(client, args) {
182
182
}
183
183
} else {
184
184
if ( currentTime >= rrTime ) {
185
- log . debug ( `time expired on this issue, need to label it stale` ) ;
186
- if ( args . dryrun ) {
187
- log . info (
188
- `dry run: would mark #${ issue . number } as ${ staleLabel } due to ${ responseRequestedLabel } age`
189
- ) ;
190
- } else {
191
- await markStale ( client , issue , staleMessage , staleLabel ) ;
185
+ if ( staleMessage ) {
186
+ log . debug ( `time expired on this issue, need to label it stale` ) ;
187
+ if ( args . dryrun ) {
188
+ log . info (
189
+ `dry run: would mark #${ issue . number } as ${ staleLabel } due to ${ responseRequestedLabel } age`
190
+ ) ;
191
+ } else {
192
+ await markStale ( client , issue , staleMessage , staleLabel ) ;
193
+ }
194
+ }
195
+ else {
196
+ log . debug ( `stale message is null/empty, doing nothing` ) ;
192
197
}
193
198
} else {
194
199
// else ignore it because we need to wait longer before staleing
You can’t perform that action at this time.
0 commit comments