Skip to content

Commit

Permalink
Merge pull request #51 from maykinmedia/feature/prepare-release-template
Browse files Browse the repository at this point in the history
 📝 [maykinmedia/open-api-framework#107] Add prepare release template
  • Loading branch information
stevenbal authored Feb 18, 2025
2 parents b4ccda0 + 26ddef3 commit f35d433
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ commit = False
tag = False
current_version = 0.2.0
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<pre>[a-z]+)\.(?P<build>\d+))?
serialize =
serialize =
{major}.{minor}.{patch}-{pre}.{build}
{major}.{minor}.{patch}

[bumpversion:part:pre]
first_value = alpha
values =
values =
alpha
beta
rc
Expand All @@ -25,5 +25,5 @@ search = :Version: {current_version}
replace = :Version: {new_version}

[bumpversion:file:package.json]
search = "version": "{current_version}",
replace = "version": "{new_version}",
search = "version": "{current_version}"
replace = "version": "{new_version}"
10 changes: 6 additions & 4 deletions .github/ISSUE_TEMPLATE/prepare-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ name: Prepare release
about: Checklist for new releases
title: Prepare release x.y.z
labels: ''
type: Release
projects: ["maykinmedia/15"]
---

- [ ] Resolve release blockers
- [ ] ...
- [ ] Upgrade `open-api-framework` to latest version
- [ ] Check security tab and upgrade packages to fix vulnerabilities
- [ ] Check translations
- [ ] Backend
- [ ] Frontend
- [ ] Bump API version number
- [ ] Bump API version number (if applicable)
- [ ] Version bump
- [ ] Regenerate API spec
- [ ] Update READMEs with release dates + links
- [ ] Bump version number (including package-lock.json)
- [ ] Bump version number with `bin/bump-my-version.sh bump <major|minor|patch>`
- [ ] Update changelog
25 changes: 25 additions & 0 deletions bin/bump-my-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
#
# Script to bump the version. Arguments are forwarded to bump-my-version.
#
# Usage:
#
# ./bin/bumpversion.sh bump minor|patch|pre|build
#

set -eu -o pipefail

toplevel=$(git rev-parse --show-toplevel)
cd $toplevel

# Ensure a virtualenv is active.
if [ -z $VIRTUAL_ENV ]; then
echo "VIRTUAL_ENV envvar is not set, you must activate your virtualenv before running this script."
exit 1
fi

# Forward all arguments to bump-my-version binary
bump-my-version "$@"

# Run npm install to update the package-lock.json version number
npm i
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion requirements/dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Helpers
pip-tools
bump2version
bump-my-version
gitpython

# Debug tooling
Expand Down
42 changes: 41 additions & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ annotated-types==0.7.0
# -c requirements/ci.txt
# -r requirements/ci.txt
# pydantic
anyio==4.8.0
# via httpx
ape-pie==0.2.0
# via
# -c requirements/ci.txt
Expand Down Expand Up @@ -71,9 +73,11 @@ boltons==24.0.0
# -r requirements/ci.txt
# face
# glom
bracex==2.5.post1
# via wcmatch
build==1.2.1
# via pip-tools
bump2version==1.0.1
bump-my-version==0.32.1
# via -r requirements/dev.in
cbor2==5.6.4
# via
Expand All @@ -92,6 +96,8 @@ certifi==2024.7.4
# -c requirements/ci.txt
# -r requirements/ci.txt
# elastic-apm
# httpcore
# httpx
# requests
# sentry-sdk
cffi==1.16.0
Expand All @@ -109,11 +115,13 @@ click==8.1.7
# -c requirements/ci.txt
# -r requirements/ci.txt
# black
# bump-my-version
# celery
# click-didyoumean
# click-plugins
# click-repl
# pip-tools
# rich-click
click-didyoumean==0.3.1
# via
# -c requirements/ci.txt
Expand Down Expand Up @@ -458,6 +466,12 @@ glom==23.5.0
# -c requirements/ci.txt
# -r requirements/ci.txt
# mozilla-django-oidc-db
h11==0.14.0
# via httpcore
httpcore==1.0.7
# via httpx
httpx==0.28.1
# via bump-my-version
humanize==4.10.0
# via
# -c requirements/ci.txt
Expand All @@ -467,6 +481,8 @@ idna==3.7
# via
# -c requirements/ci.txt
# -r requirements/ci.txt
# anyio
# httpx
# requests
# yarl
imagesize==1.4.1
Expand Down Expand Up @@ -535,6 +551,8 @@ lxml==5.2.2
# -c requirements/ci.txt
# -r requirements/ci.txt
# pyquery
markdown-it-py==3.0.0
# via rich
markupsafe==2.1.5
# via
# -c requirements/ci.txt
Expand All @@ -550,6 +568,8 @@ mccabe==0.7.0
# -c requirements/ci.txt
# -r requirements/ci.txt
# flake8
mdurl==0.1.2
# via markdown-it-py
mozilla-django-oidc==4.0.1
# via
# -c requirements/ci.txt
Expand Down Expand Up @@ -636,6 +656,7 @@ prompt-toolkit==3.0.47
# -c requirements/ci.txt
# -r requirements/ci.txt
# click-repl
# questionary
psycopg2==2.9.9
# via
# -c requirements/ci.txt
Expand All @@ -655,6 +676,7 @@ pydantic==2.10.5
# via
# -c requirements/ci.txt
# -r requirements/ci.txt
# bump-my-version
# django-setup-configuration
# pydantic-settings
pydantic-core==2.27.2
Expand All @@ -666,6 +688,7 @@ pydantic-settings==2.7.1
# via
# -c requirements/ci.txt
# -r requirements/ci.txt
# bump-my-version
# django-setup-configuration
pyflakes==3.2.0
# via
Expand All @@ -676,6 +699,7 @@ pygments==2.18.0
# via
# -c requirements/ci.txt
# -r requirements/ci.txt
# rich
# sphinx
pyjwt==2.8.0
# via
Expand Down Expand Up @@ -745,6 +769,8 @@ qrcode==7.4.2
# -c requirements/ci.txt
# -r requirements/ci.txt
# django-two-factor-auth
questionary==2.1.0
# via bump-my-version
redis==5.0.8
# via
# -c requirements/ci.txt
Expand Down Expand Up @@ -775,6 +801,12 @@ requests-mock==1.12.1
# -c requirements/ci.txt
# -r requirements/ci.txt
# commonground-api-common
rich==13.9.4
# via
# bump-my-version
# rich-click
rich-click==1.8.5
# via bump-my-version
rpds-py==0.19.1
# via
# -c requirements/ci.txt
Expand Down Expand Up @@ -809,6 +841,8 @@ six==1.16.0
# python-dateutil
smmap==5.0.1
# via gitdb
sniffio==1.3.1
# via anyio
snowballstemmer==2.2.0
# via
# -c requirements/ci.txt
Expand Down Expand Up @@ -879,6 +913,8 @@ tblib==3.0.0
# via
# -c requirements/ci.txt
# -r requirements/ci.txt
tomlkit==0.13.2
# via bump-my-version
tornado==6.4.2
# via
# -c requirements/ci.txt
Expand All @@ -888,10 +924,12 @@ typing-extensions==4.12.2
# via
# -c requirements/ci.txt
# -r requirements/ci.txt
# anyio
# mozilla-django-oidc-db
# pydantic
# pydantic-core
# qrcode
# rich-click
# zgw-consumers
tzdata==2024.1
# via
Expand Down Expand Up @@ -933,6 +971,8 @@ waitress==3.0.1
# -c requirements/ci.txt
# -r requirements/ci.txt
# webtest
wcmatch==10.0
# via bump-my-version
wcwidth==0.2.13
# via
# -c requirements/ci.txt
Expand Down

0 comments on commit f35d433

Please sign in to comment.