Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reformat changelog does not support unnamed section #770

Open
oddstr13 opened this issue Aug 31, 2023 · 0 comments
Open

Reformat changelog does not support unnamed section #770

oddstr13 opened this issue Aug 31, 2023 · 0 comments
Labels
bug Something isn't working build Issues that are related to the build process/core platform, including dependencies ci enhancement New feature or request

Comments

@oddstr13
Copy link
Member

Traceback (most recent call last):
  File "/home/runner/work/jellyfin-kodi/jellyfin-kodi/.github/tools/reformat_changelog.py", line 87, in <module>
    reformat(args.format, args.emoji)
  File "/home/runner/work/jellyfin-kodi/jellyfin-kodi/.github/tools/reformat_changelog.py", line 49, in reformat
    section["items"].append(gd)
KeyError: 'items'

https://github.com/jellyfin/jellyfin-kodi/actions/runs/6033384710/job/16369981650#step:5:56

section: Union[SectionType, Dict] = {}
for line in data:
if line.startswith("## "):
pass
if line.startswith("### "):
if section:
sections.append(section)
_section: SectionType = {
"title": line.strip("# "),
"items": [],
}
section = _section
m = ITEM_PATTERN.match(line)
if m:
gd = m.groupdict()
section["items"].append(gd)

@oddstr13 oddstr13 added bug Something isn't working enhancement New feature or request build Issues that are related to the build process/core platform, including dependencies ci labels Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build Issues that are related to the build process/core platform, including dependencies ci enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant