Skip to content

Commit

Permalink
[Release helper] add on time policy (Azure#25338)
Browse files Browse the repository at this point in the history
* 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 <yuchaoyan@microsoft.com>

* 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 <yuchaoyan@microsoft.com>

* add multi api policy

* add tag inconsystency

* add specified tag

* Update scripts/release_helper/python.py

Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>

* update

* update multiapi policy

* update on time

* Update python.py

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Co-authored-by: Zed <601306339@qq.com>
Co-authored-by: Yiming Lei <59104634+RAY-316@users.noreply.github.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
  • Loading branch information
5 people authored and jeremydvoss committed Jul 21, 2022
1 parent dfc1a3c commit de2e1f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/release_helper/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
_BRANCH_ATTENTION = 'base-branch-attention'
_7_DAY_ATTENTION = '7days attention'
_MultiAPI = 'MultiAPI'
_ON_TIME = 'on time'
# record published issues
_FILE_OUT = 'published_issues_python.csv'

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

def on_time_policy(self):
if _ON_TIME in self.issue_package.labels_name:
self.bot_advice.append('on time')

def remind_policy(self):
if self.delay_time >= 15 and _7_DAY_ATTENTION in self.issue_package.labels_name and self.date_from_target < 0:
self.comment(
Expand All @@ -126,6 +131,7 @@ def auto_bot_advice(self):
super().auto_bot_advice()
self.multi_api_policy()
self.attention_policy()
self.on_time_policy()
self.remind_policy()


Expand Down

0 comments on commit de2e1f0

Please sign in to comment.