Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
bc3eaa2
git changes for dev deployments
k-anshul Jul 24, 2025
63cf85b
add git utils
k-anshul Jul 24, 2025
e475224
migrate git APIs to runtime server
k-anshul Jul 25, 2025
6a71bd7
only pull when triggered by user
k-anshul Jul 28, 2025
ac02810
self review 1
k-anshul Jul 28, 2025
5b3534f
self review 2
k-anshul Jul 28, 2025
1c1727f
merge tests
k-anshul Jul 28, 2025
ba0762e
more tests
k-anshul Jul 29, 2025
73772ac
Add http paths for APIs
k-anshul Jul 29, 2025
2b12101
debug test failures
k-anshul Jul 30, 2025
7519329
fix test failures
k-anshul Jul 30, 2025
8afd09f
add more debugging information
k-anshul Jul 30, 2025
65a8e03
more test fixes
k-anshul Jul 30, 2025
631b6f0
modify file driver
k-anshul Nov 25, 2025
cd9108b
review
k-anshul Nov 26, 2025
e8d7cca
lint
k-anshul Nov 26, 2025
8fbb760
resolve merge conflicts
k-anshul Dec 29, 2025
7dbbb43
minor changes
k-anshul Dec 29, 2025
c71e389
Merge remote-tracking branch 'origin/main' into git_dev_deployments
k-anshul Jan 5, 2026
fc9e34b
compile fix
k-anshul Jan 5, 2026
a1bdf69
some review comments
k-anshul Jan 7, 2026
75a9e1e
refactor editable
k-anshul Jan 7, 2026
5c1337d
Merge remote-tracking branch 'origin/main' into git_dev_deployments
k-anshul Jan 7, 2026
891dca6
todo
k-anshul Jan 7, 2026
65d5110
permissions check
k-anshul Jan 8, 2026
b80ab95
move to separate file
k-anshul Jan 9, 2026
4fe76bb
token and org should be fetched lazily
k-anshul Jan 9, 2026
237e172
Merge remote-tracking branch 'origin/main' into git_dev_deployments
k-anshul Jan 12, 2026
db60709
Merge remote-tracking branch 'origin/main' into git_dev_deployments
k-anshul Jan 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions admin/server/repos.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,15 @@ func (s *Server) GetRepoMeta(ctx context.Context, req *adminv1.GetRepoMetaReques
ep.Password = token
gitURL := ep.String()

var editBranch string
if depl != nil {
editBranch = depl.Branch
}

return &adminv1.GetRepoMetaResponse{
ExpiresOn: timestamppb.New(expiresAt),
LastUpdatedOn: timestamppb.New(proj.UpdatedOn),
GitUrl: gitURL,
GitSubpath: proj.Subpath,
GitBranch: depl.Branch,
GitEditBranch: editBranch,
ExpiresOn: timestamppb.New(expiresAt),
LastUpdatedOn: timestamppb.New(proj.UpdatedOn),
GitUrl: gitURL,
GitSubpath: proj.Subpath,
GitBranch: depl.Branch,
Editable: depl.Editable,
PrimaryBranch: proj.PrimaryBranch,
ManagedGitRepo: proj.ManagedGitRepoID != nil,
}, nil
}

Expand Down
6 changes: 4 additions & 2 deletions cli/pkg/cmdutil/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type Helper struct {
*printer.Printer
Version version.Version
DotRill dotrill.DotRill
HomeDir string
Interactive bool
Org string
AdminURLDefault string
Expand All @@ -63,6 +64,7 @@ func NewHelper(ver version.Version, homeDir string) (*Helper, error) {
ch := &Helper{
Printer: printer.NewPrinter(printer.FormatHuman),
DotRill: dotrill.New(homeDir),
HomeDir: homeDir,
Version: ver,
Interactive: true,
}
Expand Down Expand Up @@ -612,8 +614,8 @@ func (h *Helper) CommitAndSafePush(ctx context.Context, root string, config *git
}
return gitutil.CommitAndPush(ctx, root, config, commitMsg, author)
case "2":
// Instead of a force push, we do a merge with favourLocal=true to ensure we don't loose history.
// This is not euivalent to a force push but is safer for users.
// Instead of a force push, we do a merge with favourLocal=true to ensure we don't lose history.
// This is not equivalent to a force push but is safer for users.
if config.Subpath != "" {
// force pushing in a monorepo can overwrite other subpaths
// we can check for changes in other subpaths but it is tricky and error prone
Expand Down
7 changes: 6 additions & 1 deletion cli/pkg/local/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,12 @@ func NewApp(ctx context.Context, opts *AppOptions) (*App, error) {
connectors = append(connectors, olapConnector)

// The repo connector is the local project directory
repoConfig, err := structpb.NewStruct(map[string]any{"dsn": projectPath})
repoConfig, err := structpb.NewStruct(map[string]any{
"dsn": projectPath,
"admin_url_override": opts.Ch.AdminURLOverride,
"access_token_override": opts.Ch.AdminTokenOverride,
"home_dir": opts.Ch.HomeDir,
})
if err != nil {
return nil, err
}
Expand Down
12 changes: 8 additions & 4 deletions proto/gen/rill/admin/v1/admin.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5244,11 +5244,15 @@ definitions:
gitBranch:
type: string
description: The branch to use for the deployment.
gitEditBranch:
editable:
type: boolean
description: Whether editing is allowed. Set to true for dev deployments.
primaryBranch:
type: string
description: |-
A unique branch name generated for temporary/ephemeral use in edit mode where files may be mutated.
This enables checkpointing progress across hibernations and also more easily pinning to a specific commit of the base branch to delay conflict resolution.
description: Primary branch of the project.
managedGitRepo:
type: boolean
description: Whether the git repo is managed by Rill.
archiveDownloadUrl:
type: string
description: Signed URL for downloading a tarball of project files. If this is set, the git_* fields will be empty (and vice versa).
Expand Down
5,867 changes: 2,944 additions & 2,923 deletions proto/gen/rill/admin/v1/api.pb.go

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion proto/gen/rill/admin/v1/api.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions proto/gen/rill/admin/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -825,18 +825,16 @@ components:
archiveId:
description: A stable ID for the archive returned from archive_download_url.
type: string
editable:
description: Whether editing is allowed. Set to true for dev deployments.
type: boolean
expiresOn:
description: How long the returned config is valid for. Clients should call GetRepoMeta again after this time.
format: date-time
type: string
gitBranch:
description: The branch to use for the deployment.
type: string
gitEditBranch:
description: |-
A unique branch name generated for temporary/ephemeral use in edit mode where files may be mutated.
This enables checkpointing progress across hibernations and also more easily pinning to a specific commit of the base branch to delay conflict resolution.
type: string
gitSubpath:
description: Optional subpath within the Git repository to use as the project root.
type: string
Expand All @@ -849,6 +847,12 @@ components:
description: When the returned config was last modified. This covers all fields in the response except the ephemeral credentials embedded in git_url and archive_download_url.
format: date-time
type: string
managedGitRepo:
description: Whether the git repo is managed by Rill.
type: boolean
primaryBranch:
description: Primary branch of the project.
type: string
type: object
v1GetReportMetaResponse:
properties:
Expand Down
14 changes: 9 additions & 5 deletions proto/gen/rill/admin/v1/public.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -825,18 +825,16 @@ components:
archiveId:
description: A stable ID for the archive returned from archive_download_url.
type: string
editable:
description: Whether editing is allowed. Set to true for dev deployments.
type: boolean
expiresOn:
description: How long the returned config is valid for. Clients should call GetRepoMeta again after this time.
format: date-time
type: string
gitBranch:
description: The branch to use for the deployment.
type: string
gitEditBranch:
description: |-
A unique branch name generated for temporary/ephemeral use in edit mode where files may be mutated.
This enables checkpointing progress across hibernations and also more easily pinning to a specific commit of the base branch to delay conflict resolution.
type: string
gitSubpath:
description: Optional subpath within the Git repository to use as the project root.
type: string
Expand All @@ -849,6 +847,12 @@ components:
description: When the returned config was last modified. This covers all fields in the response except the ephemeral credentials embedded in git_url and archive_download_url.
format: date-time
type: string
managedGitRepo:
description: Whether the git repo is managed by Rill.
type: boolean
primaryBranch:
description: Primary branch of the project.
type: string
type: object
v1GetReportMetaResponse:
properties:
Expand Down
Loading
Loading