fix(pulls): respect diff.orderFile in diff file tree (#38566)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Elisei Rocaandwxiaoguang authored and GitHub committed 2026-07-22 15:56:29 +00:00
1 parent bc3f63095b
commit c8df67c0d0
4 files changed
+68 -2

No files matched your search

+8 -1
View File
@@ -37,7 +37,14 @@ type Features struct {
SupportGitMergeTree bool // >= 2.40 // we also need "--merge-base"
}
var defaultFeatures *Features
type GlobalConfigStruct struct {
DiffOrderFile string
}
var (
defaultFeatures *Features
GlobalConfig *GlobalConfigStruct
)
func (f *Features) CheckVersionAtLeast(atLeast string) bool {
return f.gitVersion.Compare(version.Must(version.NewVersion(atLeast))) >= 0