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

Class Repository

github/Repository.py:342–4941  ·  view source on GitHub ↗

This class represents Repositories. The reference can be found here https://docs.github.com/en/rest/reference/repos The OpenAPI schema can be found at - /components/schemas/event/properties/repo - /components/schemas/full-repository - /components/schemas/minimal-repos

Source from the content-addressed store, hash-verified

340
341
342class Repository(CompletableGithubObject):
343 """
344 This class represents Repositories.
345
346 The reference can be found here
347 https://docs.github.com/en/rest/reference/repos
348
349 The OpenAPI schema can be found at
350
351 - /components/schemas/event/properties/repo
352 - /components/schemas/full-repository
353 - /components/schemas/minimal-repository
354 - /components/schemas/nullable-repository
355 - /components/schemas/pull-request-minimal/properties/base/properties/repo
356 - /components/schemas/pull-request-minimal/properties/head/properties/repo
357 - /components/schemas/repository
358 - /components/schemas/simple-repository
359
360 """
361
362 def _initAttributes(self) -> None:
363 self._allow_auto_merge: Attribute[bool] = NotSet
364 self._allow_forking: Attribute[bool] = NotSet
365 self._allow_merge_commit: Attribute[bool] = NotSet
366 self._allow_rebase_merge: Attribute[bool] = NotSet
367 self._allow_squash_merge: Attribute[bool] = NotSet
368 self._allow_update_branch: Attribute[bool] = NotSet
369 self._anonymous_access_enabled: Attribute[bool] = NotSet
370 self._archive_url: Attribute[str] = NotSet
371 self._archived: Attribute[bool] = NotSet
372 self._assignees_url: Attribute[str] = NotSet
373 self._blobs_url: Attribute[str] = NotSet
374 self._branches_url: Attribute[str] = NotSet
375 self._clone_url: Attribute[str] = NotSet
376 self._code_of_conduct: Attribute[dict[str, Any]] = NotSet
377 self._collaborators_url: Attribute[str] = NotSet
378 self._comments_url: Attribute[str] = NotSet
379 self._commits_url: Attribute[str] = NotSet
380 self._compare_url: Attribute[str] = NotSet
381 self._contents_url: Attribute[str] = NotSet
382 self._contributors_url: Attribute[str] = NotSet
383 self._created_at: Attribute[datetime] = NotSet
384 self._custom_properties: Attribute[dict[str, None | str | list]] = NotSet # type: ignore
385 self._default_branch: Attribute[str] = NotSet
386 self._delete_branch_on_merge: Attribute[bool] = NotSet
387 self._deployments_url: Attribute[str] = NotSet
388 self._description: Attribute[str] = NotSet
389 self._disabled: Attribute[bool] = NotSet
390 self._downloads_url: Attribute[str] = NotSet
391 self._events_url: Attribute[str] = NotSet
392 self._fork: Attribute[bool] = NotSet
393 self._forks: Attribute[int] = NotSet
394 self._forks_count: Attribute[int] = NotSet
395 self._forks_url: Attribute[str] = NotSet
396 self._full_name: Attribute[str] = NotSet
397 self._git_commits_url: Attribute[str] = NotSet
398 self._git_refs_url: Attribute[str] = NotSet
399 self._git_tags_url: Attribute[str] = NotSet

Callers 1

create_forkMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…