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

Method MirrorSyncCreate

internal/database/actions.go:258–260  ·  view source on GitHub ↗

MirrorSyncCreate creates an action for mirror synchronization of a new reference.

(ctx context.Context, owner *User, repo *Repository, refName string)

Source from the content-addressed store, hash-verified

256// MirrorSyncCreate creates an action for mirror synchronization of a new
257// reference.
258func (s *ActionsStore) MirrorSyncCreate(ctx context.Context, owner *User, repo *Repository, refName string) error {
259 return s.mirrorSyncAction(ctx, ActionMirrorSyncCreate, owner, repo, refName, nil)
260}
261
262// MirrorSyncDelete creates an action for mirror synchronization of a reference
263// deletion.

Callers 2

actionsMirrorSyncCreateFunction · 0.80
SyncMirrorsFunction · 0.80

Calls 1

mirrorSyncActionMethod · 0.95

Tested by 1

actionsMirrorSyncCreateFunction · 0.64