|
| 1 | +<% if private %> |
| 2 | +# Copyright (c) 2025 Columnar Technologies Inc. All rights reserved. |
| 3 | +<% else %> |
| 4 | +# Copyright (c) 2025 ADBC Drivers Contributors |
| 5 | +# |
| 6 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | +# you may not use this file except in compliance with the License. |
| 8 | +# You may obtain a copy of the License at |
| 9 | +# |
| 10 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +# |
| 12 | +# Unless required by applicable law or agreed to in writing, software |
| 13 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | +# See the License for the specific language governing permissions and |
| 16 | +# limitations under the License. |
| 17 | +<% endif %> |
| 18 | + |
| 19 | +# This is a common workflow for performing basic PR checks, like ensuring the |
| 20 | +# title format. |
| 21 | + |
| 22 | +name: Dev PR |
| 23 | + |
| 24 | +on: |
| 25 | + pull_request_target: |
| 26 | + types: |
| 27 | + - opened |
| 28 | + - edited |
| 29 | + - synchronize |
| 30 | + - ready_for_review |
| 31 | + - review_requested |
| 32 | + |
| 33 | +concurrency: |
| 34 | + group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }} |
| 35 | + cancel-in-progress: true |
| 36 | + |
| 37 | +defaults: |
| 38 | + run: |
| 39 | + shell: bash |
| 40 | + |
| 41 | +permissions: |
| 42 | + contents: read |
| 43 | + |
| 44 | +jobs: |
| 45 | + pr_standard: |
| 46 | + name: "Check PR" |
| 47 | + runs-on: ubuntu-latest |
| 48 | + if: github.event_name == 'pull_request' |
| 49 | + |
| 50 | + steps: |
| 51 | +<% if driver == "dev" %> |
| 52 | + - uses: actions/checkout@v6 |
| 53 | + with: |
| 54 | + fetch-depth: 1 |
| 55 | + persist-credentials: false |
| 56 | + |
| 57 | + - name: Check PR title format |
| 58 | + env: |
| 59 | + PR_TITLE: ${{ github.event.pull_request.title }} |
| 60 | + run: | |
| 61 | + python adbc_drivers_dev/title_check.py $(pwd) "$PR_TITLE" |
| 62 | +<% else %> |
| 63 | + - name: Check PR title format |
| 64 | + env: |
| 65 | + PR_TITLE: ${{ github.event.pull_request.title }} |
| 66 | + run: | |
| 67 | + git clone --depth 1 https://github.com/adbc-drivers/dev |
| 68 | + python dev/adbc_drivers_dev/title_check.py $(pwd) "$PR_TITLE" |
| 69 | +<% endif %> |
| 70 | + |
| 71 | + # TODO: assign milestone |
0 commit comments