Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
537 changes: 537 additions & 0 deletions labels-survey/Label_Analysis.ipynb

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions labels-survey/get_labels.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import os
from dotenv import load_dotenv
from repos import *
load_dotenv()



organizations = ['hackforla', '100automations', 'civictechindex', 'civictechstructure', 'hackla-engage'] # suggested orgs: 'hackforla', '100automations', 'civictechindex',
# 'civictechstructure', 'hackla-engage'
print(organizations)
token = os.getenv("TOKEN")

username = os.getenv("USERNAME")
csv_filename = 'output.csv'
state = 'all'

authenticate(username, token) # Just to verify token and username are OK
create_csv(csv_filename)


for organization in organizations:
my_repos = Repo(organization, token, csv_filename)
my_repos.get_repo_names()
for repo in my_repos.repos:
my_repos.get_issues(organization, repo, state)
Loading