This commit is contained in:
@@ -647,12 +647,24 @@ def materialize(
|
||||
if record.get("_model") == "devlog-entry":
|
||||
entry_commit = record["source_commit"]
|
||||
entry_meta = commit_metadata(Path(metadata["mirror_path"]), entry_commit)
|
||||
topic_values = split_list(record["tags"])
|
||||
topic_tag_slugs = approved_tag_slugs(
|
||||
source["project_id"],
|
||||
"devlog topic",
|
||||
topic_values,
|
||||
tag_vocabulary,
|
||||
)
|
||||
output = append_fields(
|
||||
data,
|
||||
{
|
||||
"kicker": "Devlog",
|
||||
"source_commit_url": f"{source['web_url']}/commit/{entry_commit}",
|
||||
"source_commit_time": entry_meta["commit_date"],
|
||||
"topic_tags": split_list(record["tags"]),
|
||||
"topic_tags": topic_values,
|
||||
"topic_labels": taxonomy_label_items(
|
||||
topic_values, topic_tag_slugs
|
||||
),
|
||||
"topic_tag_slugs": topic_tag_slugs,
|
||||
},
|
||||
)
|
||||
target.write_bytes(output)
|
||||
|
||||
Reference in New Issue
Block a user