Skip to content

Commit 2bfeedb

Browse files
authored
Ignored pydocteur in team members, Ignored checks other than github actions (#52)
1 parent 202f1e2 commit 2bfeedb

File tree

5 files changed

+208
-171
lines changed

5 files changed

+208
-171
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.8.2
1+
v1.8.4

pydocteur/github_api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ def get_pull_request(payload):
4545

4646
def get_trad_team_members() -> set:
4747
logger.debug("Getting default reviewers from team members")
48-
return {user.login for user in gh.get_organization("afpy").get_team_by_slug("traduction").get_members()}
48+
return {
49+
user.login
50+
for user in gh.get_organization("afpy").get_team_by_slug("traduction").get_members()
51+
if user.login != "PyDocTeur"
52+
}
4953

5054

5155
def has_pr_number(payload) -> bool:

pydocteur/pr_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
def is_pr_tests_passed(pr):
1111
logger.info(f"Checking PR #{pr.number} CI results")
1212
last_commit = [commit for commit in pr.get_commits()][-1]
13-
check_suites = last_commit.get_check_suites()
13+
check_suites = [suite for suite in last_commit.get_check_suites() if suite.app.name == "GitHub Actions"]
1414
statuses = [suite.status for suite in check_suites]
1515
conclusions = [suite.conclusion for suite in check_suites]
1616
are_all_checks_done = all(status == "completed" for status in statuses)

0 commit comments

Comments
 (0)