Skip to content

Commit

Permalink
fix: add git changelog helper
Browse files Browse the repository at this point in the history
  • Loading branch information
autumnjolitz committed Jun 24, 2024
1 parent 3d4d145 commit 3100d65
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ def window(iterable: Iterable[T]) -> Iterable[Tuple[T, T]]:
next_item = item


@task
def update_changes(context: Context):
context.run(
r"git-changelog -I CHANGES.rst -g '^Version (?P<version>[\d\.]+)' -m '.. |Changes|' -t path:CHANGES.rst.template -F '82c264ca9a125317945e4aa3f581f009b49014ad...' -i -o CHANGES.rst"
)


@task
def setup_metadata() -> Dict[str, str]:
with open(_.project_root(Path, silent=True) / "setup.cfg") as fh:
Expand Down

0 comments on commit 3100d65

Please sign in to comment.