Skip to content

Commit 5382e2d

Browse files
committed
Improve changelog format and add publish release action
1 parent 7469cb1 commit 5382e2d

File tree

2 files changed

+86
-42
lines changed

2 files changed

+86
-42
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,23 @@ on:
1111
jobs:
1212
deploy:
1313
runs-on: ubuntu-latest
14+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1415
steps:
1516
- uses: actions/checkout@v2
1617
- uses: actions/setup-node@v2
1718
with:
18-
node-version: 14
19+
node-version: 16
1920
cache: "npm"
2021
- run: npm ci
22+
- name: GitHub Release
23+
uses: softprops/action-gh-release@v1
24+
with:
25+
generate_release_notes: true
26+
body: |
27+
# Summary
28+
See [changelog](https://github.com/NilsJPWerner/autoDocstring/blob/master/CHANGELOG.md)
29+
name: ${{ github.ref_name }}
30+
fail_on_unmatched_files: true
2131
- name: Publish to Visual Studio Marketplace
2232
uses: HaaLeo/publish-vscode-extension@v1
2333
with:

CHANGELOG.md

Lines changed: 75 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,109 +1,143 @@
11
# Change Log
22

3-
## [0.6.1] - 2022-02-15
3+
## Unreleased
4+
5+
[All Changes](https://github.com/NilsJPWerner/autoDocstring/compare/v0.6.1...master)
6+
7+
## [0.6.1](https://github.com/NilsJPWerner/autoDocstring/tree/v0.6.1) - 2022-02-15
48

59
- Rename oneline-rst to one-line-sphinx
610
- Remove oneline-rst-notypes as provided format
7-
- Documentation: Add examples of docstrings formats #224
11+
- Documentation: Add examples of docstrings formats ([#224](https://github.com/NilsJPWerner/autoDocstring/issues/224))
12+
13+
[All Changes](https://github.com/NilsJPWerner/autoDocstring/compare/v0.5.4...v0.6.0)
814

9-
## [0.6.0] - 2022-02-13
15+
## [0.6.0](https://github.com/NilsJPWerner/autoDocstring/tree/v0.6.0) - 2022-02-13
1016

11-
- Added one line sphinx format support #169 (@sam-hoffman @afarntrog)
12-
- Switched to github actions #214 (@s-weigand)
13-
- Switched placeholder wrapper from square brackets to underscore #220
14-
- Add untyped versions of docstring formats #209 (@Lef-F)
15-
- Updated javascript dependencies #222
17+
- Added one line sphinx format support ([#169](https://github.com/NilsJPWerner/autoDocstring/issues/169)) (@sam-hoffman @afarntrog)
18+
- Switched to github actions ([#214](https://github.com/NilsJPWerner/autoDocstring/issues/214)) (@s-weigand)
19+
- Switched placeholder wrapper from square brackets to underscore ([#220](https://github.com/NilsJPWerner/autoDocstring/issues/220))
20+
- Add untyped versions of docstring formats ([#209](https://github.com/NilsJPWerner/autoDocstring/issues/209)) (@Lef-F)
21+
- Updated javascript dependencies ([#222](https://github.com/NilsJPWerner/autoDocstring/issues/222))
1622
- Added more extensive debug logging
17-
- Added PEP 604 type hint support for pipes #218 (@s-weigand)
18-
- Fixed bug: Broken quoted type hint forward references #157 (@IniasP)
19-
- Fixed bug: Extra underscore in numpy template #216 (@s-weigand)
20-
- Fixed bug: Extra newlines between sections in some cases #203 (@shaperilio)
21-
- Fixed bug: Incorrectly parses Literal type hints #223
22-
- Documentation: Quotes clarification #211 (@johschmitz)
23+
- Added PEP 604 type hint support for pipes ([#218](https://github.com/NilsJPWerner/autoDocstring/issues/218)) (@s-weigand)
24+
- Fixed bug: Broken quoted type hint forward references ([#157](https://github.com/NilsJPWerner/autoDocstring/issues/157)) (@IniasP)
25+
- Fixed bug: Extra underscore in numpy template ([#216](https://github.com/NilsJPWerner/autoDocstring/issues/216)) (@s-weigand)
26+
- Fixed bug: Extra newlines between sections in some cases ([#203](https://github.com/NilsJPWerner/autoDocstring/issues/203)) (@shaperilio)
27+
- Fixed bug: Incorrectly parses Literal type hints ([#223](https://github.com/NilsJPWerner/autoDocstring/issues/223))
28+
- Documentation: Quotes clarification ([#211](https://github.com/NilsJPWerner/autoDocstring/issues/211)) (@johschmitz)
29+
30+
[All Changes](https://github.com/NilsJPWerner/autoDocstring/compare/v0.5.4...v0.6.0)
31+
32+
## [0.5.4](https://github.com/NilsJPWerner/autoDocstring/tree/v0.5.4) - 2020-11-17
2333

24-
## [0.5.4] - 2020-11-17
34+
- Added Starlark support ([#139](https://github.com/NilsJPWerner/autoDocstring/issues/139)) (@UebelAndre)
35+
- Fixed bug: Ignore "raise" in comments ([#138](https://github.com/NilsJPWerner/autoDocstring/issues/138)) (@bastienboutonnet)
36+
- Fixed bug: Discard lines that are only comments ([#146](https://github.com/NilsJPWerner/autoDocstring/issues/146)) (@HaaLeo)
2537

26-
- Added Starlark support #139 (@UebelAndre)
27-
- Fixed bug: Ignore "raise" in comments #138 (@bastienboutonnet)
28-
- Fixed bug: Discard lines that are only comments #146 (@HaaLeo)
38+
[All Changes](https://github.com/NilsJPWerner/autoDocstring/compare/v0.5.3...v0.5.4)
2939

30-
## [0.5.3] - 2020-06-03
40+
## [0.5.3](https://github.com/NilsJPWerner/autoDocstring/tree/v0.5.3) - 2020-06-03
3141

3242
- Changed default docstring type to google
3343
- Added better logging and stack traces for errors
34-
- Fixed bug: Comments in multiline function definition are not ignored #77
35-
- Fixed bug: Parse quoted type hints #138 (@bastienboutonnet)
36-
- Fixed bug: Parsing fails when activated on first line #139
44+
- Fixed bug: Comments in multiline function definition are not ignored ([#77](https://github.com/NilsJPWerner/autoDocstring/issues/77))
45+
- Fixed bug: Parse quoted type hints ([#138](https://github.com/NilsJPWerner/autoDocstring/issues/138)) (@bastienboutonnet)
46+
- Fixed bug: Parsing fails when activated on first line ([#139](https://github.com/NilsJPWerner/autoDocstring/issues/139))
3747
- Fixed bug: Unclear error when a document type is not supported. e.g. notebooks
3848

39-
## [0.5.2] - 2020-05-17
49+
[All Changes](https://github.com/NilsJPWerner/autoDocstring/compare/v0.5.2...v0.5.3)
4050

41-
- Fixed bug: Multiline function definitions are not parsed correctly #74
42-
- Fixed bug: No indentation if function is blank #117 (@rileypeterson)
43-
- Fixed bug: CompletionItem not appearing after triple single quote #125
51+
## [0.5.2](https://github.com/NilsJPWerner/autoDocstring/tree/v0.5.2) - 2020-05-17
4452

45-
## [0.5.1] - 2020-04-28
53+
- Fixed bug: Multiline function definitions are not parsed correctly ([#74](https://github.com/NilsJPWerner/autoDocstring/issues/74))
54+
- Fixed bug: No indentation if function is blank ([#117](https://github.com/NilsJPWerner/autoDocstring/issues/117)) (@rileypeterson)
55+
- Fixed bug: CompletionItem not appearing after triple single quote ([#125](https://github.com/NilsJPWerner/autoDocstring/issues/125))
4656

47-
- Fixed bug: No completion item in CRLF documents #118
57+
[All Changes](https://github.com/NilsJPWerner/autoDocstring/compare/v0.5.1...v0.5.2)
4858

49-
## [0.5.0] - 2020-04-21
59+
## [0.5.1](https://github.com/NilsJPWerner/autoDocstring/tree/v0.5.1) - 2020-04-28
60+
61+
- Fixed bug: No completion item in CRLF documents ([#118](https://github.com/NilsJPWerner/autoDocstring/issues/118))
62+
63+
[All Changes](https://github.com/NilsJPWerner/autoDocstring/compare/v0.5.0...v0.5.1)
64+
65+
## [0.5.0](https://github.com/NilsJPWerner/autoDocstring/tree/v0.5.0) - 2020-04-21
5066

5167
- Added remote usage capabilities
5268
- Switched to completionItem API and improved activation detection
5369
- Added integration tests
54-
- Fixed bug: Trailing whitespace on blank lines #99
70+
- Fixed bug: Trailing whitespace on blank lines ([#99](https://github.com/NilsJPWerner/autoDocstring/issues/99))
5571
- Fixed bug: Lines are parsed after end of function
56-
- Fixed bug: Wrong docstring for yield-only generator #91 (@HaaLeo)
57-
- Fixed bug: Comments in definition cause parsing errors #110
72+
- Fixed bug: Wrong docstring for yield-only generator ([#91](https://github.com/NilsJPWerner/autoDocstring/issues/91)) (@HaaLeo)
73+
- Fixed bug: Comments in definition cause parsing errors ([#110](https://github.com/NilsJPWerner/autoDocstring/issues/110))
74+
75+
[All Changes](https://github.com/NilsJPWerner/autoDocstring/compare/v0.4.0...v0.5.0)
5876

59-
## [0.4.0] - 2019-11-13
77+
## [0.4.0](https://github.com/NilsJPWerner/autoDocstring/tree/v0.4.0) - 2019-11-13
6078

6179
- Omit `-> None` return annotation (@HaaLeo)
6280
- Add support for yields (@HaaLeo)
6381
- Add support for relative paths in `customTemplatePath` configuration (@s-kovacevic)
6482
- Indent correctly on `> Generate Docstring` command
6583

66-
## [0.3.0] - 2019-04-16
84+
[All Changes](https://github.com/NilsJPWerner/autoDocstring/compare/v0.3.0...v0.4.0)
85+
86+
## [0.3.0](https://github.com/NilsJPWerner/autoDocstring/tree/v0.3.0) - 2019-04-16
6787

6888
- Switched to mustache.js for templating
6989
- Added support for custom templating
7090
- Fixed bug - newline after generating docstring
7191

72-
## [0.2.3] - 2018-07-23
92+
[All Changes](https://github.com/NilsJPWerner/autoDocstring/compare/v0.2.3...v0.3.0)
93+
94+
## [0.2.3](https://github.com/NilsJPWerner/autoDocstring/tree/v0.2.3) - 2018-07-23
7395

7496
- Added support for single quotes (@Modelmat)
7597
- Bugfixes (@chirieac, @md2perpe)
7698

77-
## [0.2.1] - 2018-04-15
99+
[All Changes](https://github.com/NilsJPWerner/autoDocstring/compare/v0.2.1...v0.2.3)
100+
101+
## [0.2.1](https://github.com/NilsJPWerner/autoDocstring/tree/v0.2.1) - 2018-04-15
78102

79103
- Bugfixes
80104
- Added includeName option to include function name in docstring
81105
- Added newlineBeforeSummary option
82106
- Removed test functions from install script
83107

84-
## [0.2.0] - 2018-02-28
108+
[All Changes](https://github.com/NilsJPWerner/autoDocstring/compare/v0.2.1...v0.2.3)
109+
110+
## [0.2.0](https://github.com/NilsJPWerner/autoDocstring/tree/v0.2.0) - 2018-02-28
85111

86112
- Rewrote parser to tokenize parameters. Should deal with string and array kwargs better
87113
- Added type inference using type hints, kwarg defaults, and var names
88114
- Improved the closed docstring check
89115
- Added unit tests for parser
90116

91-
## [0.1.4] - 2018-01-17
117+
[All Changes](https://github.com/NilsJPWerner/autoDocstring/compare/v0.1.4...v0.2.0)
118+
119+
## [0.1.4](https://github.com/NilsJPWerner/autoDocstring/tree/v0.1.4) - 2018-01-17
92120

93121
- Add Sphinx and Numpy formatters
94122

95-
## [0.1.3] - 2018-01-01
123+
[All Changes](https://github.com/NilsJPWerner/autoDocstring/compare/v0.1.3...v0.1.4)
124+
125+
## [0.1.3](https://github.com/NilsJPWerner/autoDocstring/tree/v0.1.3) - 2018-01-01
96126

97127
- Bugfixes
98128
- Better documentation
99129
- Fixed parsers
100130

101-
## [0.1.2] - 2017-11-22
131+
[All Changes](https://github.com/NilsJPWerner/autoDocstring/compare/v0.1.2...v0.1.3)
132+
133+
## [0.1.2](https://github.com/NilsJPWerner/autoDocstring/tree/v0.1.2) - 2017-11-22
102134

103135
- Changed name, added logo, cleaned up readme, and added explanatory gif
104136
- Will get better at change logs!
105137

106-
## [0.1.0] - 2017-11-18
138+
[All Changes](https://github.com/NilsJPWerner/autoDocstring/compare/v0.1.0...v0.1.2)
139+
140+
## [0.1.0](https://github.com/NilsJPWerner/autoDocstring/tree/v0.1.0) - 2017-11-18
107141

108142
- Supports google and typed PEP0257 style docstrings
109143
- Supports automatic creation on enter after triple quotes

0 commit comments

Comments
 (0)