-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 'master'
Develop See merge request mishamyrt/myrt.co!7
- Loading branch information
Showing
10 changed files
with
139 additions
and
20 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,2 @@ | ||
#!/bin/bash | ||
npm run lint:fix |
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,43 @@ | ||
#!/usr/bin/env node | ||
const fs = require('fs') | ||
const path = require('path') | ||
const { promisify } = require('util') | ||
|
||
const readFile = promisify(fs.readFile) | ||
const writeFile = promisify(fs.writeFile) | ||
|
||
const commitFile = path.join(__dirname, '..', 'COMMIT_EDITMSG') | ||
|
||
function checkBranchName (branchName) { | ||
if (!branchName.includes('/')) return false | ||
switch (branchName.split('/')[0]) { | ||
case 'feature': | ||
case 'hotfix': | ||
case 'support': | ||
case 'release': | ||
return true | ||
default: | ||
return false | ||
} | ||
} | ||
|
||
let branchName | ||
readFile(path.join(__dirname, '..', 'HEAD')) | ||
.then(headContent => { | ||
const pathItems = headContent.toString().split('/') | ||
pathItems.shift() | ||
pathItems.shift() | ||
branchName = pathItems.join('/') | ||
if (!checkBranchName(branchName)) { | ||
console.error('Wrong branch name') | ||
console.info('Branch should be in Git Flow format') | ||
process.exit(0) | ||
} | ||
}) | ||
.then(() => readFile(commitFile)) | ||
.then(commitMsg => writeFile( | ||
commitFile, | ||
`${branchName.split('/')[1].trim()}: ${commitMsg.toString()}` | ||
)) | ||
.then(() => process.exit(0)) | ||
|
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
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
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 |
---|---|---|
@@ -1,8 +1,27 @@ | ||
:root { | ||
--color-background: white; | ||
--color-link: black; | ||
--color-link-background: #d8d8d8; | ||
--color-heading: black; | ||
--color-text: #6c6c6c; | ||
--color-icon: #a8a8a8; | ||
--color-line: #d8d8d8; | ||
--color-icon: #949494; | ||
--color-icon-hover: #525252; | ||
--color-line: var(--color-link-background); | ||
--color-technology-bg: var(--color-icon); | ||
--color-technology-fg: var(--color-background); | ||
} | ||
|
||
@media (prefers-color-scheme: dark) { | ||
:root { | ||
--color-link: rgba(255, 255, 255, 0.87); | ||
--color-heading: rgba(255, 255, 255, 0.87); | ||
--color-background: #121212; | ||
--color-text: rgba(255, 255, 255, 0.5); | ||
--color-icon: rgba(255, 255, 255, 0.5); | ||
--color-icon-hover: rgba(255, 255, 255, 0.5); | ||
--color-line: rgba(255, 255, 255, 0.2); | ||
--color-link-background: rgba(255, 255, 255, 0.15); | ||
--color-technology-fg: rgba(255, 255, 255, 0.32); | ||
--color-technology-bg: rgba(255, 255, 255, 0.09); | ||
} | ||
} |
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
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
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
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
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