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

agentic-dev-library / thumbcode / 21115150935
23%

Build:
DEFAULT BRANCH: main
Ran 18 Jan 2026 04:44PM UTC
Jobs 1
Files 18
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

18 Jan 2026 04:43PM UTC coverage: 46.784% (+4.3%) from 42.505%
21115150935

push

github

web-flow
feat(git): implement isomorphic-git service for mobile Git operations (#44)

Implements comprehensive Git service using isomorphic-git for Issue #8:

**GitService Core Methods:**
- clone() - Clone repositories with authentication and progress callbacks
- fetch() - Fetch from remote with progress tracking
- pull() - Pull with optional author for merge commits
- push() - Push to remote with force option
- commit() - Create commits with author/committer info
- stage()/unstage() - Stage/unstage files (single or batch)
- createBranch()/deleteBranch() - Branch management
- checkout() - Checkout branches or commits
- currentBranch() - Get current branch name
- listBranches() - List local or remote branches
- status() - Get file status matrix
- log() - Get commit history
- diff() - Compare commits (stub for full implementation)
- listRemotes()/addRemote()/deleteRemote() - Remote management
- init() - Initialize new repository
- isRepository() - Check if directory is a git repo
- getHead() - Get HEAD commit SHA
- cleanup() - Delete local repository

**File System Integration:**
- Custom fs adapter for expo-file-system
- Handles both UTF8 and binary file operations
- Directory operations (mkdir, rmdir, readdir)
- File stats compatible with isomorphic-git

**Features:**
- Progress callbacks for clone/fetch/pull/push operations
- Authentication via GitCredentials (username/password token)
- Integration with CredentialService for stored tokens
- Type-safe interfaces for all operations
- GitResult<T> pattern for consistent error handling

**Testing:**
- 35 unit tests covering all service methods
- Mocked isomorphic-git and expo-file-system
- Tests for success paths, failures, and edge cases

Closes #8

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>

190 of 516 branches covered (36.82%)

Branch coverage included in aggregate %.

122 of 177 new or added lines in 1 file covered. (68.93%)

421 of 790 relevant lines covered (53.29%)

1.23 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
55
59.34
src/services/git/GitService.ts
Jobs
ID Job ID Ran Files Coverage
1 unit-tests - 21115150935.1 18 Jan 2026 04:44PM UTC 18
46.78
GitHub Action Run
Source Files on build 21115150935
  • Tree
  • List 18
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #21115150935
  • d4be0a47 on github
  • Prev Build on main (#21115056289)
  • Next Build on main (#21117734894)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc