-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scripts: script update must be approved #6
base: master
Are you sure you want to change the base?
Conversation
4fed729
to
60333a0
Compare
60333a0
to
ee61698
Compare
ee61698
to
1e6841a
Compare
scripts/run_bp.py
Outdated
_SCRIPT_APPROVE_PATH_TMPL = _SCRIPT_PATH + '.%s' | ||
_SCRIPT_APPROVE_SRC_TMPL = ('https://raw.githubusercontent.com/' | ||
'%s/%s/%%s/%s' % (_SCRIPT_ORG, _SCRIPT_REPO, _SCRIPT_APPROVE_PATH_TMPL)) | ||
_SCRIPT_APPROVER = ['aitjcize', 'popodidi', 'JM00oo', 'Spiderpowa'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove popodidi
...
scripts/run_bp.py
Outdated
@@ -155,20 +165,79 @@ def check_environment(): | |||
'system time') | |||
|
|||
|
|||
def github_get_commits(path): | |||
return '%s/repos/%s/%s/commits?path=%s&sha=%s' % (_GITHUB_API, _SCRIPT_ORG, _SCRIPT_REPO, path, _SCRIPT_BRANCH) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please check 80 line alignment for all changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also the sha=%s
's argument is _SCRIPT_BRANCH
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sha
parameter takes branch as well.
scripts/run_bp.py
Outdated
|
||
|
||
def github_get_approved_commit(commit, approver): | ||
with urllib.request.urlopen(github_get_commits(_SCRIPT_APPROVE_PATH_TMPL % approver), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
won't this take a long time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's pretty fast
scripts/run_bp.py
Outdated
@@ -155,20 +165,79 @@ def check_environment(): | |||
'system time') | |||
|
|||
|
|||
def github_get_commits(path): | |||
return '%s/repos/%s/%s/commits?path=%s&sha=%s' % (_GITHUB_API, _SCRIPT_ORG, _SCRIPT_REPO, path, _SCRIPT_BRANCH) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also the sha=%s
's argument is _SCRIPT_BRANCH
?
Several changes:
run_bp.py.sha1
file.