-
-
Save KyMidd/ee89c697b42bdf8466b7d798505205c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Define function | |
| def initialize_csv(): | |
| with open(GITHUB_ORG+"_repo_dependency_licensing.csv", 'w', newline='') as file: | |
| # Initialize writer | |
| writer = csv.writer(file) | |
| # Write header | |
| field = ["org", "repo", "dependency_name", "license"] | |
| writer.writerow(field) | |
| # Call function | |
| initialize_csv() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment