-
Notifications
You must be signed in to change notification settings - Fork 11
58 lines (48 loc) · 1.52 KB
/
dev_pr.yaml
File metadata and controls
58 lines (48 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Copyright (c) 2025 ADBC Drivers Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This is a common workflow for performing basic PR checks, like ensuring the
# title format.
name: Dev PR
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- ready_for_review
- review_requested
concurrency:
group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
pr_standard:
name: "Check PR"
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 1
persist-credentials: false
- name: Check PR title format
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
git clone --depth 1 https://github.com/adbc-drivers/dev
python dev/adbc_drivers_dev/title_check.py $(pwd) "$PR_TITLE"
# TODO: assign milestone