Skip to content

Commit 3e5d92f

Browse files
committed
feat: add option :strict_tech_stack
1 parent abef865 commit 3e5d92f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/algora/workspace/workspace.ex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,13 @@ defmodule Algora.Workspace do
682682
query
683683
end
684684

685+
query =
686+
if opts[:strict_tech_stack] do
687+
where(query, [uc, u, r, repo_owner], fragment("? && ?::citext[]", r.tech_stack, ^(opts[:tech_stack] || [])))
688+
else
689+
query
690+
end
691+
685692
query =
686693
case opts[:limit] do
687694
nil -> query

0 commit comments

Comments
 (0)