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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file changelist-0.2.tar.gz
.
File metadata
- Download URL: changelist-0.2.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b57b090c1c166a2e2de5dc3324ee3f92c12287488a3939eacb933f7576b09ac |
|
MD5 | 12cb098cdebe130a10c6cf587cae46d5 |
|
BLAKE2b-256 | dd92b6ccd0f25ec4229fbf20993599b38c70d3edb21c2e9e3ff1165135300ace |
File details
Details for the file changelist-0.2-py3-none-any.whl
.
File metadata
- Download URL: changelist-0.2-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 525dd93f0256ec7841907718f2d8ae1e5277127a992f7c82f13662550eee58d2 |
|
MD5 | 52bde6cc594a1ab1f175295fd1c3761e |
|
BLAKE2b-256 | a67be1cdfd83cb6a4e0f45ff7def968a4373c6e920a654526c983383babc5883 |