Skip to main content

Parses changelog txt files

Project description

Changelogtxt-parser

changelogtxt_small

Overview

Changelogtxt-parser is a python api, CLI, and github action for parsing and verifying a changelog.txt like this:

- An unreleased change

v0.2.0
- A change

v0.1.0
- A change
- Another change

How to Install

uv add changelogtxt-parser
# or
pip install changelogtxt-parser

Python API

import changelogtxt

x = changelogtxt.load(filename)

# object example
changelogtxt.dump(object)

CLI Examples

# lint
changelogtxt check-format

# verify version exists
changelogtxt get-tag v1.0.1

# add new change or version
changelogtxt update -t "v1.0.2" -m "Change"

# compare two git ref files
changelogtxt summarize-news <origin> <target>

Basic action

- name: Check changelog
  uses: geopozo/changelogtxt-parser@main
  with:
    # Python version to use (default: 3.12)
    python-version: ""

    # Path to the changelog file (default: searches ./CHANGELOG.txt)
    file-path: ""

    # Whether to validate the changelog format (default: "true")
    check-format: "true"

    # Tag to verify. Use "from-push" to get the tag from the latest push
    get-tag: "v1.0.0"

    # Compare changelog files from the current ref to <target_ref>
    # (branch, commit hash, or tag)
    # <file_path> is relative to the `working-directory`
    summarize-news: '["<file_path>", "<target_ref>"]'

License

This project is licensed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

changelogtxt_parser-1.0.0rc2.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

changelogtxt_parser-1.0.0rc2-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file changelogtxt_parser-1.0.0rc2.tar.gz.

File metadata

  • Download URL: changelogtxt_parser-1.0.0rc2.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for changelogtxt_parser-1.0.0rc2.tar.gz
Algorithm Hash digest
SHA256 5d2c14f44daab1e7c4aff82c4cfd53d21e587b31eb281859dd046a2a9af0142f
MD5 cbab59e6167c15b6858b446276d4b518
BLAKE2b-256 759ee74c58a3d0699bef22ea15ffcf6e8524ddda2868f8f42418f43def4cae44

See more details on using hashes here.

Provenance

The following attestation bundles were made for changelogtxt_parser-1.0.0rc2.tar.gz:

Publisher: publish_all.yml on geopozo/changelogtxt-parser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file changelogtxt_parser-1.0.0rc2-py3-none-any.whl.

File metadata

File hashes

Hashes for changelogtxt_parser-1.0.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 8caa64ff8e710fb03dac655d22b0ede6a2ce4e7afcd51b35904195548fc0afe1
MD5 85ae16da72a546b29ab40f0368d8e1c3
BLAKE2b-256 7917732d640ddc86736faa2a2aa0281e410badf52e9dff602beb1d5ebedf0229

See more details on using hashes here.

Provenance

The following attestation bundles were made for changelogtxt_parser-1.0.0rc2-py3-none-any.whl:

Publisher: publish_all.yml on geopozo/changelogtxt-parser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page