fix(changelogs): fix ref target in changelogs (#1780)

This commit is contained in:
Antheas Kapenekakis 2024-10-26 00:26:22 +02:00 committed by GitHub
parent befbfee2db
commit b739d459ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -383,15 +383,19 @@ def main():
parser.add_argument("--handwritten", help="Handwritten changelog") parser.add_argument("--handwritten", help="Handwritten changelog")
args = parser.parse_args() args = parser.parse_args()
manifests = get_manifests(args.target) # Remove refs/tags, refs/heads, refs/remotes e.g.
prev, curr = get_tags(args.target, manifests) # Tags cannot include / anyway.
target = args.target.split('/')[-1]
manifests = get_manifests(target)
prev, curr = get_tags(target, manifests)
print(f"Previous tag: {prev}") print(f"Previous tag: {prev}")
print(f" Current tag: {curr}") print(f" Current tag: {curr}")
prev_manifests = get_manifests(prev) prev_manifests = get_manifests(prev)
title, changelog = generate_changelog( title, changelog = generate_changelog(
args.handwritten, args.handwritten,
args.target, target,
args.pretty, args.pretty,
args.workdir, args.workdir,
prev_manifests, prev_manifests,