-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/backend setup #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2ecf410
chore: backend scaffold and setup
onerandomdevv 6aa601e
feat: complete backend setup
onerandomdevv 91c4247
fix: add pnpm workspace packages
onerandomdevv df3143c
fix: align CI pnpm with lockfile
onerandomdevv f0306b0
fix: resolve ESLint config imports
onerandomdevv afa8f42
fix: load Next ESLint config through compat
onerandomdevv 2ccf7cf
fix: patch legacy Next ESLint rules
onerandomdevv 34ac354
fix: use optimized logo image on login
onerandomdevv eb27a11
chore: add favicon logo asset
onerandomdevv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # CODEDDEVS TECHNOLOGY LTD — Code Owners | ||
| # All PRs targeting main or dev require review from the repo owner before merging | ||
|
|
||
| * @onerandomdevv |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| --- | ||
| name: Bug report | ||
| about: Something is broken | ||
| labels: bug | ||
| --- | ||
|
|
||
| ## What is broken? | ||
|
|
||
| ## Steps to reproduce | ||
| 1. | ||
| 2. | ||
| 3. | ||
|
|
||
| ## Expected behaviour | ||
|
|
||
| ## Actual behaviour | ||
|
|
||
| ## Environment | ||
| - Branch: | ||
| - Node version: | ||
| - Browser (if UI): |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| --- | ||
| name: Feature request | ||
| about: Suggest something new | ||
| labels: enhancement | ||
| --- | ||
|
|
||
| ## What do you want to build? | ||
|
|
||
| ## Why is it needed? | ||
|
|
||
| ## Acceptance criteria | ||
| - [ ] | ||
| - [ ] | ||
| - [ ] | ||
|
|
||
| ## Notes |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| ## What does this PR do? | ||
| <!-- Brief description of the changes --> | ||
|
|
||
| ## Type of change | ||
| - [ ] Feature | ||
| - [ ] Bug fix | ||
| - [ ] Config / setup | ||
| - [ ] Refactor | ||
| - [ ] Docs | ||
|
|
||
| ## Checklist | ||
| - [ ] I have read CLAUDE.md | ||
| - [ ] pnpm build passes locally with no errors | ||
| - [ ] No TypeScript errors (pnpm tsc --noEmit) | ||
| - [ ] No hardcoded secrets or API keys | ||
| - [ ] All new API routes check for admin session before executing | ||
| - [ ] No UI libraries were installed | ||
| - [ ] Fonts are loaded via next/font/google only | ||
| - [ ] pnpm was used (not npm or yarn) | ||
|
|
||
| ## Screenshots (if UI changes) | ||
| <!-- Add screenshots here if this PR touches any frontend pages --> | ||
|
|
||
| ## Notes for reviewer | ||
| <!-- Anything the reviewer should know --> |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - dev | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| - dev | ||
|
|
||
| jobs: | ||
| ci: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v3 | ||
| with: | ||
| version: 10 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
| cache: pnpm | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: TypeScript check | ||
| run: pnpm tsc --noEmit | ||
|
|
||
| - name: ESLint | ||
| run: pnpm eslint src/ --ext .ts,.tsx --max-warnings 0 | ||
|
|
||
| - name: Build check | ||
| run: pnpm build | ||
| env: | ||
| DATABASE_URL: postgresql://dummy:dummy@dummy/dummy | ||
| DATABASE_URL_UNPOOLED: postgresql://dummy:dummy@dummy/dummy | ||
| NEXTAUTH_SECRET: dummy-secret-for-ci-only-not-real | ||
| NEXTAUTH_URL: http://localhost:3000 | ||
| NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME: dummy | ||
| NEXT_PUBLIC_CLOUDINARY_UPLOAD_PRESET: dummy | ||
| CLOUDINARY_API_KEY: dummy | ||
| CLOUDINARY_API_SECRET: dummy | ||
| RESEND_API_KEY: dummy | ||
| CONTACT_NOTIFICATION_EMAIL: ci@dummy.com |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| name: Preview | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| preview: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Comment preview status | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| await github.rest.issues.createComment({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| issue_number: context.issue.number, | ||
| body: "✅ CI passed. Vercel preview deployment will be available shortly.", | ||
| }); | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: coded-devs/website
Length of output: 2085
Preview workflow unconditionally claims CI passed, even when CI fails.
This workflow runs independently on
pull_requestevents and always posts "✅ CI passed" (Line 21), regardless of the CI workflow status. This can mislead reviewers when actual CI checks are failing.Suggested fix (safe/low-effort)
For accurate messaging, either update the text to not claim CI success, or gate this workflow on CI success via
workflow_runtriggered on completed+success of the CI workflow.📝 Committable suggestion
🤖 Prompt for AI Agents