Skip to content

Commit

Permalink
Allow maintainers to opt-out of perf workflow approval requests
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
peternied committed Aug 28, 2024
1 parent 23cba28 commit 9bc325a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/benchmark-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,14 @@ jobs:
affiliation: 'all',
per_page: 100
});
return maintainersResponse.data.map(item => item.login).join(', ');
// Any maintainers that do not want to be included on these requests
const excludedMaintainers = [
'peternied',
];
return maintainersResponse.data
.map(item => item.login)
.filter(approvers => !excludedMaintainers.includes(approvers))
.join(', ');
- uses: trstringer/manual-approval@v1
if: (!contains(steps.get_approvers.outputs.result, github.event.comment.user.login))
with:
Expand Down

0 comments on commit 9bc325a

Please sign in to comment.