2022-10-20 04:58:34 -07:00
|
|
|
name: Check PR title
|
2022-09-14 01:50:42 -07:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- edited
|
|
|
|
- synchronize
|
2023-02-21 05:04:35 -08:00
|
|
|
branches:
|
2024-08-22 02:41:53 -07:00
|
|
|
- 'master'
|
2022-09-14 01:50:42 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-pr-title:
|
|
|
|
runs-on: ubuntu-latest
|
2022-10-20 04:58:34 -07:00
|
|
|
timeout-minutes: 5
|
2022-09-14 01:50:42 -07:00
|
|
|
steps:
|
2022-10-20 04:58:34 -07:00
|
|
|
- name: Check out branch
|
2024-01-26 02:26:30 -08:00
|
|
|
uses: actions/checkout@v4.1.1
|
2022-10-20 04:58:34 -07:00
|
|
|
|
2024-02-02 00:47:58 -08:00
|
|
|
- run: corepack enable
|
2024-05-24 03:32:50 -07:00
|
|
|
- uses: actions/setup-node@v4.0.2
|
2023-02-28 02:54:46 -08:00
|
|
|
with:
|
2024-05-24 03:32:50 -07:00
|
|
|
node-version: 20.x
|
2023-02-28 02:54:46 -08:00
|
|
|
cache: 'pnpm'
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
|
2022-10-20 04:58:34 -07:00
|
|
|
- name: Validate PR title
|
|
|
|
id: validate_pr_title
|
2024-09-12 03:02:37 -07:00
|
|
|
uses: n8n-io/validate-n8n-pull-request-title@v2.2.0
|
2022-09-14 01:50:42 -07:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|