move to reviewers
This commit is contained in:
parent
656a3bacdf
commit
f0b184f4c3
@ -67,9 +67,6 @@ func ReadWorkflowConfigs(reader io.Reader) ([]*AutogitConfig, error) {
|
|||||||
if !pr && len(workflow.Reviewers) > 0 {
|
if !pr && len(workflow.Reviewers) > 0 {
|
||||||
log.Println(" Warning: non-PR-only workflows contains Reviewers. These are ignored in Org:", workflow.Organization)
|
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
|
return config, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user