cloudflare/kumo

Public

mirrored from https://github.com/cloudflare/kumoAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
main

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/validate-pr-description.yml

66lines · modecode

1name: Validate PR Description
2
3on:
4 pull_request:
5 types:
6 [
7 opened,
8 synchronize,
9 reopened,
10 labeled,
11 unlabeled,
12 edited,
13 ready_for_review,
14 converted_to_draft,
15 ]
16
17permissions:
18 contents: read
19
20jobs:
21 check:
22 # Don't check the Version Packages PR
23 if: github.head_ref != 'changeset-release/main'
24 concurrency:
25 group: ${{ github.workflow }}-${{ github.ref }}-add-pr
26 cancel-in-progress: true
27 timeout-minutes: 30
28 name: Check
29 runs-on: ubuntu-slim
30 steps:
31 - name: Checkout Repo
32 uses: actions/checkout@v4
33 with:
34 fetch-depth: 1
35
36 - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
37 id: changes
38 with:
39 filters: |
40 everything_but_markdown:
41 - '!**/*.md'
42
43 - name: Install Dependencies
44 if: steps.changes.outputs.everything_but_markdown == 'true'
45 uses: ./.github/actions/install-dependencies
46 with:
47 turbo-api: ${{ secrets.TURBO_API }}
48 turbo-team: ${{ secrets.TURBO_TEAM }}
49 turbo-token: ${{ secrets.TURBO_TOKEN }}
50 turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
51
52 - name: List changed files
53 if: steps.changes.outputs.everything_but_markdown == 'true'
54 id: files
55 uses: Ana06/get-changed-files@25f79e676e7ea1868813e21465014798211fad8c # v2.3.0
56 with:
57 format: "json"
58
59 - run: pnpm tsx tools/deployments/validate-pr-description.ts
60 if: steps.changes.outputs.everything_but_markdown == 'true'
61 env:
62 TITLE: ${{ github.event.pull_request.title }}
63 BODY: ${{ github.event.pull_request.body }}
64 LABELS: ${{ toJson(github.event.pull_request.labels.*.name) }}
65 FILES: ${{ steps.files.outputs.all }}
66 DRAFT: ${{ github.event.pull_request.draft }}
67