File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
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 7
7
8
8
from jupyter_releaser .changelog import extract_current
9
9
from jupyter_releaser .util import CHECKOUT_NAME
10
+ from jupyter_releaser .util import get_latest_tag
10
11
from jupyter_releaser .util import log
11
12
from jupyter_releaser .util import run
12
13
31
32
run ("pip install -q -e ." )
32
33
33
34
run ("jupyter-releaser prep-git" )
35
+
36
+ # Capture the "since" argument in case we add tags befor checking changelog
37
+ # Do this before bumping the version
38
+ if not os .environ .get ("RH_SINCE" ):
39
+ curr_dir = os .getcwd ()
40
+ os .chdir (CHECKOUT_NAME )
41
+ since = get_latest_tag (os .environ ["RH_BRANCH" ]) or ""
42
+ if since :
43
+ log (f"Capturing { since } in RH_SINCE variable" )
44
+ os .environ ["RH_SINCE" ] = since
45
+ os .chdir (curr_dir )
46
+
34
47
run ("jupyter-releaser bump-version" )
35
48
36
49
if check_release :
You can’t perform that action at this time.
0 commit comments