Hide PR tab if PRs are disabled (#3004)

Closes https://github.com/woodpecker-ci/woodpecker/issues/2988
This commit is contained in:
qwerty287
2023-12-24 10:04:18 +01:00
committed by GitHub
parent 030db4e110
commit 9d9bcbf363
16 changed files with 37 additions and 13 deletions

View File

@@ -49,6 +49,7 @@ func toRepo(from *gitea.Repository) *model.Repo {
CloneSSH: from.SSHURL,
Branch: from.DefaultBranch,
Perm: toPerm(from.Permissions),
PREnabled: from.HasPullRequests,
}
}