Browse Source

♻️ Refactor FastAPI Experts to use only discussions now that questions are migrated (#9165)

pull/9171/head
Sebastián Ramírez 2 years ago
committed by GitHub
parent
commit
35d93d59d8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 24
      .github/actions/people/app/main.py

24
.github/actions/people/app/main.py

@ -496,21 +496,25 @@ def get_discussions_experts(settings: Settings):
def get_experts(settings: Settings): def get_experts(settings: Settings):
( # Migrated to only use GitHub Discussions
issues_commentors, # (
issues_last_month_commentors, # issues_commentors,
issues_authors, # issues_last_month_commentors,
) = get_issues_experts(settings=settings) # issues_authors,
# ) = get_issues_experts(settings=settings)
( (
discussions_commentors, discussions_commentors,
discussions_last_month_commentors, discussions_last_month_commentors,
discussions_authors, discussions_authors,
) = get_discussions_experts(settings=settings) ) = get_discussions_experts(settings=settings)
commentors = issues_commentors + discussions_commentors # commentors = issues_commentors + discussions_commentors
last_month_commentors = ( commentors = discussions_commentors
issues_last_month_commentors + discussions_last_month_commentors # last_month_commentors = (
) # issues_last_month_commentors + discussions_last_month_commentors
authors = {**issues_authors, **discussions_authors} # )
last_month_commentors = discussions_last_month_commentors
# authors = {**issues_authors, **discussions_authors}
authors = {**discussions_authors}
return commentors, last_month_commentors, authors return commentors, last_month_commentors, authors

Loading…
Cancel
Save