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

Function IsWatching

internal/database/repo.go:2361–2363  ·  view source on GitHub ↗

IsWatching checks if user has watched given repository.

(userID, repoID int64)

Source from the content-addressed store, hash-verified

2359
2360// IsWatching checks if user has watched given repository.
2361func IsWatching(userID, repoID int64) bool {
2362 return isWatching(x, userID, repoID)
2363}
2364
2365func watchRepo(e Engine, userID, repoID int64, watch bool) (err error) {
2366 if watch {

Callers 1

RepoAssignmentFunction · 0.92

Calls 1

isWatchingFunction · 0.85

Tested by

no test coverage detected