Skip to content

Commit c4f19f2

Browse files
committed
feat(github): add automatic pull request merging support
Introduce automatic pull request merging capability (`auto_merge_pull_requests`) to class `Repository` in `github_rest_api/github.py` along with support functions, validating author/reviewer lists, title Conventional-Commit types, head commit minimum age, and clean mergeable state. Add comprehensive test coverage in `tests/test_github.py` and bump package version to 0.44.0.
1 parent 9d2c46c commit c4f19f2

4 files changed

Lines changed: 740 additions & 3 deletions

File tree

github_rest_api/__init__.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
"""GitHub REST APIs."""
22

33
from .github import (
4+
MergeMethod,
45
Organization,
56
Repository,
67
RepositoryType,
78
SecretVisibility,
89
User,
910
)
1011

11-
__all__ = ["Organization", "Repository", "RepositoryType", "SecretVisibility", "User"]
12+
__all__ = [
13+
"MergeMethod",
14+
"Organization",
15+
"Repository",
16+
"RepositoryType",
17+
"SecretVisibility",
18+
"User",
19+
]

0 commit comments

Comments
 (0)