Skip to content

Commit 228fa05

Browse files
authored
all: Drop outdated TODOs (#383)
[skip changelog]: no user facing changes
1 parent 706fc98 commit 228fa05

File tree

8 files changed

+2
-14
lines changed

8 files changed

+2
-14
lines changed

branch_submit.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ func (cmd *branchSubmitCmd) run(
144144
log.Errorf(" gs branch restack --branch=%s", cmd.Branch)
145145
log.Errorf("Or, try again with --force to submit anyway.")
146146
return errors.New("refusing to submit outdated branch")
147-
// TODO: this can be made optional with a --force or a prompt.
148147
}
149148
}
150149

branch_untrack.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ func (cmd *branchUntrackCmd) Run(ctx context.Context, log *log.Logger, opts *glo
3939
}
4040
}
4141

42-
// TODO: prompt for confirmation?
4342
if err := svc.ForgetBranch(ctx, cmd.Branch); err != nil {
4443
if errors.Is(err, state.ErrNotExist) {
4544
return errors.New("branch not tracked")

dumpmd.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ func (cmd *cliDumper) dump(app *kong.Application) {
109109
cmdByGroup[key] = append(cmdByGroup[key], subcmd)
110110
}
111111

112-
// TODO: separate "inspect" and "dump" steps
113112
cmd.println("```")
114113
cmd.println("gs" + app.Summary())
115114
cmd.println("```")

internal/forge/github/change_meta.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var _ forge.ChangeMetadata = (*PRMetadata)(nil)
2020

2121
// ForgeID reports the forge ID that owns this metadata.
2222
func (*PRMetadata) ForgeID() string {
23-
return "github" // TODO: const
23+
return "github"
2424
}
2525

2626
// ChangeID reports the change ID of the pull request.

internal/forge/shamhub/change_meta.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type ChangeMetadata struct {
1717

1818
// ForgeID reports the forge ID that owns this metadata.
1919
func (*ChangeMetadata) ForgeID() string {
20-
return "shamhub" // TODO: const
20+
return "shamhub"
2121
}
2222

2323
// ChangeID reports the change ID of the change.

internal/spice/restack.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ func (s *Service) Restack(ctx context.Context, name string) (*RestackResponse, e
8686
Quiet: true,
8787
}); err != nil {
8888
return nil, fmt.Errorf("rebase: %w", err)
89-
// TODO: detect conflicts in rebase,
90-
// print message about "gs rebase continue"
9189
}
9290

9391
err = s.store.UpdateBranch(ctx, &state.UpdateRequest{

internal/spice/template.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ func (s *Service) ListChangeTemplates(
2222
remoteName string,
2323
fr forge.Repository,
2424
) ([]*forge.ChangeTemplate, error) {
25-
// TODO: Should Repo be injected?
2625
pathSet := make(map[string]struct{})
2726
for _, p := range fr.Forge().ChangeTemplatePaths() {
2827
pathSet[p] = struct{}{}

repo_sync.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -407,11 +407,5 @@ func (cmd *repoSyncCmd) deleteMergedBranches(
407407
}
408408
}
409409

410-
// TODO:
411-
// If --restack is set, restack the affected branches
412-
// (or restack just the branches in this stack?)
413-
// For this, we need the Delete operation to report the affected
414-
// branches, which means it has to be refactored into a spice-level
415-
// operation first.
416410
return nil
417411
}

0 commit comments

Comments
 (0)