Commit 5bffa15b authored by Pouya Kary's avatar Pouya Kary

even more foramatting

parent d83bd272
......@@ -136,11 +136,14 @@
gulp.task( 'get-commit-counts', callback => {
const commitCountFilePath = `./${resultDirPath}/about/commit-count.txt`
const githubOrchestraRepositoryAPI =
'https://api.github.com/repos/karyfoundation/orchestra/stats/contributors'
try {
async function getCommitCountFromMasterBranchOfGithub ( ) {
return new Promise ( ( resolve, reject ) => {
const options = {
url: 'https://api.github.com/repos/karyfoundation/orchestra/stats/contributors',
url: githubOrchestraRepositoryAPI,
method: 'GET',
headers: {
'User-Agent': 'Super Agent/0.0.1',
......@@ -169,7 +172,7 @@
} catch ( error ) {
try {
shell('git rev-list --all --count > ' + commitCountFilePath )
shell( 'git rev-list --all --count > ' + commitCountFilePath )
callback( )
} catch ( error2 ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment