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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user