summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-09-25 15:02:08 +0800
committerGitHub <noreply@github.com>2023-09-25 07:02:08 +0000
commit4b37eb2c23f8488f36247f25f9cfd4949eb17e23 (patch)
tree69460167e8a5cb90d1da291612e906f3f8d84214 /services
parentdd2f00750189e4ac75e30e7c74598e34f8d6c443 (diff)
downloadgitea-4b37eb2c23f8488f36247f25f9cfd4949eb17e23.tar.gz
gitea-4b37eb2c23f8488f36247f25f9cfd4949eb17e23.zip
Fix PushEvent NullPointerException jenkinsci/github-plugin (#27203) (#27249)
Backport #27203 by @Nabapadma-sarker Fixes #27202 Co-authored-by: Nabapadma-sarker <nabapadmacse1991@gmail.com>
Diffstat (limited to 'services')
-rw-r--r--services/convert/repository.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/convert/repository.go b/services/convert/repository.go
index 6f77b4932e..71038cd062 100644
--- a/services/convert/repository.go
+++ b/services/convert/repository.go
@@ -181,6 +181,7 @@ func innerToRepo(ctx context.Context, repo *repo_model.Repository, permissionInR
Parent: parent,
Mirror: repo.IsMirror,
HTMLURL: repo.HTMLURL(),
+ URL: repoAPIURL,
SSHURL: cloneLink.SSH,
CloneURL: cloneLink.HTTPS,
OriginalURL: repo.SanitizedOriginalURL(),