Skip to content

frontend: add GitHub and GitLab API service layers - #31

Merged
MekDrop merged 1 commit into
mainfrom
feat/issue-9-api-services
Apr 23, 2026
Merged

MekDrop merged 1 commit into
mainfrom
feat/issue-9-api-services

Conversation

@MekDrop

@MekDrop MekDrop commented Apr 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Extends frontend/src/services/github.js with getUser, listRepos, getBranches, getTree, and a shared apiFetch helper; keeps fetchCurrentUser as a backwards-compatible alias
  • Extends frontend/src/services/gitlab.js with getUser, listProjects, getBranches, getTree, and a shared glFetch helper; existing PKCE functions are untouched

Closes #9

Test plan

  • npm -w frontend run lint passes with no errors
  • Verify fetchCurrentUser still works (auth store compatibility)
  • Manually verify GitHub API calls return expected shapes
  • Manually verify GitLab API calls return expected shapes with custom host

@MekDrop
MekDrop merged commit c530129 into main Apr 23, 2026
1 check passed
@MekDrop
MekDrop deleted the feat/issue-9-api-services branch April 23, 2026 00:47
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.

Frontend: GitHub and GitLab API service layers

1 participant