Skip to content

Commit 7f9e215

Browse files
committed
Add changelog-keeper integration
1 parent 59ae43a commit 7f9e215

File tree

3 files changed

+27
-17
lines changed

3 files changed

+27
-17
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,12 @@ jobs:
126126
ref="${{ github.ref }}";
127127
version=${ref#refs/tags/v};
128128
link="https://pypi.org/p/sphinx-lua-ls/${version}";
129-
echo "version=${version}" >> $GITHUB_OUTPUT
130129
echo "link=${link}" >> $GITHUB_OUTPUT
131130
- name: Parse Changelog
132131
id: changelog
133-
uses: mindsers/changelog-reader-action@v2
132+
uses: taminomara/cl-keeper@v0
134133
with:
135-
version: ${{ steps.metadata.outputs.version }}
134+
version: ${{ github.ref }}
136135
- name: Set up python 3.12
137136
uses: actions/setup-python@v4
138137
with:
@@ -150,11 +149,11 @@ jobs:
150149
- name: Create GitHub release
151150
uses: softprops/action-gh-release@v2
152151
with:
153-
prerelease: ${{ steps.changelog.outputs.status == 'prereleased' }}
154-
draft: ${{ steps.changelog.outputs.status == 'unreleased' }}
152+
prerelease: ${{ fromJSON(steps.changelog.outputs.is-pre-release) }}
153+
draft: ${{ fromJSON(steps.changelog.outputs.is-unreleased) }}
155154
body: |
156155
## Changelog
157156
158-
${{ steps.changelog.outputs.changes }}
157+
${{ steps.changelog.outputs.text }}
159158
160159
[See release on PyPi](${{ steps.metadata.outputs.link }})

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@ repos:
1313
entry: isort --filter-files
1414
types_or: [python, pyi]
1515
require_serial: true
16+
- id: clk
17+
name: changelog keeper
18+
language: system
19+
entry: clk pre-commit-check
20+
require_serial: true
21+
types_or: [toml, yaml, markdown]
22+
- id: clk-tags
23+
name: changelog keeper (check tags)
24+
language: system
25+
entry: clk pre-commit-check-tag
26+
always_run: true
27+
pass_filenames: false
28+
require_serial: true
29+
stages: [pre-push]
1630
- repo: https://github.com/pre-commit/pre-commit-hooks
1731
rev: v6.0.0
1832
hooks:

pyproject.toml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "sphinx-lua-ls"
3-
authors = [{name = "Tamika Nomara", email = "taminomara@gmail.com"}]
3+
authors = [{ name = "Tamika Nomara", email = "taminomara@gmail.com" }]
44
description = "Automatic documentation generation via EmmyLua/LuaLs"
55
dynamic = ["version"]
66
readme = "README.md"
@@ -21,37 +21,34 @@ classifiers = [
2121
"Topic :: Documentation :: Sphinx",
2222
"Typing :: Typed",
2323
]
24-
dependencies = [
25-
"sphinx>=8.0,<10.0",
26-
"PyGithub>=1.59,<3.0",
27-
"requests~=2.31",
28-
]
24+
dependencies = ["sphinx>=8.0,<10.0", "PyGithub>=1.59,<3.0", "requests~=2.31"]
2925

3026
[dependency-groups]
3127
dev = [
3228
"pytest-cov==7.0.0",
33-
{include-group = "test"},
34-
{include-group = "lint"},
35-
{include-group = "doc"},
29+
{ include-group = "test" },
30+
{ include-group = "lint" },
31+
{ include-group = "doc" },
3632
]
3733
lint = [
3834
"black==26.1.0",
3935
"isort==7.0.0",
4036
"pre-commit==4.5.1",
37+
"cl-keeper==0.0.0-b6",
4138
]
4239
test = [
4340
"pyright==1.1.408",
4441
"pytest==9.0.2",
4542
"sybil==9.3.0",
4643
"pytest-regressions==2.9.1",
4744
"beautifulsoup4==4.14.3",
48-
"myst-parser==5.0.0"
45+
"myst-parser==5.0.0",
4946
]
5047
doc = [
5148
"sybil==9.3.0",
5249
"furo==2025.12.19",
5350
"sphinx_design==0.7.0",
54-
"myst-parser==5.0.0"
51+
"myst-parser==5.0.0",
5552
]
5653

5754
[project.urls]

0 commit comments

Comments
 (0)