comAtprotoSpaceGetLatestCommit function

Future<XRPCResponse<SpaceGetLatestCommitOutput>> comAtprotoSpaceGetLatestCommit({
  1. required String space,
  2. required String repo,
  3. required ServiceContext $ctx,
  4. String? $service,
  5. Map<String, String>? $headers,
  6. Map<String, String>? $unknown,
})

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,
);