Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

changelist

A tool that automates release note generation.

For example, see https://github.com/scientific-python/changelist/blob/main/CHANGELOG.md.

Features

  • Compile a list of pull requests, code authors, and reviewers between two given git commits.
  • Categorize pull requests into sections based on GitHub labels.
  • Override pull request titles with more descriptive summaries.
  • Document unrelated changes in a pull requests in separate summaries.

This project is currently in its alpha stage and might be incomplete or change a lot!

Installation

pip install changelist

Usage

The script requires a GitHub personal access token. The token does not need any permissions, since it is used only to increase query limits.

export GH_TOKEN='...'
changelist scientific-python/changelist v0.2.0 main

This will list all pull requests, authors and reviewers that touched commits between v0.2.0 and main (excluding v0.2.0). Pull requests are sorted into sections according to the configuration in tool.changelist.label_section_map.

Writing pull request summaries

By default, changelist will fall back to the title of a pull request and its GitHub labels to sort it into the appropriate section. However, if you want longer summaries of your changes you can add a code block with the following form anywhere in the description of the pull request:

```release-note
An ideally expressive description of the change that is included as
a single bullet point. Newlines are removed.
```

Sometimes pull requests introduce multiple changes that should be listed in different sections. For that reason, a summary block like above can be used more than once. Additionally, you can add independent labels to each summary by adding a {label="..."} anywhere in the summary. These labels are sorted the same way as regular pull request labels are. E.g. the two summaries below will go into separate sections:

```release-note {label="Bug fix"}
Make `is_odd()` work for negative numbers.
```

```release-note
Deprecate `ìs_odd`; use `not (x % 2)` instead! {label="API, Highlight"}
```

Configuration

changelist can be configured from two sources, in order of precedence:

  • A local TOML file specified with the --config option
  • A remote pyproject.toml at stop_rev

If a configuration option is not specified in either file above, changelist falls back to the following configuration:

# Default changelist configuration as supported in pyproject.toml
[tool.changelist]

# A template string that is included as the title of the generated notes.
# "{repo_name}" and "{version}", if given, are replaced by the respective
# values given in the command line.
title_template = "{repo_name} {version}"

# A template string that is included as introductory text after the title.
# "{repo_name}" and "{version}", if given, are replaced by the respective
# values given in the command line.
intro_template = """
We're happy to announce the release of {repo_name} {version}!
"""

# A template string that is included at the end of the generated notes.
# "{repo_name}" and "{version}", if given, are replaced by the respective
# values given in the command line.
outro_template = """
_These lists are automatically generated, and may not be complete or may contain
duplicates._
"""

# Usernames that are excluded from the contributor list. This may also ignore
# pull request of these users (see field `ignore_prs_by_username`).
ignored_user_logins = [
    "web-flow",
]

# Ignore pull requests authored by these users.
# If `{include = "ignored_user_logins"}` is included in this list (the default),
# usernames from the field `ignored_user_logins` are also included.
ignore_prs_by_username = [
    {include = "ignored_user_logins"},
]

# If this regex matches a pull requests description, the captured content
# is included instead of the pull request title. E.g. the
# default regex below is matched by
#
# ```release-note
# An ideally expressive description of the change that is included as
# a single bullet point. Newlines are removed.
# ```
#
# If you modify this regex, make sure to match the content with a capture
# group named "summary". The regex is allowed to match more than once in which
# case a single pull request may result in multiple items (see
# `pr_summary_label_regex` for why that might be useful).
pr_summary_regex = "^```release-note\\s*(?P<summary>[\\s\\S]*?\\w[\\s\\S]*?)\\s*^```"

# Sometimes pull requests introduce changes that should be listed in different
# sections. For that reason, `pr_summary_regex` can match more than once and
# this regex, `pr_summary_label_regex`, can be used to add independent labels
# to each summary. These labels are sorted with the `label_section_map` the
# same way as regular pull request labels are. E.g. the example below will both
# match and go into separate sections:
#
# ```release-note {label="Bug fix"}
# Make `is_odd()` work for negative numbers.
# ```
#
# ```release-note
# Deprecate `ìs_odd`; use `not (x % 2)` instead! {label="API, Highlight"}
# ```
#
# If you modify this regex, make sure to match the content with a capture
# group named "label".
pr_summary_label_regex = """{[^}]*?label=[\\"](?P<label>[^\\"]+)[^}]*?}"""

# If any of a pull request's labels matches one of the regexes on the left side
# its summary will appear in the appropriate section with the title given on
# the right side. If a pull request doesn't match one of these categories it is
# sorted into a section titled "Other". Pull request can appear in multiple
# sections as long as their labels match.
[tool.changelist.label_section_map]
".*Highlight.*" = "Highlights"
".*New feature.*" = "New Features"
".*API.*" = "API Changes"
".*Enhancement.*" = "Enhancements"
".*Performance.*" = "Performance"
".*Bug fix.*" = "Bug Fixes"
".*Documentation.*" = "Documentation"
".*Infrastructure.*" = "Infrastructure"
".*Maintenance.*" = "Maintenance"

Set up your repository

To categorize merged PRs in the changelist with the default configuration, each PR must have a label that matches one of the regexes on the left side of the label_section_map table, e.g. type: Highlights.

Label checking

You may want to ensure that each PR has an associated type: label, we recommend adding an action that fails CI if the label is missing.

To do so, place the following in .github/workflows/label-check.yaml:

name: Labels

on:
  pull_request:
    types:
      - opened
      - reopened
      - labeled
      - unlabeled
      - synchronize

env:
  LABELS: ${{ join( github.event.pull_request.labels.*.name, ' ' ) }}

jobs:
  check-type-label:
    name: ensure type label
    runs-on: ubuntu-latest
    steps:
      - if: "contains( env.LABELS, 'type: ' ) == false"
        run: exit 1

Milestones

Often, it is helpful to have milestones that reflect the actual PRs merged. We therefore recommend adding an action that attached the next open milestone to any merged PR.

To do so, place the following in .github/workflows/milestone-merged-prs.yaml:

name: Milestone

on:
  pull_request_target:
    types:
      - closed
    branches:
      - "main"

jobs:
  milestone_pr:
    name: attach to PR
    runs-on: ubuntu-latest
    steps:
      - uses: scientific-python/attach-next-milestone-action@c9cfab10ad0c67fed91b01103db26b7f16634639
        with:
          token: ${{ secrets.MILESTONE_LABELER_TOKEN }}
          force: true

See https://github.com/scientific-python/attach-next-milestone-action for more information.

Metadata

Release files for changelist 0.6rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for changelist 0.6rc1
File Size Uploaded Provenance Actions
changelist-0.6rc1.tar.gz 19.5 kB With provenance Details for changelist-0.6rc1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for changelist 0.6rc1
File Interpreter ABI Platform Actions
changelist-0.6rc1-py3-none-any.whl Python 3 none any Details for changelist-0.6rc1-py3-none-any.whl

Total release size: 37.2 kB

Release files / changelist-0.6rc1.tar.gz

Download URL changelist-0.6rc1.tar.gz
Size 19.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1aefeeb50dd534f39715e2a11bf2142ba6a1db22abd18d4cc46c0078593d0afd
BLAKE2b-256 checksum
How to use checksums
b89d30904305924761cd6b397474a05f6cbbd21eb9637f17d200d4ac062b7930
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.

Transparency log

Release files / changelist-0.6rc1-py3-none-any.whl

Download URL changelist-0.6rc1-py3-none-any.whl
Size 17.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a9161faa039bf6fc1ba0f896f3a6638e5770f9424c8cf866a7ebbf4e21afb00
BLAKE2b-256 checksum
How to use checksums
54dfb8a75ec553184215a64f6a8550ecdbc6ae19a94e8f83cdc34416dd10693e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.

Transparency log

Security for changelist 0.6rc1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for changelist-0.6rc1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page