-
Notifications
You must be signed in to change notification settings - Fork 29
ROX-31146: Reduce spam of Konflux PRs, releasers can approve #2693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 4 commits
ffaa929
52f9bba
921b48f
008095b
7bca5a7
1869384
7097341
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| name: auto-merge | ||
|
|
||
| on: | ||
| pull_request_target: | ||
| pull_request: | ||
| types: | ||
| - labeled | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| 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: | | ||
| exec gh api \ | ||
Molter73 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| --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" ] }' | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the comment.