@@ -200,7 +200,7 @@ func (a *Action) LoadActUser(ctx context.Context) {
200200 }
201201}
202202
203- func (a * Action ) loadRepo (ctx context.Context ) {
203+ func (a * Action ) LoadRepo (ctx context.Context ) {
204204 if a .Repo != nil {
205205 return
206206 }
@@ -250,7 +250,7 @@ func (a *Action) GetActDisplayNameTitle(ctx context.Context) string {
250250
251251// GetRepoUserName returns the name of the action repository owner.
252252func (a * Action ) GetRepoUserName (ctx context.Context ) string {
253- a .loadRepo (ctx )
253+ a .LoadRepo (ctx )
254254 if a .Repo == nil {
255255 return "(non-existing-repo)"
256256 }
@@ -265,7 +265,7 @@ func (a *Action) ShortRepoUserName(ctx context.Context) string {
265265
266266// GetRepoName returns the name of the action repository.
267267func (a * Action ) GetRepoName (ctx context.Context ) string {
268- a .loadRepo (ctx )
268+ a .LoadRepo (ctx )
269269 if a .Repo == nil {
270270 return "(non-existing-repo)"
271271 }
@@ -644,7 +644,7 @@ func NotifyWatchers(ctx context.Context, actions ...*Action) error {
644644 }
645645
646646 if repoChanged {
647- act .loadRepo (ctx )
647+ act .LoadRepo (ctx )
648648 repo = act .Repo
649649
650650 // check repo owner exist.
@@ -770,15 +770,15 @@ func DeleteIssueActions(ctx context.Context, repoID, issueID, issueIndex int64)
770770// CountActionCreatedUnixString count actions where created_unix is an empty string
771771func CountActionCreatedUnixString (ctx context.Context ) (int64 , error ) {
772772 if setting .Database .Type .IsSQLite3 () {
773- return db .GetEngine (ctx ).Where (`created_unix = "" ` ).Count (new (Action ))
773+ return db .GetEngine (ctx ).Where (`created_unix = '' ` ).Count (new (Action ))
774774 }
775775 return 0 , nil
776776}
777777
778778// FixActionCreatedUnixString set created_unix to zero if it is an empty string
779779func FixActionCreatedUnixString (ctx context.Context ) (int64 , error ) {
780780 if setting .Database .Type .IsSQLite3 () {
781- res , err := db .GetEngine (ctx ).Exec (`UPDATE action SET created_unix = 0 WHERE created_unix = "" ` )
781+ res , err := db .GetEngine (ctx ).Exec (`UPDATE action SET created_unix = 0 WHERE created_unix = '' ` )
782782 if err != nil {
783783 return 0 , err
784784 }
0 commit comments