MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / mark_notifications_as_read

Method mark_notifications_as_read

github/Repository.py:3920–3928  ·  view source on GitHub ↗

:calls: `PUT /repos/{owner}/{repo}/notifications `_ :param last_read_at: datetime

(self, last_read_at: datetime = datetime.now(timezone.utc))

Source from the content-addressed store, hash-verified

3918 )
3919
3920 def mark_notifications_as_read(self, last_read_at: datetime = datetime.now(timezone.utc)) -> None:
3921 """
3922 :calls: `PUT /repos/{owner}/{repo}/notifications <https://docs.github.com/en/rest/reference/activity#notifications>`_
3923 :param last_read_at: datetime
3924 """
3925 assert isinstance(last_read_at, datetime)
3926 put_parameters = {"last_read_at": last_read_at.strftime("%Y-%m-%dT%H:%M:%SZ")}
3927
3928 headers, data = self._requester.requestJsonAndCheck("PUT", f"{self.url}/notifications", input=put_parameters)
3929
3930 def merge(self, base: str, head: str, commit_message: Opt[str] = NotSet) -> Commit | None:
3931 """

Callers 2

Calls 2

nowMethod · 0.80
requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected