2
0
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:
Rushabh Mehta 2016-07-26 09:22:09 +05:30
commit 73a6593fb9

View File

@ -27,12 +27,20 @@ def release(bench_path, app, bump_type, develop='develop', master='master',
repo_name=repo_name, remote=remote)
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'
sys.exit(1)
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: ')
if not github_password:
github_password = getpass.getpass()
r = requests.get('https://api.github.com/user', auth=HTTPBasicAuth(github_username, github_password))