Skip to content

Commit 106ab45

Browse files
BigCat20196msyycRAY-316
authored
[Script] Release helper: add version and stable in recorded csv (Azure#25362)
* 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 * add version and is_stable 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>
1 parent 3da721f commit 106ab45

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

scripts/release_helper/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def auto_close(self) -> None:
146146
self.add_label(AUTO_CLOSE_LABEL)
147147
self.is_open = False
148148
self.log(f"{self.issue_package.issue.number} has been closed!")
149-
record_release(self.package_name, self.issue_package.issue, _FILE_OUT)
149+
record_release(self.package_name, self.issue_package.issue, _FILE_OUT, last_version)
150150

151151
def run(self) -> None:
152152
self.get_package_and_output()

scripts/release_helper/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,13 @@ def run_pipeline(issue_link, pipeline_url, spec_readme, python_tag=""):
117117
return result.state == 'inProgress'
118118

119119

120-
def record_release(package_name: str, issue_info: Any, file: str) -> None:
120+
def record_release(package_name: str, issue_info: Any, file: str, version: str) -> None:
121121
created_at = issue_info.created_at.strftime('%Y-%m-%d')
122122
closed_at = issue_info.closed_at.strftime('%Y-%m-%d')
123123
assignee = issue_info.assignee.login
124124
link = issue_info.html_url
125-
closed_issue_info = f'{package_name},{assignee},{created_at},{closed_at},{link}\n'
125+
is_stable = True if 'b' not in version else ''
126+
closed_issue_info = f'{package_name},{assignee},{created_at},{closed_at},{link},{version},{is_stable}\n'
126127
with open(file, 'r') as file_read:
127128
lines = file_read.readlines()
128129
with open(file, 'w') as file_write:

0 commit comments

Comments
 (0)