Skip to content

Commit d87a1d0

Browse files
committed
Map some new urls. Create a new external resource type
- Legacy-Id: 17873
1 parent 324be05 commit d87a1d0

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

ietf/doc/migrations/0033_populate_docextresources.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
# TODO: Review all the None values below and make sure ignoring the URLs they match is really the right thing to do.
4141
url_map = OrderedDict({
4242
"https?://github\\.com": "github_repo",
43+
"https://git.sr.ht/": "repo",
44+
"https://todo.sr.ht/": "tracker",
4345
"https?://trac\\.ietf\\.org/.*/wiki": "wiki",
4446
"ietf\\.org.*/trac/wiki": "wiki",
4547
"trac.*wiki": "wiki",

ietf/name/migrations/0013_populate_extres.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def forward(apps, schema_editor):
3636
resourcename("jabber_log","Jabber Log", "url"),
3737
resourcename("mailing_list","Mailing List", "url"),
3838
resourcename("mailing_list_archive","Mailing List Archive","url"),
39+
resourcename("repo","Other Repository", "url")
3940
]
4041

4142
for name in resourcenames:

0 commit comments

Comments
 (0)