You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am trying to set up the commitizen action on a private repo following the instructions on the documentation but am encountering a No tag found to do an incremental changelog error when the action runs.
I created a personal access token, but I'm not sure what permissions to give it. I also read the discussion on #19, and I tried different settings/configurations for my yaml file, but I didn't find anything that ended up resolving this issue.
I'm relatively new to GitHub Actions, so I may be missing something obvious. Any help would be appreciated!
Here's the log from the action:
Run commitizen-tools/commitizen-action@master
with:
github_token: ***
changelog_increment_filename: body.md
commit: true
push: true
merge: false
changelog: true
git_name: github-actions[bot]
git_email: github-actions[bot]@users.noreply.github.com
commitizen_version: latest
no_raise: 21
check_consistency: false
gpg_sign: false
debug: false
/usr/bin/docker run --name ed866eeb9729ce48d0491b9191560bfb0c4362_fcaa4f --label ed866e --workdir /github/workspace --rm -e "INPUT_GITHUB_TOKEN" -e "INPUT_CHANGELOG_INCREMENT_FILENAME" -e "INPUT_DRY_RUN" -e "INPUT_COMMIT" -e "INPUT_PUSH" -e "INPUT_MERGE" -e "INPUT_PRERELEASE" -e "INPUT_CHANGELOG" -e "INPUT_REPOSITORY" -e "INPUT_BRANCH" -e "INPUT_EXTRA_REQUIREMENTS" -e "INPUT_GIT_NAME" -e "INPUT_GIT_EMAIL" -e "INPUT_COMMITIZEN_VERSION" -e "INPUT_NO_RAISE" -e "INPUT_INCREMENT" -e "INPUT_CHECK_CONSISTENCY" -e "INPUT_GPG_SIGN" -e "INPUT_DEBUG" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/new-modeling-toolkit/new-modeling-toolkit":"/github/workspace" ed866e:eb9729ce48d0491b9191560bfb0c4362
gpg (GnuPG) 2.4.1
libgcrypt 1.10.2
Copyright (C) 2023 g10 Code GmbH
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: /github/home/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
git version 2.40.1
Configuring Git username, email, and pull behavior...
Git name: github-actions[bot]
Git email: github-actions[bot]@users.noreply.github.com
pip install commitizen
WARNING: The directory '/github/home/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Collecting commitizen
Downloading commitizen-3.2.2-py3-none-any.whl (55 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.2/55.2 KB 6.0 MB/s eta 0:00:00
Collecting charset-normalizer<4,>=2.1.0
Downloading charset_normalizer-3.1.0-cp38-cp38-musllinux_1_1_x86_64.whl (191 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 191.5/191.5 KB 32.2 MB/s eta 0:00:00
Collecting tomlkit<1.0.0,>=0.5.3
Downloading tomlkit-0.11.8-py3-none-any.whl (35 kB)
Collecting termcolor<3,>=1.1
Downloading termcolor-2.3.0-py3-none-any.whl (6.9 kB)
Collecting jinja2>=2.10.3
Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 KB 209.4 MB/s eta 0:00:00
Collecting packaging>=19
Downloading packaging-23.1-py3-none-any.whl (48 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.9/48.9 KB 136.8 MB/s eta 0:00:00
Collecting colorama<0.5.0,>=0.4.1
Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting importlib_metadata<7,>=4.13
Downloading importlib_metadata-6.6.0-py3-none-any.whl (22 kB)
Collecting decli<0.7.0,>=0.6.0
Downloading decli-0.6.0-py3-none-any.whl (7.9 kB)
Collecting pyyaml>=3.08
Downloading PyYAML-6.0.tar.gz (124 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.0/125.0 KB 247.9 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting argcomplete<3.1,>=1.12.1
Downloading argcomplete-3.0.8-py3-none-any.whl (40 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.0/40.0 KB 183.3 MB/s eta 0:00:00
Collecting questionary<2.0.0,>=1.4.0
Downloading questionary-1.10.0-py3-none-any.whl (31 kB)
Collecting zipp>=0.5
Downloading zipp-3.15.0-py3-none-any.whl (6.8 kB)
Collecting MarkupSafe>=2.0
Downloading MarkupSafe-2.1.3-cp38-cp38-musllinux_1_1_x86_64.whl (29 kB)
Collecting prompt_toolkit<4.0,>=2.0
Downloading prompt_toolkit-3.0.38-py3-none-any.whl (385 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 385.8/385.8 KB 95.4 MB/s eta 0:00:00
Collecting wcwidth
Downloading wcwidth-0.2.6-py2.py3-none-any.whl (29 kB)
Building wheels for collected packages: pyyaml
Building wheel for pyyaml (pyproject.toml): started
Building wheel for pyyaml (pyproject.toml): finished with status 'done'
Created wheel for pyyaml: filename=PyYAML-6.0-cp38-cp38-linux_x86_64.whl size=45331 sha256=2fed7912ffbcfa16e308cd349f7921e9c0d15b7a0563619faaeacbe99713e968
Stored in directory: /tmp/pip-ephem-wheel-cache-xaajhirb/wheels/52/84/66/50912fd7bf1639a31758e40bd4312602e104a8eca1e0da9645
Successfully built pyyaml
Installing collected packages: wcwidth, zipp, tomlkit, termcolor, pyyaml, prompt_toolkit, packaging, MarkupSafe, decli, colorama, charset-normalizer, argcomplete, questionary, jinja2, importlib_metadata, commitizen
Successfully installed MarkupSafe-2.1.3 argcomplete-3.0.8 charset-normalizer-3.1.0 colorama-0.4.6 commitizen-3.2.2 decli-0.6.0 importlib_metadata-6.6.0 jinja2-3.1.2 packaging-23.1 prompt_toolkit-3.0.38 pyyaml-6.0 questionary-1.10.0 termcolor-2.3.0 tomlkit-0.11.8 wcwidth-0.2.6 zipp-3.15.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: You are using pip version 22.0.4; however, version 23.1.2 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
Commitizen version: 3.2.2
cz --no-raise 21 bump --yes --changelog --check-consistency --changelog-to-stdout >body.md
bump: version 0.4.4 → 0.5.0
tag to create: 0.5.0
increment detected: MINOR
No tag found to do an incremental changelog
Ah, that was the issue. I had the tag locally but not on GitHub. Based on the error message, I was confused why it couldn't find 0.5.0, since that was the tag that the action was supposed to be creating. Thanks!
Hello, I am trying to set up the commitizen action on a private repo following the instructions on the documentation but am encountering a
No tag found to do an incremental changelog
error when the action runs.I created a personal access token, but I'm not sure what permissions to give it. I also read the discussion on #19, and I tried different settings/configurations for my yaml file, but I didn't find anything that ended up resolving this issue.
I'm relatively new to GitHub Actions, so I may be missing something obvious. Any help would be appreciated!
Here's the log from the action:
Here's my `bumpversion.yml` file:
The text was updated successfully, but these errors were encountered: