comAtprotoSpaceGetLatestCommit function
Get the current commit of a space repo. Responses are authenticated with a MAC. Requires auth as the repo's account or with a space credential; implemented by PDS.
Implementation
Future<XRPCResponse<SpaceGetLatestCommitOutput>>
comAtprotoSpaceGetLatestCommit({
required String space,
required String repo,
required ServiceContext $ctx,
String? $service,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.get(
ns.comAtprotoSpaceGetLatestCommit,
service: $service,
headers: $headers,
parameters: {...?$unknown, 'space': space, 'repo': repo},
to: const SpaceGetLatestCommitOutputConverter().fromJson,
);