heitorpolidoro / bartholomew-smith

Your butler for managing your GitHub repositories
https://bartholomew-smith.vercel.app
MIT License
1 stars 0 forks source link

Tratar error de tag existente #233

Open heitorpolidoro opened 5 months ago

heitorpolidoro commented 5 months ago

Traceback (most recent call last): File "/var/task/githubapp/webhook_handler.py", line 138, in handle handler(event) File "./app.py", line 72, in handle_check_suite_requested release_manager.manage(event) File "/var/task/githubapp/config.py", line 105, in wrapper return method(*args, *kwargs) File "/var/task/src/managers/release_manager.py", line 65, in manage repository.create_git_release( File "/var/task/github/Repository.py", line 1312, in create_git_release headers, data = self._requester.requestJsonAndCheck("POST", f"{self.url}/releases", input=post_parameters) File "/var/task/github/Requester.py", line 548, in requestJsonAndCheck return self.__check(self.requestJson(verb, url, parameters, headers, input, self.customConnection(url))) File "/var/task/github/Requester.py", line 609, in check raise self.createException(status, responseHeaders, data) github.GithubException.GithubException: 422 {"message": "Validation Failed", "errors": [{"resource": "Release", "code": "already_exists", "field": "tag_name"}], "documentation_url": "https://docs.github.com/rest/releases/releases#create-a-release"}