Summary
scripts/create_github_release.py builds tag = f"v{version}" and passes --title tag, so multi-language repos cannot prefix the title with [Python]. There is also no shields.io PyPI badge appended to the release body — format_release_notes.py adds one when called separately, but the release-creation script alone produces a release with no badge.
Evidence
In the current template:
https://github.com/link-foundation/python-ai-driven-development-pipeline-template/blob/main/scripts/create_github_release.py#L78-L93
tag = f"v{version}"
...
cmd = [
"gh",
"release",
"create",
tag,
"--repo",
repository,
"--title",
tag,
...
]
There is no --tag-prefix argument and no --language argument, so a multi-language repo cannot produce [Python] 1.2.3 titles or python_v1.2.3 tags.
Expected Behavior
- Accept a
--tag-prefix argument (default v).
- Accept a
--language argument (default Python).
- Set the release title to
[{language}] {semver}.
- Optionally append a
https://img.shields.io/badge/pypi-{semver}-blue.svg badge if the body has no img.shields.io reference yet (mirrors format_release_notes.py).
Suggested Fix
The fix used in the consumer repo:
link-foundation/lino-objects-codec#34
Tracking issue in the consumer repository: link-foundation/lino-objects-codec#33
Summary
scripts/create_github_release.pybuildstag = f"v{version}"and passes--title tag, so multi-language repos cannot prefix the title with[Python]. There is also no shields.io PyPI badge appended to the release body —format_release_notes.pyadds one when called separately, but the release-creation script alone produces a release with no badge.Evidence
In the current template:
https://github.com/link-foundation/python-ai-driven-development-pipeline-template/blob/main/scripts/create_github_release.py#L78-L93
There is no
--tag-prefixargument and no--languageargument, so a multi-language repo cannot produce[Python] 1.2.3titles orpython_v1.2.3tags.Expected Behavior
--tag-prefixargument (defaultv).--languageargument (defaultPython).[{language}] {semver}.https://img.shields.io/badge/pypi-{semver}-blue.svgbadge if the body has noimg.shields.ioreference yet (mirrorsformat_release_notes.py).Suggested Fix
The fix used in the consumer repo:
link-foundation/lino-objects-codec#34
Tracking issue in the consumer repository: link-foundation/lino-objects-codec#33