-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create azure_contributors.py #56
base: main
Are you sure you want to change the base?
Conversation
Added azure contributors last 30 days
# Write to CSV | ||
writer.writerow([project_name, repo['name'], author, data['email_contributor'], data['commits'], data['last_commit_date']]) | ||
|
||
print('Data written to azure_repos_contributors.csv') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semgrep found a match
print('Data written to azure_repos_contributors.csv') | |
logging.info('Data written to azure_repos_contributors.csv') |
contributor_commits[author]['commits'] += 1 | ||
contributor_commits[author]['last_commit_date'] = max(contributor_commits[author]['last_commit_date'], date) | ||
contributor_commits[author]['email_contributor'] = email_contributor | ||
print(f"{project_name} , {repo['id']}-{contributor_commits}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semgrep found a match
print(f"{project_name} , {repo['id']}-{contributor_commits}") | |
logging.info(f"{project_name} , {repo['id']}-{contributor_commits}") |
print(f"list of repos in project: {project_name} -- {repositories}") | ||
|
||
for repo in repositories: | ||
print(f"calculating contributor count for project: {project_name} -- repo: {repo['id']}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semgrep found a match
print(f"calculating contributor count for project: {project_name} -- repo: {repo['id']}") | |
logging.info(f"calculating contributor count for project: {project_name} -- repo: {repo['id']}") |
for project in projects: | ||
project_name = project['name'] | ||
repositories = get_repositories(project_name) | ||
print(f"list of repos in project: {project_name} -- {repositories}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semgrep found a match
print(f"list of repos in project: {project_name} -- {repositories}") | |
logging.info(f"list of repos in project: {project_name} -- {repositories}") |
|
||
# Get projects | ||
projects = get_projects() | ||
print(f"list of projects: {projects}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semgrep found a match
print(f"list of projects: {projects}") | |
logging.info(f"list of projects: {projects}") |
@sebastianrevuelta what on earth are you doing writing scripts right now?! You're supposed to be out of the office. 😂 |
Added azure contributors last 30 days