Skip to content

Commit

Permalink
[Script] Release helper: add version and stable in recorded csv (#25362)
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 <[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

* add version and is_stable

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]>
  • Loading branch information
5 people authored Jul 22, 2022
1 parent 3da721f commit 106ab45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/release_helper/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def auto_close(self) -> None:
self.add_label(AUTO_CLOSE_LABEL)
self.is_open = False
self.log(f"{self.issue_package.issue.number} has been closed!")
record_release(self.package_name, self.issue_package.issue, _FILE_OUT)
record_release(self.package_name, self.issue_package.issue, _FILE_OUT, last_version)

def run(self) -> None:
self.get_package_and_output()
Expand Down
5 changes: 3 additions & 2 deletions scripts/release_helper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,13 @@ def run_pipeline(issue_link, pipeline_url, spec_readme, python_tag=""):
return result.state == 'inProgress'


def record_release(package_name: str, issue_info: Any, file: str) -> None:
def record_release(package_name: str, issue_info: Any, file: str, version: str) -> None:
created_at = issue_info.created_at.strftime('%Y-%m-%d')
closed_at = issue_info.closed_at.strftime('%Y-%m-%d')
assignee = issue_info.assignee.login
link = issue_info.html_url
closed_issue_info = f'{package_name},{assignee},{created_at},{closed_at},{link}\n'
is_stable = True if 'b' not in version else ''
closed_issue_info = f'{package_name},{assignee},{created_at},{closed_at},{link},{version},{is_stable}\n'
with open(file, 'r') as file_read:
lines = file_read.readlines()
with open(file, 'w') as file_write:
Expand Down

0 comments on commit 106ab45

Please sign in to comment.