Map some new urls. Create a new external resource type

- Legacy-Id: 17873
This commit is contained in:
Robert Sparks 2020-05-21 21:46:51 +00:00
parent 324be05151
commit d87a1d009b
2 changed files with 3 additions and 0 deletions

View file

@ -40,6 +40,8 @@ name_map = {
# TODO: Review all the None values below and make sure ignoring the URLs they match is really the right thing to do.
url_map = OrderedDict({
"https?://github\\.com": "github_repo",
"https://git.sr.ht/": "repo",
"https://todo.sr.ht/": "tracker",
"https?://trac\\.ietf\\.org/.*/wiki": "wiki",
"ietf\\.org.*/trac/wiki": "wiki",
"trac.*wiki": "wiki",

View file

@ -36,6 +36,7 @@ def forward(apps, schema_editor):
resourcename("jabber_log","Jabber Log", "url"),
resourcename("mailing_list","Mailing List", "url"),
resourcename("mailing_list_archive","Mailing List Archive","url"),
resourcename("repo","Other Repository", "url")
]
for name in resourcenames: