MCPcopy Create free account
hub / github.com/github/gh-aw / updateLastCheckTime

Function updateLastCheckTime

pkg/cli/update_check.go:96–98  ·  view source on GitHub ↗

updateLastCheckTime updates the timestamp of the last update check

()

Source from the content-addressed store, hash-verified

94
95// updateLastCheckTime updates the timestamp of the last update check
96func updateLastCheckTime() {
97 writeUpdateCheckTime(getLastCheckFilePath(), constants.FilePermPublic, "update check", updateCheckLog)
98}
99
100// checkForUpdates checks if a newer version of gh-aw is available
101// This function is non-blocking and ignores all errors (connectivity, API, etc.)

Callers 2

TestUpdateLastCheckTimeFunction · 0.85
checkForUpdatesFunction · 0.85

Calls 2

writeUpdateCheckTimeFunction · 0.85
getLastCheckFilePathFunction · 0.85

Tested by 1

TestUpdateLastCheckTimeFunction · 0.68