Compare commits

..
2 Commits
Author SHA1 Message Date
jt 606d89ed29 Merge pull request 'fix: apply release prefix and ticket detection to single-commit PR titles' (#19) from bugfix/pr-title-single-commit into main
Publish to PyPI / Publish-to-PyPI (push) Failing after 14s
Reviewed-on: #19
2026-09-17 14:25:21 +00:00
Jonathan Teran 7bca4ba85c fix: apply release prefix and ticket detection to single-commit PR titles
The single-commit branch of the title generation logic used the raw
commit message verbatim, bypassing the release-branch prefix and
branch-ticket detection entirely. Both are now applied on top of the
commit message when there's only one commit.
2026-09-17 11:10:16 -03:00
3 changed files with 7 additions and 32 deletions
-21
View File
@@ -1,24 +1,3 @@
## v1.21.3 - 2026-09-18
- **bugfix**: muevo titulo de error al panel, agrego repositorio a gitlab error [[jteran](mailto:jteran@renatre.org.ar)] (ce1ab99)
---
## v1.21.2 - 2026-09-18
- **bugfix**: agrego informacion de traceback para errores de GitFlow [[jteran](mailto:jteran@renatre.org.ar)] (8a4cf6e)
---
## v1.21.1 - 2026-09-17
- **bugfix**: apply release prefix and ticket detection to single-commit PR titles [[jteran](mailto:jteran@renatre.org.ar)] (e0200e3)
---
## v1.21.0 - 2026-09-17
- **feature**: downgrade python version for better compatibility [[jteran](mailto:jteran@renatre.org.ar)] (55172bd)
+6 -10
View File
@@ -1,12 +1,10 @@
#!/usr/bin/env python3
import traceback
from subprocess import SubprocessError
import typer
from git_flow import GitFlowError
from git_flow.command import base, branch, commit, init, merge, new, release, tag
import git_flow.command.base as base
from git_flow.command import init, new, commit, merge, tag, release, branch
REPOSITORY_TOKEN_PATH = ".repository-token"
LOCALE = "es_AR.UTF-8"
@@ -27,10 +25,8 @@ def main():
app()
print()
except GitFlowError as e:
lines = [str(e), ""]
lines += traceback.format_exception(e)
base.io_error("".join(lines), title="Git Flow")
except SubprocessError as e:
base.io_error(str(e), title="Comando")
except KeyboardInterrupt:
base.io_error(str(e), title="Git Flow")
except Exception as e:
base.io_error(str(e), title="Inesperado")
except KeyboardInterrupt as e:
base.io_error("Ejecución abortada")
+1 -1
View File
@@ -45,7 +45,7 @@ class GitlabRemoteAPI(RemoteAPI):
if response.ok:
return "Tag creado exitosamente: " + tag
else:
raise GitFlowError("Ocurrió un error al crear el tag para repositorio " + quote(self.repository, safe="") + ": " + response.text)
raise GitFlowError("Ocurrió un error al crear el tag: " + response.text)
def get_endpoint(self, resource: str) -> str:
project_id = quote(self.repository, safe="")