MCPcopy
hub / github.com/github/github-mcp-server / LabelRepoMetadata

Function LabelRepoMetadata

pkg/ifc/ifc.go:168–173  ·  view source on GitHub ↗

LabelRepoMetadata returns the IFC label for structural repository metadata that only collaborators with write access can define: labels, branches, tags, releases, issue types, issue field definitions, discussion categories, and the collaborator roster. Integrity is trusted because, unlike issue/PR/

(isPrivate bool)

Source from the content-addressed store, hash-verified

166// universally readable; private repositories restrict the reader set (the
167// opaque "private" marker, resolved client-side at egress time).
168func LabelRepoMetadata(isPrivate bool) SecurityLabel {
169 if isPrivate {
170 return PrivateTrusted()
171 }
172 return PublicTrusted()
173}
174
175// LabelRelease returns the IFC label for repository releases (list_releases,
176// get_latest_release, get_release_by_tag).

Callers 3

ListIssueTypesFunction · 0.92
ListIssueFieldsFunction · 0.92
TestLabelRepoMetadataFunction · 0.85

Calls 2

PrivateTrustedFunction · 0.85
PublicTrustedFunction · 0.85

Tested by 1

TestLabelRepoMetadataFunction · 0.68