Skip to content

Commit 4c9b9c9

Browse files
authored
Source/Changes: Add change log aggregator from Goof suite (#39)
* Source/Changes: Add change log aggregator from Goof suite * Source/Changes: Add CLI interface, and work on single directories * Source/Changes: Trim reStructuredText output
1 parent e343d86 commit 4c9b9c9

File tree

8 files changed

+466
-2
lines changed

8 files changed

+466
-2
lines changed

CHANGES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
to root message and producer.
66
- Documentation: Added dedicated pages about sandbox installation,
77
and text vs. slack reports
8+
- Source/Changes: Added change log aggregator from _Goof suite_
89

910
## v0.5.0, 2025-03-09
1011
- GitHub/Attention: Compare labels per lower-case
@@ -16,7 +17,7 @@
1617
- Shell/Notify: Fixed invocation without `--zap=`
1718
- Shell/Notify: Improved preamble, adding "Producer" field
1819
- Shell/Report: Made `--github-repository` option optional
19-
- Shell/Animate: Added PyGource renderer from _goof suite_
20+
- Shell/Animate: Added PyGource renderer from _Goof suite_
2021

2122
## v0.4.0, 2025-03-05
2223
- GitHub/Attention: Also display `state==closed` items, formatting them

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# ruff: noqa: ERA001
1010

1111
project = "Rapporto"
12-
copyright = "2013-2025, The Panodata Developers" # noqa: A001
12+
copyright = "2011-2025, The Panodata Developers" # noqa: A001
1313
author = "The Panodata Developers"
1414

1515
# -- General configuration ---------------------------------------------------

src/rapporto/animate/git.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
References:
1717
- https://gource.io/
1818
- https://github.com/acaudwell/Gource
19+
- zt.manticore.ext.gource
1920
"""
2021

2122
# Relax linter.

src/rapporto/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from rapporto.animate.cli import cli as animate_cli
55
from rapporto.notify.cli import cli as notify_cli
66
from rapporto.report.cli import cli as report_cli
7+
from rapporto.source.changes.cli import cli as changes_cli
78
from rapporto.source.github.cli import cli as github_cli
89
from rapporto.source.opsgenie.cli import cli as opsgenie_cli
910
from rapporto.source.slack.cli import cli as slack_cli
@@ -25,3 +26,4 @@ def cli(ctx: click.Context, verbose: bool, debug: bool):
2526
cli.add_command(notify_cli, "notify")
2627
cli.add_command(report_cli, "report")
2728
cli.add_command(animate_cli, "animate")
29+
cli.add_command(changes_cli, "changes")

src/rapporto/source/changes/__init__.py

Whitespace-only changes.

src/rapporto/source/changes/cli.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import typing as t
2+
3+
import click
4+
5+
from rapporto.source.changes.core import aggregate
6+
7+
8+
@click.command(context_settings=dict(ignore_unknown_options=True))
9+
@click.argument("input", type=click.UNPROCESSED, required=False, nargs=-1)
10+
@click.option("--output", type=str, required=False, help="Output path")
11+
@click.option(
12+
"--format",
13+
"format_",
14+
type=click.Choice(["md", "rst", "text"]),
15+
required=False,
16+
default="rst",
17+
help="Output format: 'md' for markdown, 'rst' for reStructuredText, 'text' for terminal output",
18+
)
19+
@click.pass_context
20+
def cli(ctx: click.Context, input: t.List[str], output: str, format_: str) -> None: # noqa: A002
21+
"""
22+
Aggregate change log files.
23+
"""
24+
aggregate(input[0], output)

0 commit comments

Comments
 (0)