- PullRequestPosterName: Pull request's poster name
- PullRequestIndex: Pull request's index number
- PullRequestReference: Pull request's reference char with index number. i.e. #1, !2
- ClosingIssues: return a string contains all issues which will be closed by this pull request i.e. `close #1, close #2`
Additionally, the New Issue page URL can be suffixed with `?title=Issue+Title&body=Issue+Text` and the form will be populated with those strings. Those strings will be used instead of the template if there is one.
Additionally, the New Issue page URL can be suffixed with `?title=Issue+Title&body=Issue+Text` and the form will be populated with those strings. Those strings will be used instead of the template if there is one.
returnfmt.Sprintf("Merge pull request '%s' (%s%d) from %s into %s",pr.Issue.Title,issueReference,pr.Issue.Index,pr.HeadBranch,pr.BaseBranch),nil
}
returnfmt.Sprintf("Merge pull request '%s' (%s%d) from %s:%s into %s",pr.Issue.Title,issueReference,pr.Issue.Index,pr.HeadRepo.FullName(),pr.HeadBranch,pr.BaseBranch),nil
ctx.Error(http.StatusMethodNotAllowed,"Invalid merge style",fmt.Errorf("%s is not allowed an allowed merge style for this repository",repo_model.MergeStyle(form.Do)))
ctx.Error(http.StatusMethodNotAllowed,"Invalid merge style",fmt.Errorf("%s is not allowed an allowed merge style for this repository",repo_model.MergeStyle(form.Do)))
returnfmt.Sprintf("Merge pull request '%s' (%s%d) from %s into %s",pr.Issue.Title,issueReference,pr.Issue.Index,pr.HeadBranch,pr.BaseBranch),nil
}
ifpr.HeadRepo==nil{
returnfmt.Sprintf("Merge pull request '%s' (%s%d) from <deleted>:%s into %s",pr.Issue.Title,issueReference,pr.Issue.Index,pr.HeadBranch,pr.BaseBranch),nil
}
returnfmt.Sprintf("Merge pull request '%s' (%s%d) from %s:%s into %s",pr.Issue.Title,issueReference,pr.Issue.Index,pr.HeadRepo.FullName(),pr.HeadBranch,pr.BaseBranch),nil
}
// Merge merges pull request to base repository.
// Merge merges pull request to base repository.
// Caller should check PR is ready to be merged (review and status checks)
// Caller should check PR is ready to be merged (review and status checks)