mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-02 16:35:19 +02:00
WIP: create PR - choose branch
This commit is contained in:
parent
d015d951bd
commit
dea3a8c6a4
34 changed files with 396 additions and 212 deletions
|
@ -122,7 +122,7 @@ func Http(ctx *middleware.Context) {
|
|||
}
|
||||
return
|
||||
}
|
||||
authUser, err = models.GetUserById(token.Uid)
|
||||
authUser, err = models.GetUserByID(token.Uid)
|
||||
if err != nil {
|
||||
ctx.Handle(500, "GetUserById", err)
|
||||
return
|
||||
|
@ -191,7 +191,7 @@ func Http(ctx *middleware.Context) {
|
|||
|
||||
// FIXME: handle error.
|
||||
if err = models.Update(refName, oldCommitId, newCommitId, authUsername, username, reponame, authUser.Id); err == nil {
|
||||
models.HookQueue.AddRepoID(repo.Id)
|
||||
models.HookQueue.AddRepoID(repo.ID)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue