Skip to content

ci: add docs-dispatch workflow (composer pings) - #2

Closed
makegov-hal[bot] wants to merge 6 commits into
mainfrom
ci/docs-dispatch
Closed

ci: add docs-dispatch workflow (composer pings)#2
makegov-hal[bot] wants to merge 6 commits into
mainfrom
ci/docs-dispatch

Conversation

@makegov-hal

@makegov-hal makegov-hal Bot commented May 15, 2026

Copy link
Copy Markdown

Summary

  • Adds .github/workflows/docs-dispatch.yml — on push to main, pings makegov/docs via repository_dispatch when docs/, README.md, or CHANGELOG.md changes.
  • Keeps the public docs site in sync without anyone needing to push to the composer manually.

Why a separate PR

This is the editorial-split / composer wiring. Splitting it from the initial commit so it's easy to see, easy to revert if we ever change the docs flow, and consistent with how the sibling SDKs (tango-node, tango-python) ship the same workflow today.

Setup checklist (do before merging)

  • Create a fine-grained PAT or app token with contents:write on makegov/docs.
  • Save it as repo secret DOCS_DISPATCH_TOKEN on makegov/tango-go.
  • (Optional) Set repo variable DOCS_TARGET_REPO if dispatching anywhere other than makegov/docs.

Testing

  • After merge, touch docs/CLIENT.md (or any tracked doc file), push to main, confirm the dispatch fires in Actions logs.
  • Confirm makegov/docs sees the external_updated event and rebuilds.

Risks

  • If DOCS_DISPATCH_TOKEN isn't set, the dispatch step fails loudly — the workflow doesn't affect anything else. Worst case: docs site lags until someone pushes manually to the composer.

infinityplusone and others added 6 commits May 15, 2026 14:31
Go SDK for the Tango API — federal contracts, IDVs, entities,
opportunities, grants, vehicles, and more, with dynamic response
shaping. Ships the full transport, error model, retry/rate-limit
handling, webhook signing+CRUD, and a curated subset of resource
methods. The sibling SDKs (tango-node, tango-python) are at v1.0.0;
this Go SDK starts at v0.1.0 and will grow toward parity in the 0.x
line.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
golangci-lint v1.64.8 was choking on Go 1.26 stdlib build-tagged files
(chacha20poly1305/fips140only_go1.26.go), cascading into bogus
"undefined: tango" typecheck errors against examples/. Linting against
the declared minimum Go version (1.23) is also the more conventional
choice for OSS — lint what you support.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Pure whitespace — no semantic changes. Caught by the lint job once it
got past the Go 1.26 stdlib typecheck cascade.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- transport.go: defer the standard idiom that errcheck complains about
  by explicitly discarding the Close error.
- testutil_test.go: remove three unused helpers (newTestClientFull,
  singleResultHandler, singleRecordHandler) and the now-unused
  net/http/httptest + time imports. The remaining helpers are all in use.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Mirrors the pattern in makegov/docs. Runs fast checks (gofmt, go vet,
end-of-file, trailing-whitespace) on commit, and golangci-lint on push
so contributors catch lint failures locally before CI does.

Local setup:

    brew install pre-commit   # or: pip install pre-commit
    make hooks

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Pings makegov/docs (the editorial composer) via repository_dispatch
when docs/, README.md, or CHANGELOG.md changes on main. Keeps the
public docs site fresh without waiting for someone to push to the
composer manually.

Requires a DOCS_DISPATCH_TOKEN repo secret with contents:write on
makegov/docs.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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