MCPcopy Create free account
hub / github.com/alibaba/open-code-review / getHeader

Function getHeader

scripts/github-actions/post-review-comments.js:965–968  ·  view source on GitHub ↗
(headers, name)

Source from the content-addressed store, hash-verified

963// lowercase, but this defensive check also handles original casing so that
964// quota logging and retry delay computation never silently miss a header.
965function getHeader(headers, name) {
966 const v = headers[name] != null ? headers[name] : headers[name.toLowerCase()];
967 return v != null ? String(v).trim() : undefined;
968}
969
970// Decide whether an error is worth retrying and, if so, how long to wait.
971// Implements GitHub's documented rate-limit retry strategy using the

Callers 1

headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected