diff --git a/api/queries/get-user-by-login/params.json b/api/queries/get-user-by-login/params.json new file mode 100644 index 00000000000..e6e6088f0c7 --- /dev/null +++ b/api/queries/get-user-by-login/params.json @@ -0,0 +1,10 @@ +{ + "cacheHours": 1, + "params": [ + { + "name": "login", + "replaces": "Mini256", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-\\[\\]]{0,38}$" + } + ] +} diff --git a/api/queries/get-user-by-login/template.sql b/api/queries/get-user-by-login/template.sql new file mode 100644 index 00000000000..4a36035f7d3 --- /dev/null +++ b/api/queries/get-user-by-login/template.sql @@ -0,0 +1 @@ +select actor_id AS id, 'Mini256' AS login from github_events where actor_login = 'Mini256' limit 1;