-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup: add commit lint and code owners
- Loading branch information
1 parent
7ff0dda
commit 206b761
Showing
6 changed files
with
8,199 additions
and
4,736 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "monday" | ||
labels: | ||
- "dependencies" | ||
ignore: | ||
- dependency-name: "typescript" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This is a comment. | ||
# Each line is a file pattern followed by one or more owners. | ||
|
||
# These owners will be the default owners for everything in | ||
# the repo. Unless a later match takes precedence, | ||
# and will be requested for review when | ||
# anyone opens a pull request. | ||
<!-- * @ashrafhofney --> | ||
|
||
*.ts @mohabkandil | ||
|
||
# this is a reference for all the rules | ||
# and different combinations of rules | ||
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
this PR solves issue [PROJECT-TICKET_NUMBER] | ||
|
||
small description of the issue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import type { UserConfig } from "@commitlint/types"; | ||
|
||
const Configuration: UserConfig = { | ||
parserPreset: { | ||
parserOpts: { | ||
referenceActions: null, | ||
issuePrefixes: ["AFRPAY-"], | ||
}, | ||
}, | ||
rules: { | ||
"body-leading-blank": [1, "always"], | ||
"body-max-line-length": [2, "always", 100], | ||
"footer-leading-blank": [1, "always"], | ||
"footer-max-line-length": [2, "always", 100], | ||
"header-max-length": [2, "always", 100], | ||
"subject-case": [ | ||
2, | ||
"never", | ||
["sentence-case", "start-case", "pascal-case", "upper-case"], | ||
], | ||
"subject-empty": [2, "never"], | ||
"subject-full-stop": [2, "never", "."], | ||
"references-empty": [2, "never"], | ||
"type-case": [2, "always", "lower-case"], | ||
"type-empty": [2, "never"], | ||
"type-enum": [ | ||
2, | ||
"always", | ||
[ | ||
"build", | ||
"chore", | ||
"ci", | ||
"docs", | ||
"feature", | ||
"fix", | ||
"refactor", | ||
"revert", | ||
"test", | ||
"setup", | ||
], | ||
], | ||
}, | ||
ignores: [(message) => message.includes("setup")], | ||
}; | ||
|
||
module.exports = Configuration; |
Oops, something went wrong.