diff options
author | Jade Lovelace <lix@jade.fyi> | 2024-08-09 19:03:08 -0700 |
---|---|---|
committer | Jade Lovelace <lix@jade.fyi> | 2024-08-09 19:03:08 -0700 |
commit | 35c9069c665fd776a377c179231403f9877e3e2f (patch) | |
tree | 8a9b64e3b0561ad27abf449a3fff94824cf57951 | |
parent | c7d97802e4f59b8621e67cf62275d6a7fde8fe62 (diff) |
rl-next: fix incorrect CL list syntax
This also fixes the script to not pass pre-commit by failing to parse an
int if this mistake is made again.
Change-Id: I714369f515dc9987cf0c600d54a2ac745ba56830
-rw-r--r-- | doc/manual/rl-next/better-attrpath-errors.md | 2 | ||||
-rw-r--r-- | maintainers/build-release-notes.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/manual/rl-next/better-attrpath-errors.md b/doc/manual/rl-next/better-attrpath-errors.md index e8c7d9a96..d9c142939 100644 --- a/doc/manual/rl-next/better-attrpath-errors.md +++ b/doc/manual/rl-next/better-attrpath-errors.md @@ -1,6 +1,6 @@ --- synopsis: "Trace which part of a `foo.bar.baz` expression errors" -cls: 1505, 1506 +cls: [1505, 1506] credits: Qyriad category: Improvements --- diff --git a/maintainers/build-release-notes.py b/maintainers/build-release-notes.py index 97985b970..69990e6ef 100644 --- a/maintainers/build-release-notes.py +++ b/maintainers/build-release-notes.py @@ -106,7 +106,7 @@ def do_category(author_info: AuthorInfoDB, entries: list[Tuple[pathlib.Path, Any links = [] links += [format_issue(str(s)) for s in listify(entry.metadata.get('issues', []))] links += [format_pr(str(s)) for s in listify(entry.metadata.get('prs', []))] - links += [format_cl(cl) for cl in listify(entry.metadata.get('cls', []))] + links += [format_cl(int(cl)) for cl in listify(entry.metadata.get('cls', []))] if links != []: header += " " + " ".join(links) if header: @@ -129,7 +129,7 @@ def run_on_dir(author_info: AuthorInfoDB, d): entries = defaultdict(list) for p in paths: try: - e = frontmatter.load(p) + e = frontmatter.load(p) # type: ignore if 'synopsis' not in e.metadata: raise Exception('missing synopsis') unknownKeys = set(e.metadata.keys()) - set(KNOWN_KEYS) |