Skip to content

Conversation

@eschaar
Copy link

@eschaar eschaar commented Oct 10, 2025

No description provided.

CONTRIBUTING.md Outdated

```bash
docker run --rm -v $(pwd):/app -w /app --name cz-kpn kpnnl/cz-kpn:3.2.12 'cz ls'
docker run --rm -v $(pwd):/app -w /app --name cz-kpn kpnnl/cz-kpn:4.0.0 'cz ls'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep the latest version here, all versions are automatically updated by cz in here:

cz-kpn/.cz.toml

Lines 4 to 9 in 6949330

version_files = [
"scripts/build",
"CONTIRBUTING.md",
"Dockerfile:cz-kpn==",
"README.md:^docker"
]

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't update the CHANGELOG, commitizen will automatically create it, that's the whole point of using it

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

old habbit

pyproject.toml Outdated
[tool.poetry]
name = "cz-kpn"
version = "3.2.12"
version = "4.0.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is handled by commitizen automatically, revert this change

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do

scripts/build Outdated
# scope: local development

docker build -t kpnnl/cz-kpn:3.2.12 .
VERSION=${1:-4.0.0}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert to version 3.2.12

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do


## Local development with pyenv

1. Install pyenv (if not already installed):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't use pyenv and it doesn't work on my machine. Do we need this when we already have a github action with the matrix?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no only usefull for local dev and testing with tox.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a note and made more clear that it is useful in case of local dev and testing with tox

Dockerfile Outdated
@@ -1,4 +1,5 @@
FROM python:3-alpine
ARG CZ_KPN_VERSION=4.0.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the current version as well here

jobs:
bump-version:
if: "!startsWith(github.event.head_commit.message, 'BUMP:')"
if: startsWith(github.event.head_commit.message, 'BUMP:') == false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In most project we have been doing this:

if: ${{ !startsWith(github.event.head_commit.message, 'BUMP:') }}

do you know if your suggestion would work?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was getting some review comments from copilot that double quotes were not correct (it would be interpreted as string) and without it, !startsWith was not recognized.

But changed it to ${{ !startsWith(github.event.head_commit.message, 'BUMP:') }} which seems to be accepted too.

@woile woile merged commit 85f0341 into kpn:main Oct 10, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants