Lines Matching refs:Repo

84 			ctx.Repo,
256 issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
303 if ctx.Repo.Owner.Name == pull.MustHeadUserName() {
327 commitSHA, err := ctx.Repo.GitRepo.GetRefCommitID(pull.GetGitRefName())
330 commitSHA, err = ctx.Repo.GitRepo.ReadPatchCommit(pull.Index)
333 if err := ctx.Repo.GitRepo.SetReference(pull.GetGitRefName(), commitSHA); err != nil {
343 …git.NewCommandContext(ctx, "rev-list", "-1", "--skip=1", commitSHA).RunInDir(ctx.Repo.GitRepo.Path)
360 compareInfo, err := ctx.Repo.GitRepo.GetCompareInfo(ctx.Repo.Repository.RepoPath(),
379 …commitStatuses, _, err := models.GetLatestCommitStatus(ctx.Repo.Repository.ID, sha, db.ListOptions…
397 repo := ctx.Repo.Repository
620 ctx.Data["Username"] = ctx.Repo.Owner.Name
621 ctx.Data["Reponame"] = ctx.Repo.Repository.Name
623 commits := models.ConvertFromGitCommit(prInfo.Commits, ctx.Repo.Repository)
645 gitRepo = ctx.Repo.GitRepo
671 ctx.Data["Username"] = ctx.Repo.Owner.Name
672 ctx.Data["Reponame"] = ctx.Repo.Repository.Name
720 baseCommit, err := ctx.Repo.GitRepo.GetCommit(startCommitID)
738 setCompareContext(ctx, baseCommit, commit, ctx.Repo.Owner.Name, ctx.Repo.Repository.Name)
742 if ctx.Data["Assignees"], err = models.GetRepoAssignees(ctx.Repo.Repository); err != nil {
757 ctx.Data["HasIssuesOrPullsWritePermission"] = ctx.Repo.CanWriteIssuesOrPulls(issue.IsPull)
869 allowedMerge, err := pull_service.IsUserAllowedToMerge(pr, ctx.Repo.Permission, ctx.User)
888 …if err = pull_service.MergedManually(pr, ctx.User, ctx.Repo.GitRepo, form.MergeCommitID); err != n…
959 pr.Issue.Repo = ctx.Repo.Repository
972 …if err = pull_service.Merge(pr, ctx.User, ctx.Repo.GitRepo, repo_model.MergeStyle(form.Do), form.H…
1065 …if ctx.Repo != nil && ctx.Repo.Repository != nil && pr.HeadRepoID == ctx.Repo.Repository.ID && ctx…
1066 headRepo = ctx.Repo.GitRepo
1104 ctx.Data["HasIssuesOrPullsWritePermission"] = ctx.Repo.CanWrite(unit.TypePullRequests)
1107 repo = ctx.Repo.Repository
1166 Repo: repo,
1275 …if ctx.Repo != nil && ctx.Repo.Repository != nil && ctx.Repo.Repository.ID == pr.BaseRepoID && ctx…
1276 gitBaseRepo = ctx.Repo.GitRepo
1290 …oID != pr.HeadRepoID && ctx.Repo != nil && ctx.Repo.Repository != nil && ctx.Repo.Repository.ID ==…
1291 gitRepo = ctx.Repo.GitRepo
1366 pr, err := models.GetPullRequestByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
1396 …if !ctx.IsSigned || (!issue.IsPoster(ctx.User.ID) && !ctx.Repo.CanWriteIssuesOrPulls(issue.IsPull)…
1411 RepoRelPath := ctx.Repo.Owner.Name + "/" + ctx.Repo.Repository.Name
1412 …errorMessage := ctx.Tr("repo.pulls.has_pull_request", html.EscapeString(ctx.Repo.RepoLink+"/pulls/…