Unverified Commit 976c03f1 authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

workflows/labels: fix approval label with maintainers (#416739)

parents aacfc645 4b9fb450
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ jobs:
                // And the labels that should be there
                const after = JSON.parse(await readFile('comparison/changed-paths.json', 'utf-8')).labels
                if (approvals.size > 0) after.push(`12.approvals: ${approvals.size > 2 ? '3+' : approvals.size}`)
                if (Array.from(maintainers).some(approvals.has)) after.push('12.approved-by: package-maintainer')
                if (Array.from(maintainers).some(m => approvals.has(m))) after.push('12.approved-by: package-maintainer')

                // Remove the ones not needed anymore
                await Promise.all(