Skip to content

Commit

Permalink
Add missing update from #21
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidajafarbigloo authored Nov 18, 2024
1 parent 187ed8f commit 930e70b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions meta_creator/github_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ def get_contributors_from_repo(owner, repo, token, url):
"email": contributor_email,
})
seen_names.add(contributor_name) # to return unique metadata
return metadata
sorted_metadata = sorted(metadata, key=lambda x: x['givenName'].lower())
return sorted_metadata
else:
print(f"Failed to retrieve commit history: {response.status_code}")
return None
Expand Down Expand Up @@ -173,12 +174,12 @@ def get_github_metadata(url, personal_token_key):
# "publisher": namespaceName,
"keywords": topics,
"downloadUrl": download_url,
"permissions": "",
# "permissions": "",
"readme": readme_url,
"author": [{"@type": "Person",
"givenName": "",
"familyName": ""
}],
"contributor": contributors_metadata,
}
return metadata_dict
return metadata_dict

0 comments on commit 930e70b

Please sign in to comment.