|
217 | 217 | # Submit blog post (if it doesn't already exist) (in draft mode)
|
218 | 218 | auth = HTTPBasicAuth(os.getenv('OPENSHOT_ORG_USER'), os.getenv('OPENSHOT_ORG_PASS'))
|
219 | 219 | r = post("https://www.openshot.org/api/release/submit/", auth=auth, data={ "version": github_release.tag_name,
|
220 |
| - "changelog": combined_log_markdown }) |
| 220 | + "changelog": log_title + combined_log_markdown }) |
221 | 221 | if not r.ok:
|
222 |
| - raise Exception("HTTP post to openshot.org/api/release/submit/ failed: %s (user: %s)" % (r.status_code, os.getenv('OPENSHOT_ORG_USER'))) |
| 222 | + raise Exception("HTTP post to openshot.org/api/release/submit/ failed: %s (user: %s): %s" % |
| 223 | + (r.status_code, os.getenv('OPENSHOT_ORG_USER'), |
| 224 | + r.json().get('message', 'no error message found'))) |
223 | 225 | else:
|
224 | 226 | # Publish the release (make new version visible on openshot.org, and make blog post visible)
|
225 | 227 | auth = HTTPBasicAuth(os.getenv('OPENSHOT_ORG_USER'), os.getenv('OPENSHOT_ORG_PASS'))
|
226 | 228 | r = post("https://www.openshot.org/api/release/publish/", auth=auth, data={"version": github_release.tag_name })
|
227 | 229 | if not r.ok:
|
228 |
| - raise Exception("HTTP post to openshot.org/api/release/publish/ failed: %s (user: %s)" % (r.status_code, os.getenv('OPENSHOT_ORG_USER'))) |
| 230 | + raise Exception("HTTP post to openshot.org/api/release/publish/ failed: %s (user: %s): %s" % |
| 231 | + (r.status_code, os.getenv('OPENSHOT_ORG_USER'), |
| 232 | + r.json().get('message', 'no error message found'))) |
229 | 233 |
|
230 | 234 | for repo_name in repo_names:
|
231 | 235 | # If NO release is found, create a new one
|
|
0 commit comments