Skip to main content

No project description provided

Project description

changelist

Prepare an automatic changelog from GitHub pull requests.

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

Installation

pip install changelist

Set up your repository

To categorize merged PRs in the changelist, each PR must have have one of the following labels:

  • type: Highlights
  • type: New features
  • type: Enhancements
  • type: Performance
  • type: Bug fix
  • type: API
  • type: Maintenance
  • type: Documentation
  • type: Infrastructure

This list will soon be configurable.

Label checking

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
      - repoened
      - 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@bc07be829f693829263e57d5e8489f4e57d3d420
        with:
          token: ${{ secrets.MILESTONE_LABELER_TOKEN }}
          force: true

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

Usage

export GH_TOKEN='...'
changelist scikit-image/scikit-image v0.21.0 main

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

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

changelist-0.2.tar.gz (11.4 kB view hashes)

Uploaded Source

Built Distribution

changelist-0.2-py3-none-any.whl (11.4 kB view hashes)

Uploaded Python 3

Supported by

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