Skip to content

Commit 9bc325a

Browse files
committed
Allow maintainers to opt-out of perf workflow approval requests
Tweak the logic for the maintainer list that becomes the assigned approvers on GitHub issues so that maintainers can opt out of this approval process. Signed-off-by: Peter Nied <peternied@hotmail.com>
1 parent 23cba28 commit 9bc325a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/benchmark-pull-request.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,14 @@ jobs:
121121
affiliation: 'all',
122122
per_page: 100
123123
});
124-
return maintainersResponse.data.map(item => item.login).join(', ');
124+
// Any maintainers that do not want to be included on these requests
125+
const excludedMaintainers = [
126+
'peternied',
127+
];
128+
return maintainersResponse.data
129+
.map(item => item.login)
130+
.filter(approvers => !excludedMaintainers.includes(approvers))
131+
.join(', ');
125132
- uses: trstringer/manual-approval@v1
126133
if: (!contains(steps.get_approvers.outputs.result, github.event.comment.user.login))
127134
with:

0 commit comments

Comments
 (0)