Split the monolithic root directory into a structured layout:
cmd/merge/main.go — entrypoint (package main) internal/github/ — GitHub API client (package github) internal/handler/ — HTTP routes and handlers (package handler) internal/model/ — domain types (package model) internal/views/layout/ — HTML shell layout (package layout) internal/views/pages/ — full page compositions (package pages) internal/views/components/ — reusable templ components (package components) internal/views/helpers/ — Go helper functions for components (package helpers)
All files use their package as directory name. Templ components import helpers with explicit package prefix. No behaviour or logic changed.
Added steps to generate templates and check for diffs.
Closes #27
Added a mermaid diagram to illustrate architecture.
GH_TOKEN conflicts with GitHub’s CLI environment: https://cli.github.com/manual/gh_help_environment.
#18
#23
Closes #3
Closes #6