move to reviewers
This commit is contained in:
parent
656a3bacdf
commit
f0b184f4c3
@ -31,8 +31,8 @@ import (
|
||||
type AutogitConfig struct {
|
||||
Workflows []string // [pr, direct, test]
|
||||
Organization string
|
||||
GitProjectName string // Organization/GitProjectName.git is PrjGit
|
||||
Branch string // branch name of PkgGit that aligns with PrjGit submodules
|
||||
GitProjectName string // Organization/GitProjectName.git is PrjGit
|
||||
Branch string // branch name of PkgGit that aligns with PrjGit submodules
|
||||
Reviewers []string // only used by `pr` workflow
|
||||
}
|
||||
|
||||
@ -67,9 +67,6 @@ func ReadWorkflowConfigs(reader io.Reader) ([]*AutogitConfig, error) {
|
||||
if !pr && len(workflow.Reviewers) > 0 {
|
||||
log.Println(" Warning: non-PR-only workflows contains Reviewers. These are ignored in Org:", workflow.Organization)
|
||||
}
|
||||
if pr && !slices.Contains(workflow.Reviewers, Bot_BuildReview) {
|
||||
workflow.Reviewers = append(workflow.Reviewers, Bot_BuildReview)
|
||||
}
|
||||
}
|
||||
|
||||
return config, nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user