Skip to content

Commit

Permalink
style: refine documentation (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsanima authored Apr 25, 2024
1 parent f6a0c8d commit 8b46aae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/commitlint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
// Defined rules on commit messages from PR. See this: https://commitlint.js.org/#/reference-rules
// Defined rules on commit messages that are checked on pull requests.

/**
* The array of rule types that are allowed in commit messages.
*/
// See the documentation for reference rules: https://commitlint.js.org/#/reference-rules

// These rules are used to check if the commit message contains a type. The type is the first word
// in the commit message and must match one of the types defined in the `typesRule` array in this
// configuration file.

/** The array of rule types that are allowed in commit messages. */
const typesRule = [
"build",
"chore",
Expand All @@ -17,14 +21,10 @@ const typesRule = [
"test",
];

/**
* The array of rule subjects that are allowed in commit messages.
*/
/** The array of rule subjects that are allowed in commit messages. */
const subjectsRule = ["upper-case", "pascal-case", "sentence-case", "start-case"];

/**
* The rules configuration for commitlint thats is used in GitHub Workflow Actions.
*/
/** The rules configuration for commitlint that is used in GitHub Workflow Actions. */
const commitlintConfig = {
rules: {
"type-enum": [2, "always", typesRule],
Expand Down
3 changes: 2 additions & 1 deletion .github/labels.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Defined labels
# Defined labels for pull requests and issues.

# General labels.
- name: bug
color: B60205
description: Something isn't working
Expand Down

0 comments on commit 8b46aae

Please sign in to comment.