feat: night-shift roadmap — guide+skill, streamable HTTP, cell-order sync, terminal interrupt #147
This file contains hidden or 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: Commit Lint | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| commitlint-pr: | |
| name: Validate PR Commits | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout with full history | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js and install dependencies | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Validate all commits in PR | |
| run: | | |
| echo "Validating commits from ${{ github.event.pull_request.base.sha }} to ${{ github.event.pull_request.head.sha }}" | |
| npx commitlint \ | |
| --from ${{ github.event.pull_request.base.sha }} \ | |
| --to ${{ github.event.pull_request.head.sha }} \ | |
| --verbose | |
| commitlint-push: | |
| name: Validate Push Commit | |
| if: github.event_name == 'push' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout with full history | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js and install dependencies | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Validate commit message | |
| run: | | |
| COMMIT_MSG=$(git log -1 --pretty=%B) | |
| COMMIT_SHA=$(git log -1 --pretty=%H) | |
| echo "Validating commit $COMMIT_SHA" | |
| echo "Message: $COMMIT_MSG" | |
| npx commitlint \ | |
| --from HEAD~1 \ | |
| --to HEAD \ | |
| --verbose |