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

Method mark_notifications_as_read

github/AuthenticatedUser.py:1008–1017  ·  view source on GitHub ↗

:calls: `PUT /notifications `_

(self, last_read_at: datetime | None = None)

Source from the content-addressed store, hash-verified

1006 return status == 200
1007
1008 def mark_notifications_as_read(self, last_read_at: datetime | None = None) -> None:
1009 """
1010 :calls: `PUT /notifications <https://docs.github.com/en/rest/reference/activity#notifications>`_
1011 """
1012 if last_read_at is None:
1013 last_read_at = datetime.now(timezone.utc)
1014 assert isinstance(last_read_at, datetime)
1015 put_parameters = {"last_read_at": last_read_at.strftime("%Y-%m-%dT%H:%M:%SZ")}
1016
1017 headers, data = self._requester.requestJsonAndCheck("PUT", "/notifications", input=put_parameters)
1018
1019 def remove_from_emails(self, *emails: str) -> None:
1020 """

Callers

nothing calls this directly

Calls 2

nowMethod · 0.80
requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected