-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from fcollonval/fix/restore-since
Restore capture of since parameter
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
# Copyright (c) Jupyter Development Team. | ||
# Distributed under the terms of the Modified BSD License. | ||
import os | ||
|
||
from jupyter_releaser.util import CHECKOUT_NAME | ||
from jupyter_releaser.util import get_latest_tag | ||
from jupyter_releaser.util import log | ||
from jupyter_releaser.util import run | ||
|
||
run("jupyter-releaser prep-git") | ||
|
||
# Capture the "since" argument in case we add tags befor checking changelog | ||
# Do this before bumping the version | ||
if not os.environ.get("RH_SINCE"): | ||
curr_dir = os.getcwd() | ||
os.chdir(CHECKOUT_NAME) | ||
since = get_latest_tag(os.environ["RH_BRANCH"]) or "" | ||
if since: | ||
log(f"Capturing {since} in RH_SINCE variable") | ||
os.environ["RH_SINCE"] = since | ||
os.chdir(curr_dir) | ||
|
||
run("jupyter-releaser bump-version") | ||
run("jupyter-releaser build-changelog") | ||
run("jupyter-releaser draft-changelog") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters