MCPcopy Create free account
hub / github.com/appleboy/drone-git-push / HandleCleanup

Method HandleCleanup

plugin.go:267–275  ·  view source on GitHub ↗

HandleCleanup does eventually do some cleanup.

(ctx context.Context)

Source from the content-addressed store, hash-verified

265
266// HandleCleanup does eventually do some cleanup.
267func (p Plugin) HandleCleanup(ctx context.Context) error {
268 if p.Config.Remote != "" {
269 if err := execute(repo.RemoteRemove(ctx, p.Config.RemoteName)); err != nil {
270 return err
271 }
272 }
273
274 return nil
275}

Callers 1

ExecMethod · 0.95

Calls 2

RemoteRemoveFunction · 0.92
executeFunction · 0.85

Tested by

no test coverage detected