Skip to content

Commit 0e8cf20

Browse files
BigCat20196msyycRAY-316
authored
[Release helper] add on time policy (Azure#25338)
* update for Go * check tag consistency and optize reply * add write.md * update go js readme * update * Update common.py * Update common.py * update assignee for JS * update * update * Update common.py * Update common.py * Update release_helper.yml for Azure Pipelines * Update common.py * update * Update common.py * Update common.py * Update main.py * update * update bot advice * update * update * update excel * update output function * add exception handle for bad credential * fix static varaible in class * update auto_assignee algorithm * update bot token to have a try * update bot token * force to single process * test * test * test * test * fix bug * fix * update release_helper/js * update release_helper/js * fix bug * update release helper * Update js.py * Update js.py * Update js.py * urldecode * format * add python * fix * add package name * update package name * update package name * fix bug * update get edit_content * auto-close * record release * debug * debug * debug * override run * init readme link * fix * fix * fix * update assignee_token and auto-close * fix * debug * fix * auto-reply * fix * debug * fix * debug * debug * fix * debugg * update yaml * change to add_label * format * add attention policy and remind policy * add duplicated policy * delete uesless code * Update scripts/release_helper/utils.py Co-authored-by: Yuchao Yan <[email protected]> * update * fix dependence version * fix dependence version * fix env * update js assignee * update js assignee * fix find pr number bug * update assignee logic * debug * debug * update python assignee * Update python.py * debug * debug * delete useless code * Update scripts/release_helper/python.py Co-authored-by: Yuchao Yan <[email protected]> * add multi api policy * add tag inconsystency * add specified tag * Update scripts/release_helper/python.py Co-authored-by: Yuchao Yan <[email protected]> * update * update multiapi policy * update on time * Update python.py Co-authored-by: msyyc <[email protected]> Co-authored-by: Zed <[email protected]> Co-authored-by: Yiming Lei <[email protected]> Co-authored-by: Yuchao Yan <[email protected]>
1 parent a8252c6 commit 0e8cf20

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/release_helper/python.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
_BRANCH_ATTENTION = 'base-branch-attention'
1818
_7_DAY_ATTENTION = '7days attention'
1919
_MultiAPI = 'MultiAPI'
20+
_ON_TIME = 'on time'
2021
# record published issues
2122
_FILE_OUT = 'published_issues_python.csv'
2223

@@ -110,6 +111,10 @@ def attention_policy(self):
110111
if _BRANCH_ATTENTION in self.issue_package.labels_name:
111112
self.bot_advice.append('new version is 0.0.0, please check base branch!')
112113

114+
def on_time_policy(self):
115+
if _ON_TIME in self.issue_package.labels_name:
116+
self.bot_advice.append('on time')
117+
113118
def remind_policy(self):
114119
if self.delay_time >= 15 and _7_DAY_ATTENTION in self.issue_package.labels_name and self.date_from_target < 0:
115120
self.comment(
@@ -126,6 +131,7 @@ def auto_bot_advice(self):
126131
super().auto_bot_advice()
127132
self.multi_api_policy()
128133
self.attention_policy()
134+
self.on_time_policy()
129135
self.remind_policy()
130136

131137

0 commit comments

Comments
 (0)