Skip to main content

Changesets-style release automation on top of scriv

Project description

scriv-release

Changesets-style release automation on top of scriv.

scriv already manages per-PR changelog fragments. scriv-release adds the missing pieces for fully automated releases:

  1. A policy for mapping changelog categories to semver bump levels.
  2. Orchestration commands (bump-level, next-version, collect, tag) that wrap scriv and a configurable version provider.
  3. A GitHub Action that opens a "Changelog Preview" PR when fragments are pending, and tags a release once that PR is merged — the same flow popularized by Changesets in the JS ecosystem.

Quickstart

pip install "scriv-release[bump-my-version]"
# pyproject.toml
[tool.scriv-release]
version_provider = "bump-my-version"

In your repo's .github/workflows/release.yml:

on:
  push:
    branches: [main]

jobs:
  release:
    uses: whitphx/scriv-release/.github/workflows/reusable.yml@v1
    secrets:
      app-id: ${{ vars.RELEASE_APP_ID }}
      app-private-key: ${{ secrets.RELEASE_APP_KEY }}

See docs/quickstart.md and docs/token-setup.md.

How it works

Two phases, branched on whether changelog fragments are present on HEAD:

  • Fragments presentscriv collect into a scriv-release-preview branch and open/update a "Changelog Preview" PR.
  • No fragments on HEAD, but fragments on HEAD~1 → that means the preview PR was just merged. Determine the bump level from HEAD~1's fragments, tag the release, push the tag.

This is the same file-presence-based detection Changesets uses, so it survives squash, rebase, and merge commits alike.

Status

Early scaffold. Public API and config keys may shift before 1.0.

License

MIT — see 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

scriv_release-0.2.3.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

scriv_release-0.2.3-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file scriv_release-0.2.3.tar.gz.

File metadata

  • Download URL: scriv_release-0.2.3.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for scriv_release-0.2.3.tar.gz
Algorithm Hash digest
SHA256 4527596e574c402a14263d4f07615d64cd76340a2c1281baaeb26463145c61dc
MD5 84246b4d0d8b1a3512ec3475ea7327f1
BLAKE2b-256 9baf806519e04e67c638ba142c0cf8b435ea41459e8600e0da81ac53486e74f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for scriv_release-0.2.3.tar.gz:

Publisher: publish.yml on whitphx/scriv-release

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

File details

Details for the file scriv_release-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: scriv_release-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for scriv_release-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dfe2e90618eed1deb285d50c8923e1232f32a8413b8edbc09453681228d5927b
MD5 0013392cc84eefc623f91da72b8f5f2a
BLAKE2b-256 6c89ad5a2d8b1843a0e8ed94bf2d1ee3c27bd18917348d3e3c22254ec3d5f5c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for scriv_release-0.2.3-py3-none-any.whl:

Publisher: publish.yml on whitphx/scriv-release

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