Skip to content

feat: add /v2/git & /v2/status endpoints#976

Open
CasLubbers wants to merge 15 commits intomainfrom
APL-1786
Open

feat: add /v2/git & /v2/status endpoints#976
CasLubbers wants to merge 15 commits intomainfrom
APL-1786

Conversation

@CasLubbers
Copy link
Copy Markdown
Contributor

@CasLubbers CasLubbers commented Apr 17, 2026

@CasLubbers CasLubbers changed the title Apl 1786 feat: add /v2/git & /v2/status endpoints Apr 17, 2026
@CasLubbers CasLubbers marked this pull request as ready for review April 20, 2026 14:12
Copy link
Copy Markdown
Contributor

@dennisvankekem dennisvankekem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code looks good, and we've already pair tested it

Comment thread src/api/v2/git.ts
remoteHasContent = await req.otomi.git.testRemoteConnection(repoUrl, password, branch, username)
} catch (e: any) {
throw new BadRequestError(`Cannot connect to new git remote: ${e.message}`)
const error = { message: `Cannot connect to new git remote: ${e.message}`, statusCode: 404 }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not throw a statuscode with 404, we dont get a statuscode from the git api, anything can go wrong. We should check if the message contains a certain phrase like does not exist and then pass along a 404 or something like that..

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.

4 participants