We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9880c13 commit 985e2a8Copy full SHA for 985e2a8
models/activities/action.go
@@ -251,6 +251,9 @@ func (a *Action) GetActDisplayNameTitle(ctx context.Context) string {
251
// GetRepoUserName returns the name of the action repository owner.
252
func (a *Action) GetRepoUserName(ctx context.Context) string {
253
a.loadRepo(ctx)
254
+ if a.Repo == nil {
255
+ return "(non-existing-repo)"
256
+ }
257
return a.Repo.OwnerName
258
}
259
@@ -263,6 +266,9 @@ func (a *Action) ShortRepoUserName(ctx context.Context) string {
263
266
// GetRepoName returns the name of the action repository.
264
267
func (a *Action) GetRepoName(ctx context.Context) string {
265
268
269
270
271
272
return a.Repo.Name
273
274
0 commit comments