tenseleyflow/shithub / deae4b6

Browse files

actions/lifecycle: name rerun owner db interface

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
deae4b6f331b8dec9fe7a3b62b35676d455f3f8a
Parents
8108c6b
Tree
e00437c

1 changed file

StatusFile+-
M internal/actions/lifecycle/rerun.go 4 2
internal/actions/lifecycle/rerun.gomodified
@@ -159,10 +159,12 @@ func rerunTriggerEventID(parentRunID int64) (string, error) {
159159
 	return fmt.Sprintf("rerun:%d:%s", parentRunID, hex.EncodeToString(b)), nil
160160
 }
161161
 
162
-func lifecycleRepoOwnerLogin(ctx context.Context, db interface {
162
+type lifecycleOwnerDB interface {
163163
 	usersdb.DBTX
164164
 	orgsdb.DBTX
165
-}, repo reposdb.Repo) (string, error) {
165
+}
166
+
167
+func lifecycleRepoOwnerLogin(ctx context.Context, db lifecycleOwnerDB, repo reposdb.Repo) (string, error) {
166168
 	if repo.OwnerUserID.Valid {
167169
 		u, err := usersdb.New().GetUserByID(ctx, db, repo.OwnerUserID.Int64)
168170
 		if err != nil {