Skip to content
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

Bump betelgeuse from 1.10.0 to 1.11.0 #90

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
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
Next Next commit
Tier2 Reviewers Assignment
Add the initial workflow for Tier 2 reviewer assignment.
  • Loading branch information
JacobCallahan authored Jul 26, 2023
commit 23be7b2b2bc68a38307404fd4c55264067687f85
37 changes: 37 additions & 0 deletions .github/workflows/tier_2_reviews.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Github Action to Automatically assign T2 Reviewers to framework touched PRs
name: Tier2 Reviewers

on:
pull_request:
paths: ['*', '.github/**', 'conf/**', 'pytest_fixtures/**', 'pytest_plugins/**', 'robottelo/**', '!robottelo/constants/*', 'scripts/**', 'tests/foreman/sanity/*']

permissions:
pull-requests: write

env:
NUMBER: ${{ github.event.number }}
REVIEWERS: '["robottelo-tier-2-reviewers"]'
LABELS: '["Framework Changes"]'

jobs:
assign-label-T2-reviewers:
name: Assign Tier2 Reviewers to the PR
runs-on: ubuntu-latest
steps:
- name: Add Labels to the PR
run: |
echo "Adding applicable labels to the PR $NUMBER"
curl -L -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.CHERRYPICK_PAT }}" \
https://api.github.com/repos/SatelliteQE/robottelo/issues/$NUMBER/labels \
-d '{"labels": '"$LABELS"'}'
- name: Assign T2 Reviewers Team to the PR
run: |
echo "Assigning T2 Reviewers to the PR $number"
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.CHERRYPICK_PAT }}" \
https://api.github.com/repos/SatelliteQE/robottelo/pulls/$NUMBER/requested_reviewers \
-d '{"team_reviewers": '"${REVIEWERS}"'}'
Loading