Skip to content

Commit e9d498b

Browse files
authored
Pass the authentication to format_pr_entry (#489)
Fixes #490
1 parent dcaef66 commit e9d498b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

jupyter_releaser/changelog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def get_version_entry(
126126
# Look for a backport, either manual or automatic.
127127
match = re.search(r"Backport PR #(\d+) on branch", line)
128128
if match:
129-
entry[ind] = format_pr_entry(repo, match.groups()[0], dry_run=dry_run)
129+
entry[ind] = format_pr_entry(repo, match.groups()[0], auth=auth, dry_run=dry_run)
130130

131131
# Remove github actions PRs
132132
gh_actions = "[@github-actions](https://github.com/github-actions)"

jupyter_releaser/lib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from glob import glob
1313
from pathlib import Path
1414
from subprocess import CalledProcessError
15+
from typing import Type, Union
1516

1617
import mdformat
1718
from packaging.version import parse as parse_version
@@ -355,6 +356,7 @@ def publish_assets(
355356
util.log(f"Handling dist file {path}")
356357
suffix = Path(path).suffix
357358
if suffix in [".gz", ".whl"]:
359+
dist: Union[Type[SDist], Type[Wheel]]
358360
if suffix == ".gz":
359361
dist = SDist
360362
else:

0 commit comments

Comments
 (0)