1
0
mirror of https://codeberg.org/fediverse/fep.git synced 2026-08-05 19:55:46 +00:00

FEP-a4ed: Introduce trackingIssue metadata field (#284)

This is the first PR for issue https://codeberg.org/fediverse/fep/issues/185
Once this change is approved and merged, I will add `trackingIssue` to all existing proposals. After that `discussionsTo` can be used for solving https://codeberg.org/fediverse/fep/issues/274.

Reviewed-on: https://codeberg.org/fediverse/fep/pulls/284
Reviewed-by: Arnold Schrijver <circlebuilder@noreply.codeberg.org>
This commit is contained in:
silverpill
2024-05-17 19:33:25 +00:00
parent b83b60c74b
commit e928041c43
3 changed files with 9 additions and 3 deletions
+4
View File
@@ -13,6 +13,9 @@ args = parser.parse_args()
fep_file = FepFile(args.fep)
if "trackingIssue" in fep_file.parsed_frontmatter:
print("File already has trackingIssue")
exit(1)
if "discussionsTo" in fep_file.parsed_frontmatter:
print("File already has discussionsTo")
exit(1)
@@ -54,6 +57,7 @@ response = urlopen(request)
issue_url = json.loads(response.read())["html_url"]
fep_file.frontmetter.append(f"trackingIssue: {issue_url}")
fep_file.frontmatter.append(f"discussionsTo: {issue_url}")
fep_file.write()