From 4e97bc76d308b26b5cc393aa8bb55faff40451db Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Thu, 23 Oct 2025 19:33:20 +0200 Subject: [PATCH] github: fix if pipeline is nil --- server/forge/github/github.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/forge/github/github.go b/server/forge/github/github.go index d0c2e378086..9ae9846e237 100644 --- a/server/forge/github/github.go +++ b/server/forge/github/github.go @@ -633,7 +633,7 @@ func (c *client) Hook(ctx context.Context, r *http.Request) (*model.Repo, *model if err != nil { return nil, nil, err } - } else if pipeline.Event == model.EventPush { + } else if pipeline != nil && pipeline.Event == model.EventPush { // GitHub has removed commit summaries from Events API payloads from 7th October 2025 onwards. pipeline, err = c.loadChangedFilesFromCommits(ctx, repo, pipeline, prevCommit, currCommit) if err != nil {