From c0b4dd6eef318ae97c652075077b30dfbef6dbac Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Fri, 7 Dec 2018 13:22:10 +0000 Subject: schema: support wildcard patchwork instances Use a regex rule to match patchwork instances within the schema. The validator/title parser shall use the key as part of the URL to obtain further patch information. Signed-off-by: Kieran Bingham --- projects/project.schema.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'projects/project.schema.yaml') diff --git a/projects/project.schema.yaml b/projects/project.schema.yaml index c5133e3..354a93d 100644 --- a/projects/project.schema.yaml +++ b/projects/project.schema.yaml @@ -60,8 +60,8 @@ mapping: next: desc: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id= include: gitcommit - pw.linuxtv: - desc: https://patchwork.linuxtv.org/patch/ + regex;(^patchwork.*): + desc: https://patchwork.$INSTANCE/patch/ type: int url: desc: Free form URL reference # URL validation is *hard* -- cgit v1.2.3