Skip to content

create_github_release.py sets release title to bare "v${version}" and never adds a PyPI badge #6

Description

@konard

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions