feat: linear ticket checker #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: linear ticket check | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
env: | |
LINEAR_API_KEY: ${{ secrets.LINEAR_API_KEY }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Fetch main branch | |
run: | | |
git fetch origin ${{ github.event.pull_request.base.ref }}:refs/remotes/origin/main | |
git checkout origin/main | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: npm | |
cache-dependency-path: tools/linear-checker/package-lock.json | |
- name: Check comment issues | |
working-directory: tools/linear-checker | |
run: npm install && npm run check |