|
@@ -25,19 +25,7 @@ class BintrayAPI(requests.Session):
|
|
|
'desc': 'Automated release for {}: {}'.format(NAME, repo_name),
|
|
|
'labels': ['docker-compose', 'docker', 'release-bot'],
|
|
|
}
|
|
|
- result = self.post_json(url, data)
|
|
|
- result.raise_for_status()
|
|
|
- return result
|
|
|
-
|
|
|
- def repository_exists(self, subject, repo_name):
|
|
|
- url = '{base}/repos/{subject}/{repo_name}'.format(
|
|
|
- base=self.base_url, subject=subject, repo_name=repo_name,
|
|
|
- )
|
|
|
- result = self.get(url)
|
|
|
- if result.status_code == 404:
|
|
|
- return False
|
|
|
- result.raise_for_status()
|
|
|
- return True
|
|
|
+ return self.post_json(url, data)
|
|
|
|
|
|
def delete_repository(self, subject, repo_name):
|
|
|
url = '{base}/repos/{subject}/{repo_name}'.format(
|