// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package org_tangled
// schema: org.tangled.temp.migrator.describeSource
import (
"context"
"github.com/bluesky-social/indigo/lex/util"
)
const (
TempMigratorDescribeSourceNSID = "org.tangled.temp.migrator.describeSource"
)
// TempMigratorDescribeSource_Output is the output of a org.tangled.temp.migrator.describeSource call.
type TempMigratorDescribeSource_Output struct {
// defaultBranch: Branch HEAD points at on the remote.
DefaultBranch string `json:"defaultBranch" cborgen:"defaultBranch"`
// name: Repository name derived from the URL.
Name string `json:"name" cborgen:"name"`
}
// TempMigratorDescribeSource calls the XRPC method "org.tangled.temp.migrator.describeSource".
//
// sourceUrl: HTTPS clone URL of the source repository.
func TempMigratorDescribeSource(ctx context.Context, c util.LexClient, sourceUrl string) (*TempMigratorDescribeSource_Output, error) {
var out TempMigratorDescribeSource_Output
params := map[string]interface{}{}
params["sourceUrl"] = sourceUrl
if err := c.LexDo(ctx, util.Query, "", "org.tangled.temp.migrator.describeSource", params, nil, &out); err != nil {
return nil, err
}
return &out, nil
}