|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +# GH actions. |
| 19 | +# We use it to cover windows and mac builds |
| 20 | +# Jenkins is still the primary CI |
| 21 | + |
| 22 | +name: PR |
| 23 | + |
| 24 | +on: |
| 25 | + # See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target |
| 26 | + pull_request_target: |
| 27 | + types: [assigned, opened, synchronize, reopened, edited, ready_for_review] |
| 28 | + |
| 29 | +concurrency: |
| 30 | + group: PR-${{ github.event.pull_request.number }} |
| 31 | + cancel-in-progress: true |
| 32 | + |
| 33 | +jobs: |
| 34 | + cc-reviewers: |
| 35 | + runs-on: ubuntu-latest |
| 36 | + steps: |
| 37 | + - uses: actions/checkout@v2 |
| 38 | + with: |
| 39 | + submodules: "recursive" |
| 40 | + - name: Add cc'ed reviewers |
| 41 | + env: |
| 42 | + PR: ${{ toJson(github.event.pull_request) }} |
| 43 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 44 | + run: | |
| 45 | + set -eux |
| 46 | + python tests/scripts/github_cc_reviewers.py || echo step failed |
0 commit comments