Skip to content

Align goark/today repository layout with spiegel-im-spiegel/linkcard structure - #1

Merged
spiegel-im-spiegel merged 2 commits into
mainfrom
copilot/linkcard-repo-structure
Sep 9, 2026
Merged

spiegel-im-spiegel merged 2 commits into
mainfrom
copilot/linkcard-repo-structure

Conversation

Copilot AI commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

today was a minimal repository and did not follow the same project/release/CI scaffolding pattern as linkcard. This change brings today to the same structural baseline while keeping project-specific names and behavior.

  • Project scaffolding parity

    • Added top-level config files to match the reference layout: .editorconfig, .gitattributes, .goreleaser.yml, Taskfile.yml, dot-config.toml.
    • Extended .gitignore with build/task artifact paths used by the same workflow style (bin/, dist/, .task/).
  • GitHub automation structure

    • Added .github/workflows/ci.yml, build.yml, and codeql.yml with the same workflow composition pattern as linkcard.
    • Added .github/copilot-instructions.md in the same placement/style.
  • Go module and internal package layout

    • Introduced Go module root and executable entrypoint (go.mod, main.go).
    • Added internal package split mirroring the reference architecture style:
      • internal/config (CLI option parsing),
      • internal/ecode (exit codes),
      • internal/facade (execution flow),
      • internal/today (date rendering).
  • Minimal behavior implementation + focused tests

    • Implemented default output as today’s date string and --version handling.
    • Added targeted unit tests for date formatting and config parsing.
func main() {
	os.Exit(facade.Execute(
		os.Stdin,
		os.Stdout,
		os.Stderr,
		Version,
		os.Args[1:],
	))
}
Original prompt

https://github.com/spiegel-im-spiegel/linkcard リポジトリと同様の構成にして下さい

Co-authored-by: spiegel-im-spiegel <7560117+spiegel-im-spiegel@users.noreply.github.com>
Copilot AI changed the title [WIP] Update repository structure to match linkcard Align goark/today repository layout with spiegel-im-spiegel/linkcard structure Sep 9, 2026
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@spiegel-im-spiegel
spiegel-im-spiegel marked this pull request as ready for review September 9, 2026 00:55
@spiegel-im-spiegel
spiegel-im-spiegel merged commit 587cdef into main Sep 9, 2026
3 of 4 checks passed
@spiegel-im-spiegel
spiegel-im-spiegel deleted the copilot/linkcard-repo-structure branch September 9, 2026 00:55
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.

3 participants