Update all import paths from forgejo-sdk/forgejo/v2 to v3. No breaking API changes affect this codebase; build and tests pass.
14 lines
314 B
Go
14 lines
314 B
Go
package forgejo
|
|
|
|
import (
|
|
"sync"
|
|
|
|
forgejo_sdk "codeberg.org/mvdkleijn/forgejo-sdk/forgejo/v3"
|
|
)
|
|
|
|
// SetClientForTesting overrides the singleton client for testing purposes.
|
|
func SetClientForTesting(c *forgejo_sdk.Client) {
|
|
clientOnce = sync.Once{}
|
|
client = c
|
|
clientOnce.Do(func() {}) // mark as initialized
|
|
}
|