We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d455326 commit b9d1e07Copy full SHA for b9d1e07
domain/appeal.go
@@ -223,7 +223,13 @@ func (a *Appeal) AdvanceApproval(policy *Policy) error {
223
policyStepCount := len(policy.Steps)
224
totalStepCount := policyStepCount
225
if policy.HasCustomSteps() {
226
- totalStepCount = len(a.Approvals)
+ nonStaleCount := 0
227
+ for _, approval := range a.Approvals {
228
+ if !approval.IsStale {
229
+ nonStaleCount++
230
+ }
231
232
+ totalStepCount = nonStaleCount
233
}
234
for i := 0; i < totalStepCount; i++ {
235
approval := a.GetApprovalByIndex(i)
0 commit comments