Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sebastianrevuelta
Copy link
Contributor

Added azure contributors last 30 days

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')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Semgrep found a match

Suggested change
print('Data written to azure_repos_contributors.csv')
logging.info('Data written to azure_repos_contributors.csv')
Ignore this finding from avoid_print_python_rule.

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}")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Semgrep found a match

Suggested change
print(f"{project_name} , {repo['id']}-{contributor_commits}")
logging.info(f"{project_name} , {repo['id']}-{contributor_commits}")
Ignore this finding from avoid_print_python_rule.

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']}")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Semgrep found a match

Suggested change
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']}")
Ignore this finding from avoid_print_python_rule.

for project in projects:
project_name = project['name']
repositories = get_repositories(project_name)
print(f"list of repos in project: {project_name} -- {repositories}")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Semgrep found a match

Suggested change
print(f"list of repos in project: {project_name} -- {repositories}")
logging.info(f"list of repos in project: {project_name} -- {repositories}")
Ignore this finding from avoid_print_python_rule.


# Get projects
projects = get_projects()
print(f"list of projects: {projects}")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Semgrep found a match

Suggested change
print(f"list of projects: {projects}")
logging.info(f"list of projects: {projects}")
Ignore this finding from avoid_print_python_rule.

@armchairlinguist
Copy link
Contributor

@sebastianrevuelta what on earth are you doing writing scripts right now?! You're supposed to be out of the office. 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants