Skip to content

Commit

Permalink
implement Milestone.close, Milestone.reopen
Browse files Browse the repository at this point in the history
  • Loading branch information
ShineyDev committed Feb 18, 2025
1 parent 64c7dc7 commit f70bdc7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions github/repository/milestone.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

if TYPE_CHECKING:
from typing import cast
from typing_extensions import Never

from github.connection import Connection, IssueOrder, PullOrder
from github.core.http import HTTPClient
Expand Down Expand Up @@ -506,6 +507,32 @@ def fetch_pulls(
**kwargs,
)

async def close(
self,
/,
) -> Never:
"""
.. attention::
Currently, there is no way to close milestones via GitHub's
GraphQL API. Use of this mutation will always raise.
"""

raise NotImplementedError

async def reopen(
self,
/,
) -> Never:
"""
.. attention::
Currently, there is no way to close milestones via GitHub's
GraphQL API. Use of this mutation will always raise.
"""

raise NotImplementedError


__all__ = [
"Milestone",
Expand Down

0 comments on commit f70bdc7

Please sign in to comment.