From 8ed503c044f10d87812120f4eb107b784f418705 Mon Sep 17 00:00:00 2001 From: fortysix2ahead Date: Fri, 10 Nov 2023 15:31:16 +0100 Subject: [PATCH 1/5] Formatted changelog to Keep a Changelog format --- CHANGELOG.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 634b9fd..feaab7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,16 @@ # Changelog -## Version 0.1.1 -- Fixed: install typing_extensions as dependency, making synophotos run with Python 3.11 +## [Unreleased] + +## [0.1.1] - 2023-11-10 + +### Fixed + +- install typing_extensions as dependency, making synophotos run with Python 3.11 + +## [0.1.0] - 2023-11-10 + +### Added -## Version 0.1.0 - Initial release version From b0cccc0ac262bd469fea8b750474c7e871bd1f1d Mon Sep 17 00:00:00 2001 From: fortysix2ahead <40423757+fortysix2ahead@users.noreply.github.com> Date: Fri, 10 Nov 2023 15:43:30 +0100 Subject: [PATCH 2/5] Create release-drafter.yml --- .github/workflows/release-drafter.yml | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..d7ca692 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,41 @@ +name: Release Drafter + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - master + # pull_request event is required only for autolabeler + pull_request: + # Only following types are handled by the action, but one can default to all as well + types: [opened, reopened, synchronize] + # pull_request_target event is required for autolabeler to support PRs from forks + # pull_request_target: + # types: [opened, reopened, synchronize] + +permissions: + contents: read + +jobs: + update_release_draft: + permissions: + # write permission is required to create a github release + contents: write + # write permission is required for autolabeler + # otherwise, read permission is required at least + pull-requests: write + runs-on: ubuntu-latest + steps: + # (Optional) GitHub Enterprise requires GHE_HOST variable set + #- name: Set GHE_HOST + # run: | + # echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV + + # Drafts your next Release notes as Pull Requests are merged into "master" + - uses: release-drafter/release-drafter@v5 + # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml + # with: + # config-name: my-config.yml + # disable-autolabeler: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 96d20a3c013a262102394999d42f1e8558a059d7 Mon Sep 17 00:00:00 2001 From: fortysix2ahead <40423757+fortysix2ahead@users.noreply.github.com> Date: Fri, 10 Nov 2023 15:44:51 +0100 Subject: [PATCH 3/5] Create changelog-updater.yaml --- .github/workflows/changelog-updater.yaml | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/changelog-updater.yaml diff --git a/.github/workflows/changelog-updater.yaml b/.github/workflows/changelog-updater.yaml new file mode 100644 index 0000000..51ad7c0 --- /dev/null +++ b/.github/workflows/changelog-updater.yaml @@ -0,0 +1,35 @@ +# .github/workflows/update-changelog.yaml +name: "Update Changelog" + +on: + release: + types: [released] + +jobs: + update: + runs-on: ubuntu-latest + + permissions: + # Give the default GITHUB_TOKEN write permission to commit and push the + # updated CHANGELOG back to the repository. + # https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/ + contents: write + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: ${{ github.event.release.target_commitish }} + + - name: Update Changelog + uses: stefanzweifel/changelog-updater-action@v1 + with: + latest-version: ${{ github.event.release.tag_name }} + release-notes: ${{ github.event.release.body }} + + - name: Commit updated CHANGELOG + uses: stefanzweifel/git-auto-commit-action@v5 + with: + branch: ${{ github.event.release.target_commitish }} + commit_message: Update CHANGELOG + file_pattern: CHANGELOG.md From 0d92d291d5c3194ee75cc6ff285104d9653bbd0f Mon Sep 17 00:00:00 2001 From: fortysix2ahead Date: Sat, 11 Nov 2023 14:48:59 +0100 Subject: [PATCH 4/5] Added flit as dev dependency --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 3403a63..475691a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,6 +29,7 @@ dependencies = [ [project.optional-dependencies] dev = [ "bumpver~=2023.1129", + "flit~=3.9.0", "mkdocs~=1.5.3", "mkdocs-click~=0.8.1", "mkdocs-material~=9.4.7" From 8406b788da84d3e482d6205c4e80ec2e34379e43 Mon Sep 17 00:00:00 2001 From: fortysix2ahead Date: Sat, 11 Nov 2023 14:55:53 +0100 Subject: [PATCH 5/5] Update tag message in pytoml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 475691a..8f6fc79 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ build-backend = "flit_core.buildapi" current_version = "0.1.1" version_pattern = "MAJOR.MINOR.PATCH[-INC0]" commit_message = "Increased version from {old_version} to {new_version}" -tag_message = "rel{new_version}" +tag_message = "rel-{new_version}" tag_scope = "default" pre_commit_hook = "" post_commit_hook = ""