Skip to content

Commit 514f486

Browse files
committed
feat: add more options to Workspace.list_user_contributions/2
1 parent 491443f commit 514f486

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
@@ -674,6 +674,13 @@ defmodule Algora.Workspace do
674674
}
675675
}
676676

677+
query =
678+
if opts[:exclude_personal] do
679+
where(query, [uc, u, r, repo_owner], repo_owner.type == :organization)
680+
else
681+
query
682+
end
683+
677684
query =
678685
case opts[:limit] do
679686
nil -> query

0 commit comments

Comments
 (0)