Skip to content

Commit e5b6d4f

Browse files
committed
store ref in metadata file
1 parent 4634184 commit e5b6d4f

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

jupyter_releaser/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ def draft_changelog(
376376
"""Create a changelog entry PR"""
377377
lib.draft_changelog(
378378
version_spec,
379+
ref,
379380
branch,
380381
repo,
381382
since,

jupyter_releaser/lib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ def check_links(ignore_glob, ignore_links, cache_file, links_expire):
109109

110110
def draft_changelog(
111111
version_spec,
112+
ref,
112113
branch,
113114
repo,
114115
since,
@@ -157,6 +158,7 @@ def draft_changelog(
157158

158159
data = dict(
159160
version_spec=version_spec,
161+
ref=ref,
160162
branch=branch,
161163
repo=repo,
162164
since=since,

jupyter_releaser/util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,8 @@ def extract_metadata_from_release_url(gh, release_url, auth):
469469
os.environ["RH_BRANCH"] = data["branch"]
470470
if "since" in data:
471471
os.environ["RH_SINCE"] = data["since"]
472+
if 'ref' in data:
473+
os.environ["RH_REF"] = data["ref"]
472474
if "since_last_stable" in data:
473475
os.environ["RH_SINCE_LAST_STABLE"] = str(data["since_last_stable"])
474476

0 commit comments

Comments
 (0)