E5E0 ROX-31146: Reduce spam of Konflux PRs, releasers can approve by msugakov · Pull Request #17968 · stackrox/stackrox · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
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
14 changes: 8 additions & 6 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,14 @@ operator/**/* @stackrox/install
/sensor/kubernetes/listener/resources/secrets* @stackrox/scanner
/SCANNER_VERSION @stackrox/scanner

# The RHTAP maintainers for ACS review all changes related to the Konflux (f.k.a. RHTAP) pipelines, such as new
# pipelines, parameter changes or automated task updates as well as Dockerfile updates.
**/konflux.*Dockerfile @stackrox/rhtap-maintainers
/.konflux/ @stackrox/rhtap-maintainers
/.tekton/ @stackrox/rhtap-maintainers
rpms.* @stackrox/rhtap-maintainers
# Konflux maintainers for ACS review all changes related to the Konflux pipelines, Dockerfiles, etc.
# Release engineers need to merge MintMaker PRs at the time of the release.
# rhacs-bot needs an ability to auto-approve MintMaker PRs for automated task and security updates.
**/konflux.*Dockerfile @stackrox/konflux-maintainers-no-email @stackrox/release-mgmt-no-email @rhacs-bot
/.tekton/ @stackrox/konflux-maintainers-no-email @stackrox/release-mgmt-no-email @rhacs-bot
rpms.* @stackrox/konflux-maintainers-no-email @stackrox/release-mgmt-no-email @rhacs-bot
/.konflux/ @stackrox/konflux-maintainers
.github/renovate.json5 @stackrox/konflux-maintainers


# Dependencies
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/tag-more-reviewers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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, the notifications are disabled for `konflux-maintainers-no-email`
# team that's set as owner in CODEOWNERS for the Konflux stuff.
# At the same time, we want to be notified when humans, not the bot, request reviews (which happens automatically
# again through CODEOWNERS) for the Konflux-related files. This job invites `konflux-maintainers` team for review
# for such cases.
if: |
github.event.requested_team.name == 'konflux-maintainers-no-email' &&
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: |
gh pr --repo "${{ github.repository }}" edit "${{ github.event.pull_request.number }}" \
--add-reviewer stackrox/konflux-maintainers
Loading
0