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

Method get_issues

github/Organization.py:1212–1245  ·  view source on GitHub ↗

:calls: `GET /orgs/{org}/issues `_ :rtype: :class:`PaginatedList` of :class:`github.Issue.Issue` :param filter: string :param state: string :param labels: list of :class:`github.Label.Label` :param sor

(
        self,
        filter: Opt[str] = NotSet,
        state: Opt[str] = NotSet,
        labels: Opt[list[Label]] = NotSet,
        sort: Opt[str] = NotSet,
        direction: Opt[str] = NotSet,
        since: Opt[datetime] = NotSet,
    )

Source from the content-addressed store, hash-verified

1210 )
1211
1212 def get_issues(
1213 self,
1214 filter: Opt[str] = NotSet,
1215 state: Opt[str] = NotSet,
1216 labels: Opt[list[Label]] = NotSet,
1217 sort: Opt[str] = NotSet,
1218 direction: Opt[str] = NotSet,
1219 since: Opt[datetime] = NotSet,
1220 ) -> PaginatedList[Issue]:
1221 """
1222 :calls: `GET /orgs/{org}/issues <https://docs.github.com/en/rest/reference/issues>`_
1223 :rtype: :class:`PaginatedList` of :class:`github.Issue.Issue`
1224 :param filter: string
1225 :param state: string
1226 :param labels: list of :class:`github.Label.Label`
1227 :param sort: string
1228 :param direction: string
1229 :param since: datetime
1230 :rtype: :class:`PaginatedList` of :class:`github.Issue.Issue`
1231 """
1232 assert is_optional(filter, str), filter
1233 assert is_optional(state, str), state
1234 assert is_optional_list(labels, github.Label.Label), labels
1235 assert is_optional(sort, str), sort
1236 assert is_optional(direction, str), direction
1237 assert is_optional(since, datetime), since
1238 url_parameters: dict[str, Any] = NotSet.remove_unset_items(
1239 {"filter": filter, "state": state, "sort": sort, "direction": direction}
1240 )
1241 if is_defined(labels):
1242 url_parameters["labels"] = ",".join(label.name for label in labels)
1243 if is_defined(since):
1244 url_parameters["since"] = since.strftime("%Y-%m-%dT%H:%M:%SZ")
1245 return PaginatedList(github.Issue.Issue, self._requester, f"{self.url}/issues", url_parameters)
1246
1247 def get_members(
1248 self,

Callers

nothing calls this directly

Calls 5

is_optionalFunction · 0.90
is_optional_listFunction · 0.90
is_definedFunction · 0.90
PaginatedListClass · 0.90
remove_unset_itemsMethod · 0.80

Tested by

no test coverage detected