Skip to content

Create azure_contributors.py#56

Open
sebastianrevuelta wants to merge 1 commit intomainfrom
sebastianrevuelta-patch-1
Open

Create azure_contributors.py#56
sebastianrevuelta wants to merge 1 commit intomainfrom
sebastianrevuelta-patch-1

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