Skip to content

Commit

Permalink
Fix issue in create-github-release with typer usage.
Browse files Browse the repository at this point in the history
Fixes #23
  • Loading branch information
jaraco committed Aug 21, 2024
1 parent d7343b0 commit 27cbe81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jaraco/develop/create-github-release.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import typer
from jaraco.ui.main import main
from typing_extensions import Annotated

from . import github, repo


@main
def run(project: github.Repo = github.Repo.detect()):
def run(
project: Annotated[
github.Repo, typer.Option(parser=github.Repo)
] = github.Repo.detect(),
):
md = repo.get_project_metadata()
project.create_release(tag=f'v{md.version}')
1 change: 1 addition & 0 deletions newsfragments/23.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix issue in create-github-release with typer usage.

0 comments on commit 27cbe81

Please sign in to comment.