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
This commit is contained in:
parent
c7d97802e4
commit
35c9069c66
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
synopsis: "Trace which part of a `foo.bar.baz` expression errors"
|
synopsis: "Trace which part of a `foo.bar.baz` expression errors"
|
||||||
cls: 1505, 1506
|
cls: [1505, 1506]
|
||||||
credits: Qyriad
|
credits: Qyriad
|
||||||
category: Improvements
|
category: Improvements
|
||||||
---
|
---
|
||||||
|
|
|
@ -106,7 +106,7 @@ def do_category(author_info: AuthorInfoDB, entries: list[Tuple[pathlib.Path, Any
|
||||||
links = []
|
links = []
|
||||||
links += [format_issue(str(s)) for s in listify(entry.metadata.get('issues', []))]
|
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_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 != []:
|
if links != []:
|
||||||
header += " " + " ".join(links)
|
header += " " + " ".join(links)
|
||||||
if header:
|
if header:
|
||||||
|
@ -129,7 +129,7 @@ def run_on_dir(author_info: AuthorInfoDB, d):
|
||||||
entries = defaultdict(list)
|
entries = defaultdict(list)
|
||||||
for p in paths:
|
for p in paths:
|
||||||
try:
|
try:
|
||||||
e = frontmatter.load(p)
|
e = frontmatter.load(p) # type: ignore
|
||||||
if 'synopsis' not in e.metadata:
|
if 'synopsis' not in e.metadata:
|
||||||
raise Exception('missing synopsis')
|
raise Exception('missing synopsis')
|
||||||
unknownKeys = set(e.metadata.keys()) - set(KNOWN_KEYS)
|
unknownKeys = set(e.metadata.keys()) - set(KNOWN_KEYS)
|
||||||
|
|
Loading…
Reference in a new issue