-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1049 from sigmavirus24/branch-protection
Update branch protection API support
- Loading branch information
Showing
23 changed files
with
747 additions
and
265 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
3.0.0: 2021-10-30 | ||
----------------- | ||
|
||
Backwards Incompatible Changes | ||
`````````````````````````````` | ||
|
||
- :meth:`~github3.repos.branch.Branch.protect` has been updated to reflect the | ||
GitHub API | ||
|
||
Features Added | ||
`````````````` | ||
|
||
- Add ``maintainer_can_modify`` parameter to | ||
:meth:`~github3.repos.repo.Repository.create_pull` | ||
|
||
- Add :attr:`~github3.repos.branch.BranchProtection.required_linear_history`, | ||
:attr:`~github3.repos.branch.BranchProtection.allow_force_pushes`, | ||
:attr:`~github3.repos.branch.BranchProtection.allow_deletions`, and | ||
:attr:`~github3.repos.branch.BranchProtection.required_conversation_resolution`. | ||
|
||
- Add support for blocking users to :class:`~github3.github.GitHub` and | ||
:class:`~github3.orgs.Organization`. | ||
|
||
- :meth:`~github3.github.GitHub.blocked_users` | ||
- :meth:`~github3.github.GitHub.block` | ||
- :meth:`~github3.github.GitHub.is_blocking` | ||
- :meth:`~github3.github.GitHub.unblock` | ||
- :meth:`~github3.orgs.Organization.blocked_users` | ||
- :meth:`~github3.orgs.Organization.block` | ||
- :meth:`~github3.orgs.Organization.is_blocking` | ||
- :meth:`~github3.orgs.Organization.unblock` | ||
|
||
- Add support for beta branch synchronization endpoint | ||
:meth:`~github3.repos.branch.Branch.sync_with_upstream` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,4 @@ | ||
"""Packaging logic.""" | ||
import re | ||
|
||
import setuptools | ||
|
||
__version__ = "" | ||
with open("src/github3/__about__.py") as fd: | ||
reg = re.compile(r'__version__ = [\'"]([^\'"]*)[\'"]') | ||
for line in fd: | ||
m = reg.match(line) | ||
if m: | ||
__version__ = m.group(1) | ||
break | ||
|
||
setuptools.setup( | ||
version=__version__, | ||
) | ||
setuptools.setup() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.