'Get commiters in a repo using Github API
I am using PyGithub to develop a proyect with networkx that creates graphs taking all the contributors in some repos and using them as nodes. However, I am not able to get the commiters from a repo using that library. Is there a way to get the commiters? help is much appreciated
code that I have:
from github import Github
import networkx as nx
def make_graph(commiters):
G = nx.complete_graph(commiters)
return G
def merge_graphs(G1, G2):
G = nx.complete_graph(G1.nodes() + G2.nodes())
token = (token)
g = Github(token)
for repo in g.get_user('user').get_repos():
print(repo.name)
repo.edit(has_wiki=False)
Solution 1:[1]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Aleksandr Baranov |
