File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
datajunction-ui/src/app/services Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,9 @@ export const DataJunctionAPI = {
7070 tagType
7171 }
7272 editedBy
73+ owners {
74+ username
75+ }
7376 current {
7477 displayName
7578 status
@@ -2736,6 +2739,19 @@ export const DataJunctionAPI = {
27362739 // Git Branch Management APIs
27372740 // ============================================================
27382741
2742+ // Get all branch namespaces for a parent namespace
2743+ getNamespaceBranches : async function ( namespace ) {
2744+ const response = await fetch ( `${ DJ_URL } /namespaces/${ namespace } /branches` , {
2745+ credentials : 'include' ,
2746+ } ) ;
2747+ if ( ! response . ok ) {
2748+ if ( response . status === 404 ) return [ ] ;
2749+ const result = await response . json ( ) . catch ( ( ) => ( { } ) ) ;
2750+ throw new Error ( result . message || 'Failed to get branches' ) ;
2751+ }
2752+ return response . json ( ) ;
2753+ } ,
2754+
27392755 // Get git configuration for a namespace
27402756 getNamespaceGitConfig : async function ( namespace ) {
27412757 const response = await fetch ( `${ DJ_URL } /namespaces/${ namespace } /git` , {
You can’t perform that action at this time.
0 commit comments