pawarprasad123 opened a new pull request, #631:
URL: https://github.com/apache/atlas/pull/631

   
   ## What changes were proposed in this pull request?
   
   This PR adds local Git automation for the whole Atlas repo so contributors 
catch issues before a PR: license headers on new files, ESLint on staged 
dashboard sources (via lint-staged), TypeScript tsc --noEmit for the dashboard 
when dashboard/ is staged, and for dashboardv2/ and docs/ lighter checks (ASF 
license + node --check on pre-commit; npm run build on pre-push). It does not 
add Jest or test files; those are PR 2+.
   
   What it does
   
   Root .githooks/pre-commit and .githooks/pre-push call 
scripts/git-hooks/run-precommit.mjs and run-prepush.mjs.
   scripts/git-hooks/: Orchestrates dashboard (existing verify scripts + 
lint-staged + typecheck), v2/docs license + syntax, v2/docs build on push.
   dashboard/scripts/install-git-hooks.mjs: Sets git config core.hooksPath 
.githooks at repo root (run via npm install in dashboard/ prepare).
   dashboard/.githooks/*: Forwarders to root hooks for compatibility.
   dashboard/lint-staged.config.mjs: ESLint only on staged 
dashboard/src/**/*.{ts,tsx}.
   dashboard/docs/GIT_HOOKS.md: When/what/where, skip env vars, manual commands 
(node scripts/git-hooks/run-precommit.mjs from repo root).
   Setup on another machine
   
   cd /path/to/atlas
   git config core.hooksPath .githooks
   or cd dashboard && npm install
   Verify: git config --get core.hooksPath → .githooks
   
   
   ## How was this patch tested?
   Manual test, build pass
   <img width="1105" height="601" alt="image" 
src="https://github.com/user-attachments/assets/59d3cd67-2393-456d-a005-e772408bb829";
 />
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to