Hello,
When creating a new issue, I can associate it with one of existing branches or tags (top right corner, above Labels ). I’m not able to do it after creating the issue — is it desired behavior?
Thanks!
Update: relevant (I guess) code:
} else {
ctx.Data["MergeStyle"] = ""
}
}
ctx.Data["IsPullBranchDeletable"] = canDelete && pull.HeadRepo != nil && git.IsBranchExist(pull.HeadRepo.RepoPath(), pull.HeadBranch)
}
ctx.Data["Participants"] = participants
ctx.Data["NumParticipants"] = len(participants)
ctx.Data["Issue"] = issue
ctx.Data["ReadOnly"] = true
ctx.Data["IsIssueOwner"] = ctx.Repo.IsWriter() || (ctx.IsSigned && issue.IsPoster(ctx.User.ID))
ctx.Data["SignInLink"] = setting.AppSubURL + "/user/login?redirect_to=" + ctx.Data["Link"].(string)
ctx.HTML(200, tplIssueView)
}
// GetActionIssue will return the issue which is used in the context.
func GetActionIssue(ctx *context.Context) *models.Issue {
issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
if err != nil {
ctx.NotFoundOrServerError("GetIssueByIndex", models.IsErrIssueNotExist, err)
howl
February 27, 2018, 6:45pm
2
Straight from the horse’s mouth:
Searching, filtering and editing is not yet implemented, so the branch can only specified when creating the issue
go-gitea:master
← gzsombor:master
opened 11:48PM - 27 Jan 17 UTC
This patch add a new field to the 'issue' entity, named 'branch' with the necess… ary UI to specify which branch this issue is referring.
Searching, filtering and editing is not yet implemented, so the branch can only specified when creating the issue
You’re very welcome to submit a pr or issue if you have the time
1 Like
Just a git blame
away… Sorry for not digging deeper
/solved