Skip to content

Add fields to .Archive#153

Merged
w568w merged 2 commits intomasterfrom
add-field
Jun 26, 2025
Merged

Add fields to .Archive#153
w568w merged 2 commits intomasterfrom
add-field

Conversation

@w568w
Copy link
Copy Markdown
Contributor

@w568w w568w commented Jun 26, 2025

This PR adds author and tag information to .Archive.Articles, as this data is required by some themes for their archive pages.

It also replaces several unmaintained dependencies.

@w568w w568w requested a review from Copilot June 26, 2025 07:41
Copy link
Copy Markdown

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 augments the archive output with author and tag metadata and refreshes several dependencies.

  • Added Author and Tags fields to ArticleInfo and updated the Build function to set them.
  • Swapped out facebookgo/symwalk for edwardrf/symwalk and bumped versions of fsnotify, markdown, feeds, websocket, urfave/cli, and other modules.

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
serve.go Updated import path for symwalk from facebookgo to edwardrf
main.go Updated import path for symwalk from facebookgo to edwardrf
build.go Added Author and Tags to ArticleInfo and populate in Build
api.go Updated import path for symwalk from facebookgo to edwardrf
go.mod Replaced sources and bumped versions of several dependencies
Comments suppressed due to low confidence (6)

build.go:30

  • Add a doc comment for the Author field in ArticleInfo to explain its purpose and expected structure.
	Author     AuthorConfig

build.go:31

  • Add a doc comment for the Tags field in ArticleInfo to clarify the format and usage of tags.
	Tags       []string

build.go:167

  • Add unit tests to verify that Build() correctly propagates the Author field into the archive output.
				Author:     article.Author,

build.go:168

  • Add unit tests to verify that Build() correctly propagates the Tags field into the archive output.
				Tags:       article.Tags,

go.mod:15

  • [nitpick] Review the changelog for urfave/cli/v2 to ensure this bump doesn't introduce breaking changes in CLI flags or behavior.
	github.com/urfave/cli/v2 v2.27.7

serve.go:9

  • [nitpick] Ensure there are no remaining references to facebookgo/symwalk in the codebase to prevent inconsistent imports.
	"github.com/edwardrf/symwalk"

@w568w w568w merged commit a525c40 into master Jun 26, 2025
@w568w w568w deleted the add-field branch June 26, 2025 07:51
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.

2 participants