Skip to content

Commit

Permalink
queries: exclude org itself for engaments query
Browse files Browse the repository at this point in the history
  • Loading branch information
Mini256 committed Oct 7, 2023
1 parent a832951 commit 68d1e4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions configs/queries/orgs/participants/engagements/template.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ WITH repos AS (
{% when 'past_90_days' %} AND day > (NOW() - INTERVAL 90 DAY)
{% when 'past_12_months' %} AND day > (NOW() - INTERVAL 12 MONTH)
{% endcase %}
AND user_login != (SELECT owner_login FROM github_repos WHERE gr.owner_id = {{ownerId}} LIMIT 1)
{% if excludeBots %}
-- Exclude bot users.
AND LOWER(user_login) NOT LIKE '%bot%'
Expand Down

0 comments on commit 68d1e4c

Please sign in to comment.