MCPcopy Create free account
hub / github.com/LF112/gotAction / cleanError

Function cleanError

scripts/check-github-repo.js:142–149  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

140 }
141}
142const cleanError = (str) => {
143 return str
144 .split('\n')
145 .filter((line) => !line.trim().startsWith('fatal:')) // 过滤 fatal: 行
146 .join(' ')
147 .trim()
148 .substring(0, 120); // 限制长度,避免信息过长
149};
150
151// 主执行逻辑
152function main() {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected