mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-19 07:35:22 +02:00
update calls to GetRepositoryByName to use new signature
This commit is contained in:
parent
6f885a149e
commit
61b9442d2e
@ -471,7 +471,7 @@ func packageSettingsPostActionLink(ctx *context.Context, form *forms.PackageSett
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
repo, err := repo_model.GetRepositoryByName(ctx, pd.Owner.ID, form.RepoName)
|
repo, err := repo_model.GetRepositoryByName(ctx, pd.Owner.ID, form.RepoGroup, form.RepoName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if repo_model.IsErrRepoNotExist(err) {
|
if repo_model.IsErrRepoNotExist(err) {
|
||||||
ctx.JSONError(ctx.Tr("packages.settings.link.repo_not_found", form.RepoName))
|
ctx.JSONError(ctx.Tr("packages.settings.link.repo_not_found", form.RepoName))
|
||||||
|
|||||||
@ -413,8 +413,9 @@ func (f *WebauthnDeleteForm) Validate(req *http.Request, errs binding.Errors) bi
|
|||||||
|
|
||||||
// PackageSettingForm form for package settings
|
// PackageSettingForm form for package settings
|
||||||
type PackageSettingForm struct {
|
type PackageSettingForm struct {
|
||||||
Action string
|
Action string
|
||||||
RepoName string `form:"repo_name"`
|
RepoName string `form:"repo_name"`
|
||||||
|
RepoGroup int64 `form:"repo_group"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate validates the fields
|
// Validate validates the fields
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user