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

Function WatchRepo

internal/database/repo.go:2389–2391  ·  view source on GitHub ↗

Watch or unwatch repository. Deprecated: Use Watches.Watch instead.

(userID, repoID int64, watch bool)

Source from the content-addressed store, hash-verified

2387//
2388// Deprecated: Use Watches.Watch instead.
2389func WatchRepo(userID, repoID int64, watch bool) (err error) {
2390 return watchRepo(x, userID, repoID, watch)
2391}
2392
2393// Deprecated: Use Repos.ListByRepo instead.
2394func getWatchers(e Engine, repoID int64) ([]*Watch, error) {

Callers 1

ActionFunction · 0.92

Calls 1

watchRepoFunction · 0.85

Tested by

no test coverage detected