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 6ac04b8 commit 9f05c76Copy full SHA for 9f05c76
models/activities/action.go
@@ -250,6 +250,9 @@ func (a *Action) GetActDisplayNameTitle(ctx context.Context) string {
250
// GetRepoUserName returns the name of the action repository owner.
251
func (a *Action) GetRepoUserName(ctx context.Context) string {
252
a.loadRepo(ctx)
253
+ if a.Repo == nil {
254
+ return "(non-existing-repo)"
255
+ }
256
return a.Repo.OwnerName
257
}
258
@@ -262,6 +265,9 @@ func (a *Action) ShortRepoUserName(ctx context.Context) string {
262
265
// GetRepoName returns the name of the action repository.
263
266
func (a *Action) GetRepoName(ctx context.Context) string {
264
267
268
269
270
271
return a.Repo.Name
272
273
0 commit comments