Skip to content
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

ci: Migrate commitlint config to JavaScript #75

Merged
merged 1 commit into from
Feb 11, 2024
Merged

Conversation

mdsanima
Copy link
Contributor

Replaced the legacy .commitlintrc file with a more modular and maintainable commitlint.config.js file within the .github directory.

The GitHub Actions Workflow has been updated to use the new config setting, ensuring that commit message linting aligns with our updated practices. Additionally, streamlined the workflow trigger and permissions for improved readability and security.

Commit types and scope cases are enforced, with rules set for header, body, and footer formats.

Valid commit messages must be like this feat: Valid commit message example. To customize formatting for all lowercase like using feat: valid commit message, follow the defined rules for subject-case options in the commitlint.config.js file, specifically the setting "subject-case": [2, "always", "sentence-case"], change this setting to "subject-case": [2, "never", SubjectsArray], on the specific line.

Refactors the projects commit linting setup, enhancing future scalability and maintainability of commit standards.

Replaced the legacy `.commitlintrc` file with a more modular and
maintainable `commitlint.config.js` file within the `.github`
directory.

The _GitHub Actions Workflow_ has been updated to use the new config
setting, ensuring that commit message linting aligns with our updated
practices. Additionally, streamlined the workflow trigger and permissions
for improved readability and security.

Commit types and scope cases are enforced, with rules set for header,
body, and footer formats.

Valid commit messages must be like this `feat: Valid commit message` example.
To customize formatting for all lowercase like using `feat: valid commit message`,
follow the defined rules for `subject-case` options in the `commitlint.config.js`
file, specifically the setting `"subject-case": [2, "always", "sentence-case"],`
change this setting to `"subject-case": [2, "never", SubjectsArray],` on the
specific line.

Refactors the projects commit linting setup, enhancing future scalability
and maintainability of commit standards.
@mdsanima mdsanima merged commit 8b2a968 into main Feb 11, 2024
1 check passed
@mdsanima mdsanima deleted the ci/commitlint-config branch February 11, 2024 21:47
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.

1 participant