@@ -10,7 +10,7 @@ def list_repos_and_add_to_github_teams(org_name: str, github_team_name: str, sea
1010 """
1111 # GitHub endpoint for listing repos under an organization
1212 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}")
1414
1515 headers = {
1616 "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
6060 ### Adding repos to teams ###
6161 # GitHub endpoint for listing teamws under an organization
6262 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}")
6464
6565 headers = {
6666 "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
7272 params = {'per_page' : per_page , 'page' : page }
7373 response = requests .get (team_url , headers = headers , params = params )
7474 response_json = response .json () ## Github team details
75- print ("wait" )
7675
7776 team_slug = "" # defining empty team slug
7877 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
8584
8685 # GitHub endpoint for adding repos to a team in an organization
8786 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}")
8988
9089 headers = {
9190 "Accept" : "application/vnd.github+json" ,
0 commit comments