mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 22:34:13 +00:00
d60ef81ede
This PR sets up [Danger](https://danger.systems/js/) to help us codify some of our PR rules. As an initial rule, Danger will check to ensure that every PR has a `Release Notes` section: <img width="943" alt="Screenshot 2024-01-29 at 11 50 12 AM" src="https://github.com/zed-industries/zed/assets/1486634/4d56e759-e72f-4bc0-8e74-42c55e2e6888"> Release Notes: - N/A
35 lines
673 B
YAML
35 lines
673 B
YAML
name: Danger
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
- edited
|
|
|
|
jobs:
|
|
danger:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: pnpm/action-setup@v2.2.4
|
|
with:
|
|
version: 8
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
cache: "pnpm"
|
|
cache-dependency-path: "script/danger/pnpm-lock.yaml"
|
|
|
|
- run: pnpm install --dir script/danger
|
|
|
|
- name: Run Danger
|
|
run: pnpm run --dir script/danger danger ci
|
|
env:
|
|
GITHUB_TOKEN: ${{ github.token }}
|