File tree Expand file tree Collapse file tree 4 files changed +17
-7
lines changed Expand file tree Collapse file tree 4 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 7
7
required : true
8
8
branch :
9
9
description : The branch or reference name to filter pull requests by
10
- required : false
10
+ required : true
11
11
convert_to_rst :
12
12
description : Whether to convert to RST
13
13
required : false
53
53
export RH_SINCE=${{ github.event.inputs.since }}
54
54
export RH_REF=refs/heads/${RH_BRANCH}
55
55
export RH_REPOSITORY=${{ github.event.inputs.target }}
56
- export INPUT_UNTIL =${{ github.event.inputs.until }}
57
- export INPUT_CONVERT_TO_RST =${{ github.event.inputs.convert_to_rst }}
56
+ export RH_UNTIL =${{ github.event.inputs.until }}
57
+ export RH_CONVERT_TO_RST =${{ github.event.inputs.convert_to_rst }}
58
58
python -m jupyter_releaser.actions.generate-changelog
59
59
cat CHANGELOG_ENTRY.md
60
60
- uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change @@ -126,14 +126,22 @@ jobs:
126
126
RH_REPOSITORY : jupyter-server/jupyter_releaser
127
127
RH_BRANCH : master
128
128
RH_SINCE : v0.3.0
129
- INPUT_UNTIL : v0.4.0
129
+ RH_UNTIL : v0.4.0
130
130
run : |
131
131
set -eux
132
132
python -m jupyter_releaser.actions.generate-changelog
133
133
cat CHANGELOG_ENTRY.md
134
134
# Check for version entry in between the two versions and one outside
135
135
cat CHANGELOG_ENTRY.md | grep -q "#95"
136
136
cat CHANGELOG_ENTRY.md | grep -q "compare/v0.3.0...v0.4.0"
137
+ # make sure it works with different settings
138
+ export RH_SINCE=
139
+ export RH_UNTIL=
140
+ export RH_CONVERT_TO_RST=true
141
+ sudo apt-get install pandoc
142
+ pip install pypandoc
143
+ python -m jupyter_releaser.actions.generate-changelog
144
+ cat CHANGELOG_ENTRY.md
137
145
- name : Coverage
138
146
run : |
139
147
codecov
Original file line number Diff line number Diff line change 9
9
branch = os .environ .get ("RH_BRANCH" )
10
10
ref = os .environ .get ("RH_REF" )
11
11
since = os .environ .get ("RH_SINCE" )
12
- until = os .environ .get ("INPUT_UNTIL " )
13
- convert_to_rst = os .environ .get ("INPUT_CONVERT_TO_RST " , "" )
12
+ until = os .environ .get ("RH_UNTIL " )
13
+ convert_to_rst = os .environ .get ("RH_CONVERT_TO_RST " , "" )
14
14
15
15
print ("Generating changelog" )
16
16
print ("target:" , target )
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ def get_version_entry(
65
65
The new version
66
66
since: str
67
67
Use PRs with activity since this date or git reference
68
- until: str, option
68
+ until: str, optional
69
69
Use PRs until this date or git reference
70
70
auth : str, optional
71
71
The GitHub authorization token
@@ -90,6 +90,8 @@ def get_version_entry(
90
90
91
91
if until :
92
92
until = until .replace ("%" , "" )
93
+ else :
94
+ until = None
93
95
94
96
md = generate_activity_md (
95
97
repo ,
You can’t perform that action at this time.
0 commit comments