Skip to content

Ak96/refactor contributor script again#730

Draft
aaruni96 wants to merge 6 commits intooscar-system:gh-pagesfrom
aaruni96:ak96/refactor-contributor-script-again
Draft

Ak96/refactor contributor script again#730
aaruni96 wants to merge 6 commits intooscar-system:gh-pagesfrom
aaruni96:ak96/refactor-contributor-script-again

Conversation

@aaruni96
Copy link
Copy Markdown
Member

@aaruni96 aaruni96 commented Dec 9, 2025

No description provided.

@aaruni96 aaruni96 force-pushed the ak96/refactor-contributor-script-again branch from ae3f1f7 to 6abda7e Compare December 12, 2025 17:41
Comment on lines +55 to +59
"# This is because people are marked as retired if the update script could not find them in "
"any repo.\n"
"# Retired people only have repo information if repo information about them was known when "
"they were\n"
"# active (or manually added) by a maintainer.\n\n"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really weird. How about using a triple quoted string, and just wrap the lines here as they'll be wrapped in the generated file?


def process_log_into_aggregate(res: str, repo: str) -> None:
global summarystring, aggregate #, email_owner, name_owner
global summarystring, aggregate # email_owner, name_owner
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
global summarystring, aggregate # email_owner, name_owner
global summarystring, aggregate


def _norm_name(s: str) -> str:
return " ".join((s or "").split()).casefold()
def find_author_github_nick(email: str, repos: list[str]) -> str:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe rename to find_github_username? This is not a "nick" or "nickname", after all.

return " ".join((s or "").split()).casefold()
def find_author_github_nick(email: str, repos: list[str]) -> str:
if not email:
return ""
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This used to return None. The value is then passed on to lookup_user which does not seem ready for this change? (I also find None logically cleaner, but that's a matter of taste shrug)

@HereAround
Copy link
Copy Markdown
Member

@aaruni96 Just a pointer that this will have conflicts with #754 (once merged). What is the status of this draft?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants