#PR Naming
#<story-id> story description
Example
#869522144 Build HQ for meetings
#PR Description Template (Markdown)
[ | |
{ | |
"title": "Alice in Wonderland", | |
"text": "Alice falls into a rabbit hole and enters a world full of imagination." | |
}, | |
{ | |
"title": "The Lord of the Rings: The Fellowship of the Ring.", | |
"text": "An unusual alliance of man, elf, dwarf, wizard and hobbit seek to destroy a powerful ring." | |
}, |
#PR Naming
#<story-id> story description
Example
#869522144 Build HQ for meetings
#PR Description Template (Markdown)
#Format of the commit message
<type>(<scope>): <subject>``<BLANK LINE>
<body>
<BLANK LINE>
<footer>
Any line cannot be longer than a 100 characters, meaning be concise.
Subject line
#Branch Naming
Branches being created should have the following format:
<story type>/<story id>/<3-4 word story description>
#Example
chore/111504508/save-the-world
const middleware = { | |
some: function (a, b, next) { | |
if (a === 1){ | |
next(); | |
} else { | |
return false; | |
} | |
} | |
}; |
page
: current page of the query result based on limit and offsetpageCount
: total number of pagespageSize
: number of records per page (based on limit)totalCount
: total number of records based on queryfunction stringToLine(sentence, charactersPerLine) { | |
const length = sentence.length; | |
let line = ''; | |
for (let i = 0; i < length; i++) { | |
line = line + sentence[i]; | |
if ((i + 1) % charactersPerLine === 0 || (length - i + 1 <= charactersPerLine)) { |
const arrayOfSlackMessages = [1, 2, 3, 4, 5]; | |
const waitTimes = [1000, 2000, 5000, 10000]; | |
function sendSlackMessage(message, waitTime) { | |
return new Promise(function (resolve, reject) { | |
setTimeout(function () { | |
resolve(); | |
}, waitTime); | |
}) | |
} |
using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies