Files
indee-demo/backend/commitlint.config.js
Dorian cdd24a5def Implement backend API and database services in Docker setup
- Added a new `api` service for the NestJS backend, including health checks and dependencies on PostgreSQL, Redis, and MinIO.
- Introduced PostgreSQL and Redis services with health checks and configurations for data persistence.
- Added MinIO for S3-compatible object storage and a one-shot service to initialize required buckets.
- Updated the Nginx configuration to proxy requests to the new backend API and MinIO storage.
- Enhanced the Dockerfile to support the new API environment variables and configurations.
- Updated the `package.json` and `package-lock.json` to include new dependencies for QR code generation and other utilities.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 20:14:39 +00:00

30 lines
1.2 KiB
JavaScript

// from https://github.com/arvinxx/gitmoji-commit-workflow/tree/master/packages/gitmoji-regex
const isGitmoji = (commit) =>
commit.match(
/^(?::\w*:|(?:\ud83c[\udf00-\udfff])|(?:\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]|♻️|🥅|🧱|🤡|🏷️|🚧|♻️|✏️|⚡️|🔥|⬆️|⏪|🦺|🗃️)\s(?<type>\w*)(?:\((?<scope>.*)\))?!?:\s(?<subject>(?:(?!#).)*(?:(?!\s).))(?:\s\(?(?<ticket>#\d*)\)?)?$/gm,
);
const isConventional = (commit) =>
commit.match(
/^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert|merge)(\(.+\))?:\s/,
);
module.exports = {
extends: ['@commitlint/config-conventional', 'gitmoji'],
rules: {
'subject-empty': () => {
const commitMsg = process.env.COMMIT_MSG || '';
return isGitmoji(commitMsg) ? [0, 'always'] : [2, 'never'];
},
'type-empty': () => {
const commitMsg = process.env.COMMIT_MSG || '';
return isGitmoji(commitMsg) ? [0, 'always'] : [2, 'never'];
},
'start-with-gitmoji': () => {
const commitMsg = process.env.COMMIT_MSG || '';
return isGitmoji(commitMsg) && !isConventional(commitMsg)
? [2, 'never']
: [0, 'always'];
},
},
};