File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# Answer file maintained by Copier for: https://github.com/KyleKing/mdformat-plugin-template
33# DO NOT MODIFY THIS FILE. Edit by re-running copier and changing responses to the questions
44# Check into version control.
5- _commit : 2.5.1
5+ _commit : 2.7.0
66_src_path : gh:KyleKing/mdformat-plugin-template
77author_email : dev.act.kyle@gmail.com
88author_name : Kyle King
Original file line number Diff line number Diff line change 7474 id-token : write # IMPORTANT: mandatory for PyPI trusted publishing
7575 steps :
7676 - uses : actions/checkout@v5
77+ with :
78+ fetch-depth : 0
79+ fetch-tags : true
7780 - name : Install uv and Python
7881 uses : astral-sh/setup-uv@v7
7982 with :
8285 run : uv build
8386 - name : Publish to PyPI
8487 uses : pypa/gh-action-pypi-publish@release/v1
88+ - name : Generate changelog with commitizen
89+ id : changelog
90+ run : |
91+ uv tool install commitizen
92+ VERSION="${GITHUB_REF_NAME#v}"
93+ CHANGELOG=$(cz changelog "$VERSION" --dry-run)
94+ PREV_TAG=$(git describe --tags --abbrev=0 "$GITHUB_REF^" 2>/dev/null || echo "")
95+ {
96+ echo 'body<<EOF'
97+ echo "$CHANGELOG"
98+ if [ -n "$PREV_TAG" ]; then
99+ echo ""
100+ echo "**Full Changelog**: https://github.com/${{ github.repository }}/compare/${PREV_TAG}...${GITHUB_REF_NAME}"
101+ fi
102+ echo EOF
103+ } >> "$GITHUB_OUTPUT"
85104 - name : Generate GitHub Release Notes
86105 uses : softprops/action-gh-release@v2
87106 with :
88- generate_release_notes : true
107+ body : ${{ steps.changelog.outputs.body }}
Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ repos:
2626 - id : trailing-whitespace
2727 exclude : __snapshots__/.*\.ambr
2828 - repo : https://github.com/executablebooks/mdformat
29- rev : 0.7.19
29+ rev : 1.0.0
3030 hooks :
3131 - id : mdformat
3232 additional_dependencies :
33- - mdformat-mkdocs[recommended]>=3.0.0
34- - mdformat-gfm-alerts>=1 .0.1
33+ - mdformat-mkdocs[recommended-mdsf ]>=5.1.1
34+ - mdformat-gfm-alerts>=2 .0.0
3535 args : [--wrap=no]
3636 exclude : tests/.+\.md
3737 stages : ["pre-commit"]
Original file line number Diff line number Diff line change 11{
22 "$schema" : " https://raw.githubusercontent.com/hougesen/mdsf/main/schemas/v0.11.0/mdsf.schema.json" ,
33 "languages" : {
4+ "go" : " gofmt" ,
5+ "javascript" : [
6+ [
7+ " deno:fmt" ,
8+ " prettier"
9+ ]
10+ ],
11+ "json" : [
12+ [
13+ " deno:fmt" ,
14+ " prettier"
15+ ]
16+ ],
417 "python" : " ruff:format" ,
18+ "shell" : [
19+ [
20+ " shfmt" ,
21+ " beautysh"
22+ ]
23+ ],
524 "sql" : " sqlfluff:format" ,
6- "toml" : " toml-sort"
25+ "toml" : " toml-sort" ,
26+ "typescript" : [
27+ [
28+ " deno:fmt" ,
29+ " prettier"
30+ ]
31+ ],
32+ "yaml" : " prettier"
733 }
834}
You can’t perform that action at this time.
0 commit comments