diff --git a/githubkit/rest/activity.py b/githubkit/rest/activity.py index 4a03a1280..985673b51 100644 --- a/githubkit/rest/activity.py +++ b/githubkit/rest/activity.py @@ -418,6 +418,38 @@ async def async_get_thread( }, ) + def mark_thread_as_done( + self, + thread_id: int, + *, + headers: Optional[Dict[str, str]] = None, + ) -> "Response": + url = f"/notifications/threads/{thread_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "DELETE", + url, + headers=exclude_unset(headers), + ) + + async def async_mark_thread_as_done( + self, + thread_id: int, + *, + headers: Optional[Dict[str, str]] = None, + ) -> "Response": + url = f"/notifications/threads/{thread_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "DELETE", + url, + headers=exclude_unset(headers), + ) + def mark_thread_as_read( self, thread_id: int,
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: