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