MCPcopy
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
33const branchName = (branch) => {
34 if (!branch) return;
35
36 return branch.replace(/refs\/(head|tag)s\//, '');
37};
38
39const ownerRepo = (opts) => {
40 let owner, repo;

Callers 3

commitPrsMethod · 0.85
prsMethod · 0.85
branchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected