| 1 |
name: 'Ping code owners on PRs' |
| 2 |
on: |
| 3 |
pull_request_target: |
| 4 |
types: |
| 5 |
- labeled |
| 6 |
- ready_for_review |
| 7 |
|
| 8 |
permissions: read-all |
| 9 |
|
| 10 |
jobs: |
| 11 |
ping-owners: |
| 12 |
permissions: |
| 13 |
pull-requests: write |
| 14 |
runs-on: ubuntu-24.04 |
| 15 |
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.repository_owner == 'open-telemetry' && github.event.pull_request.draft == false }} |
| 16 |
steps: |
| 17 |
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 |
| 18 |
|
| 19 |
- name: Run ping-codeowners-prs.sh |
| 20 |
run: ./.github/workflows/scripts/ping-codeowners-prs.sh |
| 21 |
env: |
| 22 |
REPO: ${{ github.repository }} |
| 23 |
AUTHOR: ${{ github.event.pull_request.user.login }} |
| 24 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 25 |
PR: ${{ github.event.number }} |
| 26 |
COMPONENT: ${{ github.event.label.name }} |