mirror of
https://github.com/cloudflare/cloudflare-docs.git
synced 2026-01-11 20:06:58 +00:00
27 lines
861 B
YAML
27 lines
861 B
YAML
name: Show Changed Files
|
|
|
|
# **What it does**: Comments on a PR with before/after links for changes in the PR.
|
|
# **Why we have it**: Makes reviewing a PR much easier b/c you don't have to hunt for specific pages.
|
|
# **Who does it impact**: PCX team
|
|
|
|
on:
|
|
issue_comment:
|
|
types:
|
|
- created
|
|
- edited
|
|
|
|
jobs:
|
|
changed-files-links:
|
|
name: Show Changed Files
|
|
if: github.event.issue.pull_request && github.event.issue.state == 'open' && github.event.comment.user.id == 41898282 && contains(github.event.comment.body, '**Preview URL:**')
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: "npm"
|
|
- run: npm ci
|
|
- run: npx tsx bin/show-changed-files/index.ts
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|