MCPcopy Create free account
hub / github.com/refined-github/refined-github / deleteRepository

Function deleteRepository

source/features/quick-repo-deletion.tsx:27–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27async function deleteRepository(): Promise<void> {
28 const {nameWithOwner} = getRepo()!;
29 await expectTokenScope('delete_repo');
30 await api.v3('/repos/' + nameWithOwner, {
31 method: 'DELETE',
32 responseFormat: 'text',
33 });
34}
35
36async function modifyUiAfterSuccessfulDeletion(): Promise<void> {
37 const {nameWithOwner, owner} = getRepo()!;

Callers

nothing calls this directly

Calls 1

expectTokenScopeFunction · 0.85

Tested by

no test coverage detected