Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PR Checks

on:
pull_request:
branches: [main]

jobs:
lint-and-format:
name: Lint & Format Check
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: ESLint validation
run: npm run lint

- name: TypeScript type checking
run: npm run type-check
31 changes: 31 additions & 0 deletions .github/workflows/summary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Summarize new issues

on:
issues:
types: [opened] # Triggers when new issues are created

jobs:
summary:
runs-on: ubuntu-latest
permissions:
issues: write # Can comment on issues
models: read # For future AI integration
contents: read # Can read repository content

steps:
- name: Checkout repository
uses: actions/checkout@v4 # Gets repository code

- name: Create issue summary
id: summary
run: |
# Creates a simple automated summary
SUMMARY="**Issue Summary:** This issue has been automatically categorized and will be reviewed by the maintainers. Title: ${{ github.event.issue.title }}"
echo "summary=${SUMMARY}" >> $GITHUB_OUTPUT # Sets output for next step

- name: Comment with summary
run: |
gh issue comment $ISSUE_NUMBER --body "${{ steps.summary.outputs.summary }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Built-in GitHub token
ISSUE_NUMBER: ${{ github.event.issue.number }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"type-check": "tsc --noEmit"
},
"dependencies": {
"@auth/core": "^0.37.0",
Expand Down