Skip to content

CFE-4659: Added changelog-generator to cfengine-cli#137

Merged
larsewi merged 2 commits into
cfengine:mainfrom
SimonThalvorsen:CFE-4659
Jun 4, 2026
Merged

CFE-4659: Added changelog-generator to cfengine-cli#137
larsewi merged 2 commits into
cfengine:mainfrom
SimonThalvorsen:CFE-4659

Conversation

@SimonThalvorsen
Copy link
Copy Markdown
Contributor

No description provided.

@SimonThalvorsen SimonThalvorsen force-pushed the CFE-4659 branch 2 times, most recently from 76266ae to 2272521 Compare May 28, 2026 12:28
Comment thread src/cfengine_cli/changelog.py
Comment thread src/cfengine_cli/changelog.py Outdated
@olehermanse olehermanse requested a review from larsewi May 28, 2026 12:42
Comment thread src/cfengine_cli/changelog.py
@SimonThalvorsen SimonThalvorsen force-pushed the CFE-4659 branch 2 times, most recently from 8fe3b86 to eb094f3 Compare May 28, 2026 13:07
@olehermanse olehermanse self-requested a review May 29, 2026 11:08
Copy link
Copy Markdown
Contributor

@larsewi larsewi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GJ 🚀 Some smaller comments

Comment thread src/cfengine_cli/changelog.py Outdated
Comment thread src/cfengine_cli/changelog.py Outdated
Comment thread src/cfengine_cli/changelog.py Outdated
Comment thread src/cfengine_cli/changelog.py Outdated
Comment thread src/cfengine_cli/changelog.py
Comment thread src/cfengine_cli/changelog.py Outdated
Comment thread src/cfengine_cli/changelog.py Outdated
Comment thread src/cfengine_cli/changelog.py Outdated
Comment thread src/cfengine_cli/changelog.py Outdated
@SimonThalvorsen SimonThalvorsen force-pushed the CFE-4659 branch 2 times, most recently from d8eb6b5 to b00bb7b Compare June 1, 2026 09:08
@SimonThalvorsen SimonThalvorsen requested a review from larsewi June 1, 2026 09:08
@olehermanse olehermanse changed the title CFE-4659: Adds changelog-generator to cfengine-cli CFE-4659: Added changelog-generator to cfengine-cli Jun 1, 2026
@olehermanse olehermanse changed the title CFE-4659: Added changelog-generator to cfengine-cli CFE-4659: Adds changelog-generator to cfengine-cli Jun 1, 2026
@SimonThalvorsen SimonThalvorsen changed the title CFE-4659: Adds changelog-generator to cfengine-cli CFE-4659: Added changelog-generator to cfengine-cli Jun 1, 2026
Comment thread src/cfengine_cli/changelog.py Outdated
Comment thread src/cfengine_cli/changelog.py Outdated
Comment thread src/cfengine_cli/changelog.py Outdated
Comment thread src/cfengine_cli/changelog.py Outdated
@olehermanse olehermanse removed their request for review June 1, 2026 18:27
Copy link
Copy Markdown
Contributor

@larsewi larsewi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀 Feel free to fix the remaining stuff in a follow-up PR if you want to


if "Changelog" in trailers:
changelog_val = trailers["Changelog"]
if re.match(r"^Title[ .]*$", changelog_val, re.IGNORECASE):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These anchors are implicit in re.match() and only adds noice

Suggested change
if re.match(r"^Title[ .]*$", changelog_val, re.IGNORECASE):
if re.match(r"Title[ .]*", changelog_val, re.IGNORECASE):

Comment on lines +37 to +42
def fetch_git_output(args):
return subprocess.run(
args,
stdout=subprocess.PIPE,
check=True,
).stdout.splitlines(keepends=True)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def fetch_git_output(args):
return subprocess.run(
args,
stdout=subprocess.PIPE,
check=True,
).stdout.splitlines(keepends=True)
def fetch_git_output(repo, args):
path = os.path.join(os.getcwd(), repo)
return subprocess.run(
["git", "-C", f"{path}"] + args,
stdout=subprocess.PIPE,
check=True,
).stdout.splitlines(keepends=True)

@larsewi larsewi merged commit b35c324 into cfengine:main Jun 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants