Skip to content

Add CODEOWNERS, PR template, and CI workflows for Next.js setup - #50

Open
allenjose24 wants to merge 9 commits into
stagefrom
dev
Open

allenjose24 wants to merge 9 commits into
stagefrom
dev

Conversation

@allenjose24

Copy link
Copy Markdown
Member

This pull request sets up foundational project infrastructure for both backend and frontend development, including CI workflows, code ownership, environment configuration, and contribution templates. These changes help streamline development processes, clarify responsibilities, and ensure smoother onboarding for contributors.

Project Infrastructure & Automation:

  • Added GitHub Actions workflows for continuous integration of backend (backend-ci.yml) and frontend (frontend-ci.yml), enabling automated build, test, and lint steps on key branches and pull requests. [1] [2]

Code Ownership & Contribution Guidelines:

  • Introduced a .github/CODEOWNERS file to define code ownership for backend, frontend, and documentation directories, clarifying responsibility for code reviews.
  • Added a pull request template (PULL_REQUEST_TEMPLATE.md) to standardize PR descriptions and ensure contributors follow key checks.

Frontend Setup:

  • Provided a sample environment file (frontend/.env.example) to guide API configuration and mock API usage for local development.
  • Updated .gitignore to allow tracking of .env.example, ensuring the example config is available to all contributors.

Repository Structure:

  • Added .gitkeep files to track empty frontend/components and frontend/lib directories, maintaining folder structure in version control. [1] [2]

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds baseline repository infrastructure for a Next.js frontend (and planned backend) by introducing CI workflows, ownership rules, contribution templates, and starter environment/config scaffolding to standardize contribution and automation.

Changes:

  • Added GitHub Actions CI workflows for frontend and backend paths.
  • Introduced CODEOWNERS and a pull request template to standardize review ownership and PR hygiene.
  • Added frontend env example, updated frontend .gitignore to allow tracking it, and added .gitkeep files to preserve empty directories.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
.github/workflows/frontend-ci.yml Adds frontend CI (npm install/lint/build) scoped to frontend changes.
.github/workflows/backend-ci.yml Adds backend CI (Maven verify + docker build) scoped to backend changes.
.github/CODEOWNERS Establishes default code ownership for backend/frontend/docs paths.
.github/PULL_REQUEST_TEMPLATE.md Adds a PR template with checklist and closing convention.
frontend/.env.example Provides example environment variables for API base URL and mock toggle.
frontend/.gitignore Ensures .env.example is not ignored while .env* remains ignored.
frontend/components/.gitkeep Tracks an otherwise-empty components directory in git.
frontend/lib/.gitkeep Tracks an otherwise-empty lib directory in git.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


## Checklist
- [ ] Tested locally
- [ ] Matches API_CONTRACT.md (if touching an endpoint)
Comment on lines +6 to +9
paths: ["frontend/**"]
pull_request:
branches: [main, stage, dev]
paths: ["frontend/**"]
Comment on lines +6 to +9
paths: ["backend/**"]
pull_request:
branches: [main, stage, dev]
paths: ["backend/**"]
Comment on lines +12 to +14
build-and-test:
runs-on: ubuntu-latest
defaults:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants