mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-16 17:54:07 +01:00
Hide PR tab if PRs are disabled (#3004)
Closes https://github.com/woodpecker-ci/woodpecker/issues/2988
This commit is contained in:
@@ -49,6 +49,7 @@ func toRepo(from *gitea.Repository) *model.Repo {
|
||||
CloneSSH: from.SSHURL,
|
||||
Branch: from.DefaultBranch,
|
||||
Perm: toPerm(from.Permissions),
|
||||
PREnabled: from.HasPullRequests,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user