Skip to content

Commit

Permalink
Test multi repos
Browse files Browse the repository at this point in the history
  • Loading branch information
HCookie committed Oct 17, 2024
1 parent 3073b0c commit 9382fe4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/contributors_report_testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ jobs:
SHOW_ORGANIZATIONS: ecmwf
# SPONSOR_INFO: "true"

- name: Run Contributors with multiple repos
run: python -m contributors
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# START_DATE: ${{ env.START_DATE }}
# END_DATE: ${{ env.END_DATE }}
REPOSITORY: hcookie/organizational_contributors,ecmwf/anemoi-training
SHOW_ORGANIZATIONS: ecmwf
# SPONSOR_INFO: "true"

- name: Show Contributor
shell: bash
run: cat contributors.md >> $GITHUB_STEP_SUMMARY
Expand Down
1 change: 1 addition & 0 deletions contributors/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ def get_contributor_table(
contribution_count = collaborator.contribution_count
if repository:
commit_urls = collaborator.commit_url
print(repository, type(repository))
if organization or len(repository) > 1:
# split the urls from the comma separated list and make them into markdown links
commit_url_list = collaborator.commit_url.split(",")
Expand Down

0 comments on commit 9382fe4

Please sign in to comment.