Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/tag-more-reviewers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tag more reviewers

on:
pull_request:
types:
- review_requested

jobs:
tag-konflux-maintainers:
# We have lots of PR traffic from MintMaker (acting as `red-hat-konflux[bot]`), and so it's unsustainable to go
# through these emails every day. Therefore, we disabled the notifications for `rhtap-maintainers` team.
# At the same time, we want to be notified when humans, not the bot, request reviews (through CODEOWNERS) for the
# Konflux-related files. This job invites `konflux-maintainers` team for review for such cases.
if: |
github.event.requested_team.name == 'rhtap-maintainers' &&
github.event.pull_request.user.login != 'red-hat-konflux[bot]'
env:
GH_TOKEN: ${{ secrets.RHACS_BOT_GITHUB_TOKEN }}
runs-on: ubuntu-latest
steps:
- name: Tag Konflux Maintainers for review
run: |
exec gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers" \
--input - <<< '{ "team_reviewers": [ "konflux-maintainers" ] }'