Expand description
Fetching the upstream source of truth.
Only --refresh and --upstream come here. The offline check that CI gates
on never touches the network.
Structsยง
- Fetched
- The upstream file, pinned to the commit it was read at.
Constantsยง
- USER_
AGENT ๐
Functionsยง
- civil_
from_ ๐days - Howard Hinnantโs
civil_from_days, with 1970-01-01 as day 0. - events_
ts - Resolves the newest commit touching
events.ts, then reads the file at exactly that commit, so the recorded SHA always describes the recorded text. - explain ๐
- get ๐
- github_
token ๐ - looks_
like_ ๐events_ ts - Rejects a response body that is not the upstream module.
- snippet ๐
- The first line or so of a body, for an error message.
- today_
utc - Todayโs date in UTC as
YYYY-MM-DD.