File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Copyright (c) Jupyter Development Team.
2
2
# Distributed under the terms of the Modified BSD License.
3
+ import os
4
+
5
+ from jupyter_releaser .util import CHECKOUT_NAME
6
+ from jupyter_releaser .util import get_latest_tag
7
+ from jupyter_releaser .util import log
3
8
from jupyter_releaser .util import run
4
9
5
10
run ("jupyter-releaser prep-git" )
11
+
12
+ # Capture the "since" argument in case we add tags befor checking changelog
13
+ # Do this before bumping the version
14
+ if not os .environ .get ("RH_SINCE" ):
15
+ curr_dir = os .getcwd ()
16
+ os .chdir (CHECKOUT_NAME )
17
+ since = get_latest_tag (os .environ ["RH_BRANCH" ]) or ""
18
+ if since :
19
+ log (f"Capturing { since } in RH_SINCE variable" )
20
+ os .environ ["RH_SINCE" ] = since
21
+ os .chdir (curr_dir )
22
+
6
23
run ("jupyter-releaser bump-version" )
7
24
run ("jupyter-releaser build-changelog" )
8
25
run ("jupyter-releaser draft-changelog" )
Original file line number Diff line number Diff line change 33
33
34
34
run ("jupyter-releaser prep-git" )
35
35
36
- # Capture the "since" argument in case we add tags before the second
37
- # "Check Changelog"
36
+ # Capture the "since" argument in case we add tags befor checking changelog
38
37
# Do this before bumping the version
39
38
if not os .environ .get ("RH_SINCE" ):
40
39
curr_dir = os .getcwd ()
You can’t perform that action at this time.
0 commit comments