Skip to content

Commit 6c319c7

Browse files
committed
build: copier-auto-update
1 parent cfd450a commit 6c319c7

4 files changed

Lines changed: 51 additions & 6 deletions

File tree

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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
77
author_email: dev.act.kyle@gmail.com
88
author_name: Kyle King

.github/workflows/tests.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ jobs:
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:
@@ -82,7 +85,23 @@ jobs:
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 }}

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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"]

mdsf.json

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,34 @@
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
}

0 commit comments

Comments
 (0)