From 2b2b431486d961a6593478132686fe3a2b5cec0d Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 26 May 2017 09:10:26 -0700 Subject: [PATCH] Create prereleases by default --- script/upload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/upload.py b/script/upload.py index ea5e8eca3c2f..e3762b80395d 100755 --- a/script/upload.py +++ b/script/upload.py @@ -182,7 +182,7 @@ def create_or_get_release_draft(github, releases, tag, tag_exists): def create_release_draft(github, tag): - name = '{0} {1}'.format(PROJECT_NAME, tag) + name = '{0} {1} beta'.format(PROJECT_NAME, tag) if os.environ.has_key('CI'): body = '(placeholder)' else: @@ -191,7 +191,7 @@ def create_release_draft(github, tag): sys.stderr.write('Quit due to empty release note.\n') sys.exit(0) - data = dict(tag_name=tag, name=name, body=body, draft=True) + data = dict(tag_name=tag, name=name, body=body, draft=True, prerelease=True) r = github.repos(ELECTRON_REPO).releases.post(data=data) return r