Skip to content

Commit cba1134

Browse files
authored
Update main.py (Azure#20332)
1 parent d808a13 commit cba1134

File tree

1 file changed

+2
-2
lines changed
  • scripts/release_issue_status

1 file changed

+2
-2
lines changed

scripts/release_issue_status/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@ def main():
147147
elif item.delay_from_latest_update >= 7:
148148
item.bot_advice = 'delay for a long time and better to handle now.'
149149

150-
if item.delay_from_create_date >= 30 and item.language == 'Python' and '30days attention' not in item.labels:
150+
if item.days_from_latest_commit >= 30 and item.language == 'Python' and '30days attention' not in item.labels:
151151
item.labels.append('30days attention')
152152
item.issue_object.set_labels(*item.labels)
153153
item.issue_object.create_comment(f'hi @{item.author}, the issue is closed since there is no reply for a long time. Please reopen it if necessary or create new one.')
154154
item.issue_object.edit(state='close')
155-
elif item.delay_from_create_date >= 15 and item.language == 'Python' and '15days attention' not in item.labels:
155+
elif item.days_from_latest_commit >= 15 and item.language == 'Python' and '15days attention' not in item.labels:
156156
item.issue_object.create_comment(f'hi @{item.author}, this release-request has been delayed more than 15 days,'
157157
' please deal with it ASAP. We will close the issue if there is still no response after 15 days!')
158158
item.labels.append('15days attention')

0 commit comments

Comments
 (0)