Skip to content

release: v0.8.0#569

Draft
perber wants to merge 11 commits intomainfrom
release/v0.8.0
Draft

release: v0.8.0#569
perber wants to merge 11 commits intomainfrom
release/v0.8.0

Conversation

@perber
Copy link
Owner

@perber perber commented Jan 8, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 8, 2026 13:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements a major version upgrade to schema v2, introducing YAML frontmatter support for markdown files and migrating from Go's standard log package to structured logging with slog. The changes enable better metadata management and improve logging consistency across the application.

Key changes:

  • Schema migration system enhanced to support incremental migrations with per-version schema file updates
  • New frontmatter parsing and generation functionality with robust handling of edge cases
  • Migration to structured logging using slog with configurable log levels

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
internal/core/tree/frontmatter.go New file implementing YAML frontmatter parsing, splitting, and building functions with heuristic detection
internal/core/tree/frontmatter_test.go Comprehensive test coverage for frontmatter functionality including edge cases
internal/core/tree/tree_service.go Enhanced migration system, added v2 migration for frontmatter backfill, migrated to slog
internal/core/tree/tree_service_test.go New migration tests and updated existing tests for frontmatter support, translated German comments
internal/core/tree/page_store.go Updated CRUD operations to include frontmatter in all file operations, new ReadPageRaw method
internal/core/tree/page_store_test.go Updated test expectations to account for frontmatter in created files
internal/core/tree/schema.go Bumped CurrentSchemaVersion from 1 to 2
internal/core/tree/errors.go Added ErrFrontmatterParse and ErrFileNotFound error types
cmd/leafwiki/main.go Added structured logging setup with LOG_LEVEL environment variable support
go.mod Added gopkg.in/yaml.v3 dependency for YAML parsing
go.sum Updated with new yaml.v3 and transitive dependencies

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@perber perber marked this pull request as draft January 8, 2026 15:08
@perber perber changed the title Release/v0.8.0 release: v0.8.0 Jan 8, 2026
@perber perber force-pushed the release/v0.8.0 branch 2 times, most recently from 117d9d1 to 56c871e Compare January 14, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant