models

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectOptions

type CollectOptions struct {
	MaxCommits  int
	Since       *time.Time
	IncludeDiff bool
	// FullDiffCommits is how many of the newest commits keep full diffs.
	// Older commits are reduced to one-line summaries. 0 means all commits
	// keep diffs (previous behaviour).
	FullDiffCommits int
}

type CommitSummary

type CommitSummary struct {
	SHA          string    `json:"sha"`
	Message      string    `json:"message"`
	Author       string    `json:"author"`
	Timestamp    time.Time `json:"timestamp"`
	FilesChanged []string  `json:"files_changed"`
	DiffSnippet  string    `json:"diff_snippet"`
}

type Deadline

type Deadline struct {
	Date        time.Time `json:"date"`
	Description string    `json:"description"`
	DaysUntil   int       `json:"days_until"`
}

type GoalsData

type GoalsData struct {
	Now       string     `json:"now"`
	Next      string     `json:"next"`
	Deadlines []Deadline `json:"deadlines"`
	Someday   string     `json:"someday"`
}

type RegisteredRepo

type RegisteredRepo struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

RegisteredRepo represents a named repository registered with DevPulse.

type RepoData

type RepoData struct {
	Name        string          `json:"name"`
	Path        string          `json:"path"`
	Branch      string          `json:"branch"`
	HeadSHA     string          `json:"head_sha"`
	Commits     []CommitSummary `json:"commits"`
	PlanSummary string          `json:"plan_summary"`
	Notes       string          `json:"notes"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL