l.c.i.w.IGitRepository(IGitRepositoryView, IGitRepositoryModerateAttributes, IGitRepositoryModerate, IGitRepositoryEditableAttributes, IGitRepositoryEdit) : interface documentation

Part of lp.code.interfaces.webservice View In Hierarchy

A Git repository.

Inherited from IGitRepositoryView:

Int id Undocumented
Attribute namespace The namespace of this repository, as an IGitNamespace.
Attribute code_reviewer The reviewer if set, otherwise the owner of the repository.
Attribute shortened_path The shortest reasonable version of the path to this repository.
Method isPersonTrustedReviewer Return true if the reviewer is a trusted reviewer.
Attribute identity The identity of this repository: a VCS-independent synonym for git_identity.
Attribute branches_by_date The branch references present in this repository, ordered by last commit date.
Attribute rules The access rules for this repository.
Attribute grants The access grants for this repository.
Method getRefByPath Look up a single reference in this repository by path.
Method createOrUpdateRefs Create or update a set of references in this repository.
Method removeRefs Remove a set of references in this repository.
Method planRefChanges Plan ref changes based on information from the hosting service.
Method fetchRefCommits Fetch commit information from the hosting service for a set of refs.
Method synchroniseRefs Synchronise references with those from the hosting service.
Method setOwnerDefault Set whether this repository is the default for its owner-target.
Method setTargetDefault Set whether this repository is the default for its target.
Method getCodebrowseUrl Construct a browsing URL for this Git repository.
Method getCodebrowseUrlForRevision The URL to the commit of the merge to the target branch
Method getLatestScanJob Return the last IGitRefScanJobSource for this repository
Method visibleByUser Can the specified user see this repository?
Method getAllowedInformationTypes Get a list of acceptable `InformationType`s for this repository.
Method getInternalPath Get the internal path to this repository.
Method getRepositoryDefaults Return a sorted list of ICanHasDefaultGitRepository objects.
Method getRepositoryIdentities A list of aliases for a repository.
Method userCanBeSubscribed Return True if the IPerson can be subscribed to the repository.
Method subscribe Subscribe this person to the repository.
Method getSubscription Return the GitSubscription for this person.
Method hasSubscription Is this person subscribed to the repository?
Method unsubscribe Remove the person's subscription to this repository.
Method getSubscriptionsByLevel Return the subscriptions that are at the given notification levels.
Method getNotificationRecipients Return a complete INotificationRecipientSet instance.
Attribute landing_targets A collection of the merge proposals where this repository is the source.
Attribute landing_candidates A collection of the merge proposals where this repository is the target.
Method getPrecachedLandingTargets Return precached landing targets.
Method getPrecachedLandingCandidates Return precached landing candidates.
Method getMergeProposals Return matching BranchMergeProposals.
Method getMergeProposalByID Return this repository's merge proposal with this id, or None.
Method isRepositoryMergeable Is the other repository mergeable into this one (or vice versa)?
Attribute pending_updates Whether there are recent changes in this repository that have not yet been scanned.
Method updateMergeCommitIDs Update commit SHA1s of merge proposals for this repository.
Method updateLandingTargets Update landing targets (MPs where this repository is the source).
Method markRecipesStale Mark recipes associated with this repository as stale.
Method markSnapsStale Mark snap packages associated with this repository as stale.
Method detectMerges Detect merges of landing candidates.
Method getBlob Get a blob by file name from this repository.
Method getDiff Get the diff between two commits in this repository.
Method getRule Get the access rule for this repository with a given pattern.
Method getActivity Get activity log entries for this repository.
Method getPrecachedActivity Activity log entries are preloaded.
Method issueAccessToken Issue an access token for this repository.

Inherited from IGitRepositoryModerate:

Method transitionToInformationType Set the information type for this repository.

Inherited from IGitRepositoryEdit:

Method setName Set the name of the repository to be new_name.
Method setOwner Set the owner of the repository to be new_owner.
Method setTarget Set the target of the repository.
Method rescan Force a rescan of this repository.
Method addRule Add an access rule to this repository.
Method moveRule Move a rule to a new position in its repository's rule order.
Method findRuleGrantsByGrantee Find the grants for a grantee applied to this repository.
Method getRules Get the access rules for this repository.
Method setRules Set the access rules for this repository.
Method checkRefPermissions Check a person's permissions on some references in this repository.
Method api_checkRefPermissions Check a person's permissions on some references in this repository.
Method canBeDeleted Can this repository be deleted in its current state?
Method getDeletionRequirements Determine what is required to delete this branch.
Method destroySelf Delete the specified repository.

Inherited from IWebhookTarget (via IGitRepositoryEdit):

List valid_webhook_event_types Valid event types for this object type.
List default_webhook_event_types Default event types for new webhooks attached to this object type.
Method newWebhook Create a new webhook.
API Documentation for Launchpad, generated by pydoctor at 2019-09-23 00:00:04.