Skip to content

Commit

Permalink
Merge pull request Azure#28 from msyyc/helper-update-1
Browse files Browse the repository at this point in the history
update
  • Loading branch information
RAY-316 authored Nov 30, 2021
2 parents 971b310 + bdeabc3 commit 3d466ae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions scripts/release_helper/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import time
from github import Github
from github.Repository import Repository
import subprocess as sp

_LOG = logging.getLogger(__name__)

Expand Down Expand Up @@ -247,6 +248,10 @@ def output_python(self, item):
self.date_from_target
)

def push_md_to_storage(self):
cmd_list = ['git add .', 'git commit -m \"update excel\"', 'git push -f origin HEAD']
[sp.check_call(cmd, shell=True) for cmd in cmd_list]

def run(self):
items = []
for item in self.issues_package:
Expand All @@ -257,6 +262,7 @@ def run(self):
except Exception as e:
_LOG.error(f'Error happened during handling issue {item.issue.number}: {e}')
self.output_python_md(items)
self.push_md_to_storage()


def common_process(issues: List[IssuePackage]):
Expand Down
4 changes: 2 additions & 2 deletions scripts/release_helper/go.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class IssueProcessGo(IssueProcess):


class Go(Common):
def __init__(self):
super(Go, self).__init__()
def __init__(self, issues, assignee_token, language_owner):
super(Go, self).__init__(issues, assignee_token, language_owner)
self.file_out_name = 'release_go_status.md'


Expand Down
4 changes: 2 additions & 2 deletions scripts/release_helper/js.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class IssueProcessJs(IssueProcess):


class Js(Common):
def __init__(self):
super(Js, self).__init__()
def __init__(self, issues, assignee_token, language_owner):
super(Js, self).__init__(issues, assignee_token, language_owner)
self.file_out_name = 'release_js_status.md'


Expand Down

0 comments on commit 3d466ae

Please sign in to comment.