mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 09:02:10 +00:00
Merge branch 'develop'
This commit is contained in:
commit
73a6593fb9
@ -27,12 +27,20 @@ def release(bench_path, app, bump_type, develop='develop', master='master',
|
|||||||
repo_name=repo_name, remote=remote)
|
repo_name=repo_name, remote=remote)
|
||||||
|
|
||||||
def validate(bench_path):
|
def validate(bench_path):
|
||||||
if not get_config(bench_path).get('release_bench'):
|
config = get_config(bench_path)
|
||||||
|
if not config.get('release_bench'):
|
||||||
print 'bench not configured to release'
|
print 'bench not configured to release'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
global github_username, github_password
|
global github_username, github_password
|
||||||
|
|
||||||
|
github_username = config.get('github_username')
|
||||||
|
github_password = config.get('github_password')
|
||||||
|
|
||||||
|
if not github_username:
|
||||||
github_username = raw_input('Username: ')
|
github_username = raw_input('Username: ')
|
||||||
|
|
||||||
|
if not github_password:
|
||||||
github_password = getpass.getpass()
|
github_password = getpass.getpass()
|
||||||
|
|
||||||
r = requests.get('https://api.github.com/user', auth=HTTPBasicAuth(github_username, github_password))
|
r = requests.get('https://api.github.com/user', auth=HTTPBasicAuth(github_username, github_password))
|
||||||
|
Loading…
Reference in New Issue
Block a user