Skip to content

Commit

Permalink
Added auto-release infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Dec 3, 2024
1 parent cc2364d commit 54387da
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 50 deletions.
21 changes: 21 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
changelog:
exclude:
authors:
- pre-commit-ci
labels:
- no-changelog-entry-needed
- skip-changelog

categories:
- title: New Features
labels:
- enhancement
- title: Bug Fixes
labels:
- bug
- title: Documentation
labels:
- documentation
- title: Other Changes
labels:
- "*"
33 changes: 33 additions & 0 deletions .github/workflows/update-changelog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow takes the GitHub release notes and updates the changelog on the
# main branch with the body of the release notes, thereby keeping a log in
# the git repo of the changes.

name: "Update Changelog"

on:
release:
types: [released]

jobs:
update:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: main

- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
release-notes: ${{ github.event.release.body }}
latest-version: ${{ github.event.release.name }}
path-to-changelog: CHANGES.md

- name: Commit updated Changelog
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: Update CHANGELOG
file_pattern: CHANGES.md
37 changes: 37 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 0.7 (2020-08-03)

- Fix compatibility with Matplotlib 3.3. \[#30\]
- Drop support for Python 2.7 and require Matplotlib\>=3. \[#30\]
- Update package infrastructure. \[#31\]

# 0.6 (2019-05-28)

- Avoid unecessary imports of Qt and Tk. \[#27\]

# 0.5 (2019-01-27)

- Internal code reorganization to faciliate re-use in other packages.
\[#26\]

# 0.4 (2018-09-04)

- Added a keyword argment `update_while_panning` to set whether to
compute the scatter denstiy map while panning and zooming. \[#16\]
- Downsample when resizing interactive window. \[#14\]

# 0.3 (2017-10-29)

- Added support for the `c=` argument, similar to the argument with
the same name in Matplotlib\'s `scatter` function. \[#11\]
- Added support for log axes. \[#11\]
- Fixed support for flipped limits (e.g. xmax \< xmin). \[#11\]
- Added support for setting vmin/vmax to functions to determine limits
on-the-fly. \[#11\]

# 0.2 (2017-07-20)

- Fix compatibility with the Jupyter notebook. \[#8\]

# 0.1 (2017-07-19)

- Initial version.
50 changes: 0 additions & 50 deletions CHANGES.rst

This file was deleted.

0 comments on commit 54387da

Please sign in to comment.