Skip to content

Conversation

Ansonhkg
Copy link
Collaborator

@Ansonhkg Ansonhkg commented Aug 15, 2025

WHAT

  • Added CI triggers for feature branches and naga branch to ensure E2E tests run on all dev workflows.
  • Added Husky for automated code quality enforcement and commit message validation.

Copy link
Contributor

@Copilot Copilot AI left a comment

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 enhances the development workflow by adding automated code quality enforcement and expanding CI coverage. The changes add Husky for Git hooks with linting and commit message validation, while also extending E2E test triggers to include feature branches and the naga branch.

  • Added Husky with pre-commit hooks for automated linting and type checking
  • Configured lint-staged to run prettier and eslint on staged files, excluding generated files
  • Extended E2E workflow triggers to include naga branch and feature branches

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
package.json Added husky and lint-staged dependencies with prepare script
.lintstagedrc.js Configured lint-staged to format and lint TypeScript/JavaScript files and JSON/Markdown files
.husky/pre-commit Set up pre-commit hook to run lint-staged and typecheck
.husky/commit-msg Added commit message validation for conventional commits
.github/workflows/e2e.yml Extended workflow triggers to include naga and feature branches

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

if ! head -1 "$1" | grep -qE "^(feat|fix|chore|docs|test|style|refactor|perf|build|ci|revert|wip)(\(.+?\))?: .{1,}$|^Merge branch .+$"; then
echo "Aborting commit. Your commit message must match https://www.conventionalcommits.org/en/v1.0.0/" >&2
exit 1
fi No newline at end of file
Copy link
Preview

Copilot AI Aug 15, 2025

Choose a reason for hiding this comment

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

There is a trailing space after 'fi' which should be removed for cleaner code.

Suggested change
fi
fi

Copilot uses AI. Check for mistakes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

f you copilot

Copy link
Contributor

Choose a reason for hiding this comment

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

CLUTCH REVIEW FEEDBACK.

Copy link
Contributor

@MaximusHaximus MaximusHaximus left a comment

Choose a reason for hiding this comment

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

👍

@DashKash54
Copy link
Collaborator

The CI is working on features branches
We'll create another PR for- "Added Husky for automated code quality enforcement and commit message validation."

@DashKash54 DashKash54 closed this Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants