Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/iterative/cml
/ branchName
Function
branchName
src/drivers/github.js:33–37 ·
view source on GitHub ↗
(branch)
Source
from the content-addressed store, hash-verified
31
} = process.env;
32
33
const
branchName = (branch) => {
34
if
(!branch)
return
;
35
36
return
branch.replace(/refs\/(head|tag)s\
//, '');
37
};
38
39
const
ownerRepo = (opts) => {
40
let
owner, repo;
Callers
3
commitPrs
Method · 0.85
prs
Method · 0.85
branch
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected