@@ -10,7 +10,7 @@ def list_repos_and_add_to_github_teams(org_name: str, github_team_name: str, sea
10
10
"""
11
11
# GitHub endpoint for listing repos under an organization
12
12
repo_url = f"https://api.github.com/orgs/{ org_name } /repos"
13
- print (f"github api endpoint url { repo_url } " )
13
+ # print(f"github api endpoint url {repo_url}")
14
14
15
15
headers = {
16
16
"Accept" : "application/vnd.github+json" ,
@@ -60,7 +60,7 @@ def list_repos_and_add_to_github_teams(org_name: str, github_team_name: str, sea
60
60
### Adding repos to teams ###
61
61
# GitHub endpoint for listing teamws under an organization
62
62
team_url = f"https://api.github.com/orgs/{ org_name } /teams?per_page={ per_page } "
63
- print (f"github api endpoint url { team_url } " )
63
+ # print(f"github api endpoint url {team_url}")
64
64
65
65
headers = {
66
66
"Accept" : "application/vnd.github+json" ,
@@ -72,7 +72,6 @@ def list_repos_and_add_to_github_teams(org_name: str, github_team_name: str, sea
72
72
params = {'per_page' : per_page , 'page' : page }
73
73
response = requests .get (team_url , headers = headers , params = params )
74
74
response_json = response .json () ## Github team details
75
- print ("wait" )
76
75
77
76
team_slug = "" # defining empty team slug
78
77
for team in response_json :
@@ -85,7 +84,7 @@ def list_repos_and_add_to_github_teams(org_name: str, github_team_name: str, sea
85
84
86
85
# GitHub endpoint for adding repos to a team in an organization
87
86
repo_addition_url = f"https://api.github.com/orgs/{ org_name } /teams/{ team_slug } /repos/{ repo } "
88
- print (f"github api endpoint url { repo_addition_url } " )
87
+ # print(f"github api endpoint url {repo_addition_url}")
89
88
90
89
headers = {
91
90
"Accept" : "application/vnd.github+json" ,
0 commit comments