Skip to content

Commit

Permalink
Pull Twitter usernames for thank yous
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Feb 22, 2024
1 parent 2f2b776 commit d06cf8e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/actions/people/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@
login
avatarUrl
url
... on User {
twitterUsername
}
}
title
createdAt
Expand All @@ -123,6 +126,9 @@
login
avatarUrl
url
... on User {
twitterUsername
}
}
state
}
Expand All @@ -139,6 +145,7 @@ class Author(BaseModel):
login: str
avatarUrl: str
url: str
twitterUsername: Union[str, None] = None


# Issues and Discussions
Expand Down Expand Up @@ -501,6 +508,7 @@ def get_top_users(
"login": commentor,
"count": count,
"avatarUrl": author.avatarUrl,
"twitterUsername": author.twitterUsername,
"url": author.url,
}
)
Expand Down Expand Up @@ -550,6 +558,7 @@ def get_top_users(
"login": login,
"count": contributors[login], #+ question_commentors[login],
"avatarUrl": user.avatarUrl,
"twitterUsername": user.twitterUsername,
"url": user.url,
}
)
Expand Down

0 comments on commit d06cf8e

Please sign in to comment.