Skip to content

Commit

Permalink
Use final part of url for name
Browse files Browse the repository at this point in the history
  • Loading branch information
HCookie committed Oct 16, 2024
1 parent 484ecf2 commit 22c6cf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contributors/contributors.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def get_contributors(
contribution_count=user.contributions_count,
commit_url=commit_url,
sponsor_info="",
organisations=list(map(lambda x: x.url, user.organizations())),
organisations=list(map(lambda x: x.url.split('/')[-1], user.organizations())),
)
contributors.append(contributor)
except Exception as e:
Expand Down
3 changes: 2 additions & 1 deletion contributors/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def validate_date_format(env_var_name: str) -> str:
def get_env_vars(
test: bool = False,
) -> tuple[
str | None, list[str], int | None, int | None, bytes, str, str, str, str, bool, bool
str | None, list[str], int | None, int | None, bytes, str, str, str, str, bool, bool, list
]:
"""
Get the environment variables for use in the action.
Expand All @@ -93,6 +93,7 @@ def get_env_vars(
str: the end date to get contributor information to.
str: whether to get sponsor information on the contributor
str: whether to link username to Github profile in markdown output
list: organisations to show
"""

Expand Down

0 comments on commit 22c6cf6

Please sign in to comment.