Skip to content

Commit

Permalink
Merge pull request #31 from RAY-316/helper-update-2
Browse files Browse the repository at this point in the history
update
  • Loading branch information
RAY-316 authored Dec 1, 2021
2 parents 5c4b139 + 65cd109 commit e901ee2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 3 additions & 5 deletions scripts/release_helper/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,8 @@ def output_python(self, item):
self.date_from_target
)

def push_md_to_storage(self):
with open('release_js_status.md','r') as f :
print(f.read(),'++++++++++++++++++')
@staticmethod
def push_md_to_storage():
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]

Expand All @@ -263,8 +262,7 @@ def run(self):
except Exception as e:
_LOG.error(f'Error happened during handling issue {item.issue.number}: {e}')
self.output_md(items)
print(os.listdir('.'),os.getcwd(),'+++++++++++')
self.push_md_to_storage()



def common_process(issues: List[IssuePackage]):
Expand Down
3 changes: 2 additions & 1 deletion scripts/release_helper/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from go import go_process
from java import java_process
from js import js_process
from common import common_process
from common import common_process, Common

import os
from typing import List
Expand Down Expand Up @@ -54,6 +54,7 @@ def main():
for language in languages:
language_issues = select_language_issues(issues, language)
languages[language](language_issues)
Common.push_md_to_storage()


if __name__ == '__main__':
Expand Down

0 comments on commit e901ee2

Please sign in to comment.