We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 956f667 commit e2a6521Copy full SHA for e2a6521
scripts/release_helper/common.py
@@ -279,7 +279,7 @@ def auto_bot_advice(self):
279
def get_target_date(self):
280
body = self.get_issue_body()
281
try:
282
- self.target_date = [line.split(':')[-1].strip() for line in body if 'Target release date' in line][0]
+ self.target_date = [re.compile(r"\d{4}-\d{1,2}-\d{1,2}").findall(l)[0] for l in body if 'Target release date' in l][0]
283
self.date_from_target = int((time.mktime(time.strptime(self.target_date, '%Y-%m-%d')) - time.time()) / 3600 / 24)
284
except Exception:
285
self.target_date = 'fail to get.'
0 commit comments