summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-03-13 14:59:13 -0400
committerGitHub <noreply@github.com>2023-03-13 18:59:13 +0000
commitb9d2ac32d54110636a3abd7863ed00af030fec84 (patch)
tree3107168e1c9a3071fbc9772a961d7781071dd1fa /.github/workflows
parent44b0d4cb11853bcdc7aa61c1412719a13d572b24 (diff)
chore(ci): verify the PR title as part of linting (#18163)
This verifies the PR title as part of the lint step.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.generate.ts6
-rw-r--r--.github/workflows/ci.yml3
2 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts
index 06d8e0a02..46a2bc632 100644
--- a/.github/workflows/ci.generate.ts
+++ b/.github/workflows/ci.generate.ts
@@ -474,6 +474,12 @@ const ci = {
"deno run --unstable --allow-write --allow-read --allow-run ./tools/format.js --check",
},
{
+ name: "Lint PR title",
+ if: "matrix.job == 'lint' && github.event_name == 'pull_request'",
+ run:
+ "deno run ./tools/verify_pr_title.js '${{ github.event.pull_request.title }}'",
+ },
+ {
name: "lint.js",
if: "matrix.job == 'lint'",
run:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 474da1deb..ce99b96c6 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -285,6 +285,9 @@ jobs:
- name: test_format.js
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.job == ''lint''))'
run: deno run --unstable --allow-write --allow-read --allow-run ./tools/format.js --check
+ - name: Lint PR title
+ if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.job == ''lint'' && github.event_name == ''pull_request''))'
+ run: 'deno run ./tools/verify_pr_title.js ''${{ github.event.pull_request.title }}'''
- name: lint.js
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.job == ''lint''))'
run: deno run --unstable --allow-write --allow-read --allow-run ./tools/lint.js