We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0a408e commit 7b38863Copy full SHA for 7b38863
models/git/commit_status.go
@@ -211,6 +211,10 @@ func (status *CommitStatus) LocaleString(lang translation.Locale) string {
211
212
// HideActionsURL set `TargetURL` to an empty string if the status comes from Gitea Actions
213
func (status *CommitStatus) HideActionsURL(ctx context.Context) {
214
+ if status.RepoID == 0 {
215
+ return
216
+ }
217
+
218
if status.Repo == nil {
219
if err := status.loadRepository(ctx); err != nil {
220
log.Error("loadRepository: %v", err)
0 commit comments