mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
Hide PR tab if PRs are disabled (#3004)
Closes https://github.com/woodpecker-ci/woodpecker/issues/2988
This commit is contained in:
@@ -95,6 +95,7 @@ func convertRepo(from *github.Repository) *model.Repo {
|
||||
Avatar: from.GetOwner().GetAvatarURL(),
|
||||
Perm: convertPerm(from.GetPermissions()),
|
||||
SCMKind: model.RepoGit,
|
||||
PREnabled: true,
|
||||
}
|
||||
return repo
|
||||
}
|
||||
@@ -152,6 +153,7 @@ func convertRepoHook(eventRepo *github.PushEventRepository) *model.Repo {
|
||||
CloneSSH: eventRepo.GetSSHURL(),
|
||||
Branch: eventRepo.GetDefaultBranch(),
|
||||
SCMKind: model.RepoGit,
|
||||
PREnabled: true,
|
||||
}
|
||||
if repo.FullName == "" {
|
||||
repo.FullName = repo.Owner + "/" + repo.Name
|
||||
|
||||
Reference in New Issue
Block a user