{"id":36473936,"url":"https://github.com/lex00/wetwire-github-go","last_synced_at":"2026-01-22T00:12:15.747Z","repository":{"id":331542365,"uuid":"1128070174","full_name":"lex00/wetwire-github-go","owner":"lex00","description":"Declarative GitHub Actions workflows using native Go constructs","archived":false,"fork":false,"pushed_at":"2026-01-18T06:37:24.000Z","size":21496,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-18T16:58:44.089Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lex00.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"codeowners/codeowners.go","security":"docs/SECURITY_PATTERNS.md","support":null,"governance":null,"roadmap":"docs/ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-05T05:08:48.000Z","updated_at":"2026-01-18T06:37:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lex00/wetwire-github-go","commit_stats":null,"previous_names":["lex00/wetwire-github-go"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/lex00/wetwire-github-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lex00%2Fwetwire-github-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lex00%2Fwetwire-github-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lex00%2Fwetwire-github-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lex00%2Fwetwire-github-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lex00","download_url":"https://codeload.github.com/lex00/wetwire-github-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lex00%2Fwetwire-github-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28647709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T21:29:11.980Z","status":"ssl_error","status_checked_at":"2026-01-21T21:24:31.872Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-12T00:44:54.627Z","updated_at":"2026-01-22T00:12:15.742Z","avatar_url":"https://github.com/lex00.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wetwire-github-go\n\n[![CI](https://github.com/lex00/wetwire-github-go/actions/workflows/ci.yml/badge.svg)](https://github.com/lex00/wetwire-github-go/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/lex00/wetwire-github-go/branch/main/graph/badge.svg)](https://codecov.io/gh/lex00/wetwire-github-go)\n[![Go Reference](https://pkg.go.dev/badge/github.com/lex00/wetwire-github-go.svg)](https://pkg.go.dev/github.com/lex00/wetwire-github-go)\n[![Go Report Card](https://goreportcard.com/badge/github.com/lex00/wetwire-github-go)](https://goreportcard.com/report/github.com/lex00/wetwire-github-go)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nDeclarative GitHub YAML configurations using native Go constructs.\n\n## Overview\n\nwetwire-github-go generates GitHub Actions workflows, Dependabot configs, and Issue Templates from typed Go declarations. No YAML required.\n\n```go\npackage ci\n\nimport (\n    \"github.com/lex00/wetwire-github-go/workflow\"\n    \"github.com/lex00/wetwire-github-go/actions/checkout\"\n    \"github.com/lex00/wetwire-github-go/actions/setup_go\"\n)\n\n// Workflow declaration\nvar CI = workflow.Workflow{\n    Name: \"CI\",\n    On:   CITriggers,\n}\n\n// Triggers as flat variable\nvar CITriggers = workflow.Triggers{\n    Push:        \u0026CIPush,\n    PullRequest: \u0026CIPullRequest,\n}\n\nvar CIPush = workflow.PushTrigger{Branches: []string{\"main\"}}\nvar CIPullRequest = workflow.PullRequestTrigger{Branches: []string{\"main\"}}\n\n// Job declaration\nvar Build = workflow.Job{\n    Name:   \"build\",\n    RunsOn: \"ubuntu-latest\",\n    Steps:  BuildSteps,\n}\n\nvar BuildSteps = []any{\n    checkout.Checkout{},\n    setup_go.SetupGo{GoVersion: \"1.23\"},\n    workflow.Step{Run: \"go build ./...\"},\n    workflow.Step{Run: \"go test ./...\"},\n}\n```\n\nBuild to YAML:\n\n```bash\nwetwire-github build ./ci\n# Outputs .github/workflows/ci.yml\n```\n\n## The \"No Parens\" Pattern\n\nResources are declared as Go variables using struct literals — no function calls needed:\n\n```go\n// Declare variables\nvar MyWorkflow = workflow.Workflow{...}\nvar BuildJob = workflow.Job{...}\nvar TestJob = workflow.Job{...}\n\n// Cross-references via direct field access\nvar DeployJob = workflow.Job{\n    Needs: []any{BuildJob, TestJob},  // Automatic dependency resolution\n}\n\n// Type-safe action wrappers\nvar CheckoutStep = checkout.Checkout{\n    FetchDepth: 0,\n    Submodules: \"recursive\",\n}\n\n// Expression contexts\nvar ConditionalStep = workflow.Step{\n    If:  workflow.Branch(\"main\").And(workflow.Push()),\n    Run: \"deploy.sh\",\n    Env: workflow.Env{\n        \"TOKEN\": workflow.Secrets.Get(\"DEPLOY_TOKEN\"),\n    },\n}\n\n// Matrix configuration\nvar BuildMatrix = workflow.Matrix{\n    Values: map[string][]any{\"go\": {\"1.22\", \"1.23\"}},\n}\n\nvar BuildStrategy = workflow.Strategy{\n    Matrix: \u0026BuildMatrix,\n}\n\nvar MatrixJob = workflow.Job{\n    RunsOn:   \"ubuntu-latest\",\n    Strategy: \u0026BuildStrategy,\n}\n```\n\nThe CLI discovers declarations via **AST parsing** — no registration required.\n\n## Helpers\n\n```go\n// []string{} for typed slices\nBranches: []string{\"main\", \"develop\"}\n\n// []any{} for mixed-type slices\nNeeds: []any{BuildJob, TestJob}\n\n// Env type alias\nEnv: workflow.Env{\"TOKEN\": workflow.Secrets.Get(\"TOKEN\")}\n```\n\n## Generated Package Structure\n\nImport existing workflows or init a new project:\n\n```bash\nwetwire-github import .github/workflows/ci.yml -o my-ci/\n# OR\nwetwire-github init my-ci/\n```\n\nGenerated structure:\n```\nmy-ci/\n├── go.mod                    # Module with wetwire-github-go dependency\n├── README.md                 # Generated docs\n├── cmd/main.go               # Usage instructions\n└── workflows/\n    ├── workflows.go          # Workflow declarations\n    ├── jobs.go               # Job declarations\n    ├── triggers.go           # Trigger configurations\n    └── steps.go              # Step declarations\n```\n\nAll nested structs become flat variables.\n\n## Scope\n\n| Config Type | Output | Schema |\n|-------------|--------|--------|\n| **GitHub Actions** | `.github/workflows/*.yml` | workflow schema |\n| **Dependabot** | `.github/dependabot.yml` | dependabot-2.0 |\n| **Issue Templates** | `.github/ISSUE_TEMPLATE/*.yml` | issue-forms |\n| **Discussion Templates** | `.github/DISCUSSION_TEMPLATE/*.yml` | discussion-forms |\n\n## AI-Assisted Design with Kiro\n\nwetwire-github integrates with [Kiro CLI](https://kiro.dev) for AI-assisted workflow design:\n\n```bash\n# Install and authenticate with Kiro\ncurl -fsSL https://cli.kiro.dev/install | bash\nkiro-cli login\n\n# Start AI-assisted design session\nwetwire-github design --provider kiro \"Create a CI workflow for a Go project\"\n```\n\nThe MCP server (`wetwire-github mcp`) exposes tools for AI assistants:\n- `wetwire_init` - Initialize new workflow projects\n- `wetwire_lint` - Validate code against WAG001-WAG008 rules\n- `wetwire_build` - Generate .github/workflows/*.yml from Go code\n- `wetwire_validate` - Validate YAML with actionlint\n\nSee [docs/GITHUB-KIRO-CLI.md](docs/GITHUB-KIRO-CLI.md) for complete integration guide.\n\n## Status\n\nUnder development. See [Roadmap](https://github.com/lex00/wetwire-github-go/issues/32) for implementation plan and feature matrix.\n\nFor the wetwire pattern, see the [Wetwire Specification](https://github.com/lex00/wetwire/blob/main/docs/WETWIRE_SPEC.md).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flex00%2Fwetwire-github-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flex00%2Fwetwire-github-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flex00%2Fwetwire-github-go/lists"}