Skip to content

Commit

Permalink
explicitly set repo name for git cliff
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Oct 5, 2024
1 parent 2939de2 commit f0223ab
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/increment_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,30 @@ def get_changelog(
if full and changelog.exists():
old = changelog.read_text(encoding="utf-8")
output = changelog
args = ["git-cliff", "--config", str(GIT_CLIFF_CONFIG), "--tag", tag]
args = [
"git-cliff",
"--config",
str(GIT_CLIFF_CONFIG),
"--tag",
tag,
"--github-repo",
f"nRF24/{Path.cwd().name}",
]
if not full:
args.append("--unreleased")
output = str(RELEASE_NOTES)
if branch == "v1.x":
args.extend(["--ignore-tags", "[v|V]?2\\..*"])
subprocess.run(
args + ["--output", output],
env={"FIRST_COMMIT": first_commit},
check=True,
shell=True,
)
try:
subprocess.run(
args + ["--output", output],
env={"FIRST_COMMIT": first_commit},
check=True,
shell=True,
)
except subprocess.CalledProcessError as exc:
print(exc.stdout, exc.stderr, sep="\n")
raise exc
if full:
new = changelog.read_text(encoding="utf-8")
changes = list(unified_diff(old, new))
Expand Down

0 comments on commit f0223ab

Please sign in to comment.