Skip to content

Commit

Permalink
setup: add commit lint and code owners
Browse files Browse the repository at this point in the history
  • Loading branch information
mohabkandil committed Feb 8, 2022
1 parent 7ff0dda commit 206b761
Show file tree
Hide file tree
Showing 6 changed files with 8,199 additions and 4,736 deletions.
11 changes: 11 additions & 0 deletions .dependabot/config.yml
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"
14 changes: 14 additions & 0 deletions .github/CODEOWNERS
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
3 changes: 3 additions & 0 deletions .github/pull_request_template.md
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
46 changes: 46 additions & 0 deletions commitlint.config.ts
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;
Loading

0 comments on commit 206b761

Please sign in to comment.