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

Function getHeader

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

Source from the content-addressed store, hash-verified

739// lowercase, but this defensive check also handles original casing so that
740// quota logging and retry delay computation never silently miss a header.
741function getHeader(headers, name) {
742 const v = headers[name] != null ? headers[name] : headers[name.toLowerCase()];
743 return v != null ? String(v).trim() : undefined;
744}
745
746// Decide whether an error is worth retrying and, if so, how long to wait.
747// 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