Shared Atlassian clients: atlassian/jira and atlassian/confluence
New library module yetano.dev/yetano/yetano-clients (owner decision 2026-11-01) replacing the three own Jira clients in yareco, yabaratla and yamcp: - atlassian: Options, Auth (api_token, basic, bearer/pat, cookie), Deployment (Cloud/Data Center), TLS, APIError and sentinel errors. - atlassian/internal/transport: retry with backoff on 5xx/connection errors, shared adaptive 429 throttle honouring Retry-After (from yabaratla/yareco), CA file, proxy, cross-host redirect hardening, response cap (from yamcp), startAt pagination, file downloads. - atlassian/jira: typed reads (projects, versions, fields, issues, comments, changelog, editmeta, transitions), JQL search on Cloud (/search/jql) and Data Center, classic search pages, issue writes, ADF/plain-text bodies per deployment, custom-field helpers. - atlassian/confluence: small content API client (CQL search, pages, spaces, current user, create/update page with version check, comment, label), taken over from yamcp. Standard library only; tests against httptest servers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
6a97dbd4c6
24 files changed
+3524
No files matched your search
@@ -0,0 +1,52 @@
|
||||
# yetano-clients is a library (atlassian/jira, atlassian/confluence):
|
||||
# nothing to build or publish, only to check. A release is a git tag --
|
||||
# see README.md, "Versioning".
|
||||
|
||||
.PHONY: all
|
||||
all: ci
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
go test ./... -race
|
||||
|
||||
.PHONY: fmt
|
||||
fmt:
|
||||
@out="$$(gofmt -l .)"; \
|
||||
if [ -n "$$out" ]; then \
|
||||
echo "not gofmt'ed:"; echo "$$out"; exit 1; \
|
||||
fi
|
||||
|
||||
.PHONY: fmt-fix
|
||||
fmt-fix:
|
||||
gofmt -w .
|
||||
|
||||
.PHONY: vet
|
||||
vet:
|
||||
go vet ./...
|
||||
|
||||
# govulncheck at a pinned version via "go run" -- no global install. Not
|
||||
# part of test on purpose: it needs network access to vuln.go.dev, and
|
||||
# since that database changes daily, a check would start failing without
|
||||
# any code change (see ../TODO.md "govulncheck in allen Go-Modulen").
|
||||
GOVULNCHECK ?= go run golang.org/x/vuln/cmd/govulncheck@v1.9.0
|
||||
|
||||
.PHONY: vulncheck
|
||||
vulncheck:
|
||||
$(GOVULNCHECK) ./...
|
||||
|
||||
.PHONY: tidy
|
||||
tidy:
|
||||
go mod tidy
|
||||
|
||||
.PHONY: ci
|
||||
ci: fmt vet test vulncheck
|
||||
|
||||
.PHONY: help
|
||||
help:
|
||||
@echo "Targets:"
|
||||
@echo " ci fmt + vet + test + vulncheck (the default)"
|
||||
@echo " fmt fail if a file is not gofmt'ed (fmt-fix rewrites them)"
|
||||
@echo " vet go vet"
|
||||
@echo " test go test -race"
|
||||
@echo " vulncheck govulncheck $(subst go run ,,$(GOVULNCHECK))"
|
||||
@echo " tidy go mod tidy"
|
||||
Reference in new issue
Block a user