forked from taichi-dev/taichi
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 898 Bytes
/
pull_request.yml
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@v4
with:
python-version: 3.8
- 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) }}