github

Sentivex Incidents Ticket API

GET/api/github/repos

GET /api/github/repos

Responses

200 성공401 미인증(JWT 쿠키 필요)403 권한 없음404 없음
cURL
curl -X GET https://sit.in-bridge.com/api/github/repos \
  -H "Authorization: Bearer $TOKEN"
JavaScript
const res = await fetch("https://sit.in-bridge.com/api/github/repos", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${token}`
  }
});
const data = await res.json();
GET/api/github/repos/tree

============================================================

============================================================ GET /api/github/repos/tree?fullName=owner/repo&path=&ref= — DB 에 link 되지 않은 repo 도 트리 lazy 조회 ============================================================ 사용처: 프로젝트 *생성* 시 풀페이지 폼의 RepoBrowser. 사용자가 repo 를 고르면 바로 폴더/파일 트리를 보여주기 — 이때는 아직 repos 테이블 행이 없음. 보안: - requireUser() 만 검사. 환경 토큰의 권한 범위 안에서만 결과 노출이라 공개 repo 또는 인스턴스 운영자가 의도한 organization 만 접근 가능. - fullName 형식 검증 (간단한 `owner/name`). 응답: { path, entries: [{ name, path, type }] } ============================================================

Responses

200 성공401 미인증(JWT 쿠키 필요)403 권한 없음404 없음
cURL
curl -X GET https://sit.in-bridge.com/api/github/repos/tree \
  -H "Authorization: Bearer $TOKEN"
JavaScript
const res = await fetch("https://sit.in-bridge.com/api/github/repos/tree", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${token}`
  }
});
const data = await res.json();