• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

datatug / backend / 34979458060
87%

Build:
DEFAULT BRANCH: main
Ran 15 Sep 2026 02:07PM UTC
Jobs 1
Files 9
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Sep 2026 02:06PM UTC coverage: 87.166% (-4.5%) from 91.667%
34979458060

push

github

trakhimenok
feat(api): register a GitHub-hosted project in the user's index

Completes "create a project in a GitHub repo": the client commits the project
files with the user's own GitHub credential, then calls this endpoint so the
project appears among the user's projects. The cloud never talks to GitHub — it
only keeps the index, and the client never writes Firestore directly.

- facade4datatug.RegisterGithubProject validates org/repo/title, derives the id
  the web client addresses the project by (`repo@org@folder`) and records the
  brief under the `github.com` store of the user's DataTug index.
- project_index.go factors out the two steps every command shares: reading the
  index BEFORE the first write (Firestore requires all reads to precede writes)
  and writing a brief — creating the index record, or the store entry, when they
  do not exist yet, and otherwise touching only the project's field path.
- api4datatug: POST /v0/datatug/projects/register_github_project.

Tests: registration lands under github.com and leaves the cloud store's briefs
intact, validation rejects incomplete requests, and the handler returns the
project id (and a 400 that touches no records) — all against a real in-memory
dal-go database.

89.6% statement coverage; go build / go vet / go test / golangci-lint clean.

95 of 112 new or added lines in 6 files covered. (84.82%)

1 existing line in 1 file now uncovered.

163 of 187 relevant lines covered (87.17%)

0.87 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
73.33
api4datatug/http_github_project_register.go
4
89.74
facade4datatug/github_project_register.go
2
94.12
facade4datatug/project_index.go
2
84.62
-15.38% models4datatug/project.go
1
82.35
-5.4% facade4datatug/project_create.go

Coverage Regressions

Lines Coverage ∆ File
1
82.35
-5.4% facade4datatug/project_create.go
Jobs
ID Job ID Ran Files Coverage
1 34979458060.1 15 Sep 2026 02:07PM UTC 9
87.17
GitHub Action Run
Source Files on build 34979458060
  • Tree
  • List 9
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 37887b66 on github
  • Prev Build on main (#34975033938)
  • Next Build on main (#34985092841)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc