-
Notifications
You must be signed in to change notification settings - Fork 2.4k
30 lines (27 loc) · 911 Bytes
/
pull_request.yml
File metadata and controls
30 lines (27 loc) · 911 Bytes
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
name: Presubmit Title Checks
on:
pull_request_target:
types: [opened, synchronize, reopened, edited]
jobs:
pre_submit:
name: Presubmit Title Checks
if: ${{ github.event.pull_request }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Install Dependencies
run: pip install semver GitPython PyGithub
- name: Run PR Title Checker
run: |
python misc/ci_check_pr_title.py "$PR_TITLE"
env:
PR_TITLE: ${{ github.event.pull_request.title }}
# - name: PR Project Card Creation
# if: github.event.action == 'opened' || github.event.action == 'edited'
# run: python misc/ci_create_pr_card.py
# env:
# GITHUB_TOKEN: ${{ secrets.GARDENER_PAT }}
# GH_EVENT: ${{ toJson(github.event) }}