MCPcopy
hub / github.com/github/github-mcp-server / parseFullDatabaseID

Function parseFullDatabaseID

pkg/github/issue_fields.go:264–273  ·  view source on GitHub ↗

parseFullDatabaseID converts a BigInt scalar string (e.g. "12345") to int64. Returns 0 if the string is empty or cannot be parsed.

(s string)

Source from the content-addressed store, hash-verified

262// parseFullDatabaseID converts a BigInt scalar string (e.g. "12345") to int64.
263// Returns 0 if the string is empty or cannot be parsed.
264func parseFullDatabaseID(s string) int64 {
265 if s == "" {
266 return 0
267 }
268 n, err := strconv.ParseInt(s, 10, 64)
269 if err != nil {
270 return 0
271 }
272 return n
273}

Callers 3

issueFieldsFromNodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected