Skip to content

Commit 8e23524

Browse files
Fix PushEvent NullPointerException jenkinsci/github-plugin (#27203)
Fixes #27202
1 parent 63b25e8 commit 8e23524

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

modules/structs/repo.go

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ type Repository struct {
6363
Language string `json:"language"`
6464
LanguagesURL string `json:"languages_url"`
6565
HTMLURL string `json:"html_url"`
66+
URL string `json:"url"`
6667
Link string `json:"link"`
6768
SSHURL string `json:"ssh_url"`
6869
CloneURL string `json:"clone_url"`

services/convert/repository.go

+1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ func innerToRepo(ctx context.Context, repo *repo_model.Repository, permissionInR
181181
Parent: parent,
182182
Mirror: repo.IsMirror,
183183
HTMLURL: repo.HTMLURL(),
184+
URL: repoAPIURL,
184185
SSHURL: cloneLink.SSH,
185186
CloneURL: cloneLink.HTTPS,
186187
OriginalURL: repo.SanitizedOriginalURL(),

templates/swagger/v1_json.tmpl

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)