From: Sebastián Ramírez Date: Wed, 1 Mar 2023 13:22:00 +0000 (+0100) Subject: ♻️ Refactor FastAPI Experts to use only discussions now that questions are migrated... X-Git-Tag: 0.93.0~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=35d93d59d82f2b2073d492ac335553f1d7c3cc55;p=thirdparty%2Ffastapi%2Ffastapi.git ♻️ Refactor FastAPI Experts to use only discussions now that questions are migrated (#9165) --- diff --git a/.github/actions/people/app/main.py b/.github/actions/people/app/main.py index 05cbc71e53..2a0cdfc35a 100644 --- a/.github/actions/people/app/main.py +++ b/.github/actions/people/app/main.py @@ -496,21 +496,25 @@ def get_discussions_experts(settings: Settings): def get_experts(settings: Settings): - ( - issues_commentors, - issues_last_month_commentors, - issues_authors, - ) = get_issues_experts(settings=settings) + # Migrated to only use GitHub Discussions + # ( + # issues_commentors, + # issues_last_month_commentors, + # issues_authors, + # ) = get_issues_experts(settings=settings) ( discussions_commentors, discussions_last_month_commentors, discussions_authors, ) = get_discussions_experts(settings=settings) - commentors = issues_commentors + discussions_commentors - last_month_commentors = ( - issues_last_month_commentors + discussions_last_month_commentors - ) - authors = {**issues_authors, **discussions_authors} + # commentors = issues_commentors + discussions_commentors + commentors = discussions_commentors + # last_month_commentors = ( + # issues_last_month_commentors + discussions_last_month_commentors + # ) + last_month_commentors = discussions_last_month_commentors + # authors = {**issues_authors, **discussions_authors} + authors = {**discussions_authors} return commentors, last_month_commentors, authors