MCPcopy Create free account
hub / github.com/gogs/gogs / isWatching

Function isWatching

internal/database/repo.go:2355–2358  ·  view source on GitHub ↗
(e Engine, userID, repoID int64)

Source from the content-addressed store, hash-verified

2353}
2354
2355func isWatching(e Engine, userID, repoID int64) bool {
2356 has, _ := e.Get(&Watch{0, userID, repoID})
2357 return has
2358}
2359
2360// IsWatching checks if user has watched given repository.
2361func IsWatching(userID, repoID int64) bool {

Callers 2

IsWatchingFunction · 0.85
watchRepoFunction · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected