Skip to content

Commit aee737c

Browse files
DEVOPS-39 added dependabot and fixed minor logging issues
1 parent 5270e56 commit aee737c

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

.github/dependabot.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
# Assignees to set on pull requests
8+
assignees:
9+
- "githubofkrishnadhas"
10+
# prefix specifies a prefix for all commit messages. When you specify a prefix for commit messages,
11+
# GitHub will automatically add a colon between the defined prefix and the commit message provided the
12+
# defined prefix ends with a letter, number, closing parenthesis, or closing bracket.
13+
commit-message:
14+
prefix: "dependabot python package"
15+
# Use reviewers to specify individual reviewers or teams of reviewers for all pull requests raised for a package manager.
16+
reviewers:
17+
- "devwithkrishna/admin"
18+
# Raise pull requests for version updates to pip against the `main` branch
19+
target-branch: "main"
20+
# Labels on pull requests for version updates only
21+
labels:
22+
- "pip dependencies"
23+
# Increase the version requirements for Composer only when required
24+
versioning-strategy: increase-if-necessary
25+
# Dependabot opens a maximum of five pull requests for version updates. Once there are five open pull requests from Dependabot,
26+
# Dependabot will not open any new requests until some of those open requests are merged or closed.
27+
# Use open-pull-requests-limit to change this limit.
28+
open-pull-requests-limit: 10

list_repos_and_add_to_teams.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)