diff --git a/.all-contributorsrc b/.all-contributorsrc
index da519c4..b501ffe 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -530,6 +530,15 @@
"code",
"test"
]
+ },
+ {
+ "login": "darekkay",
+ "name": "Darek Kay",
+ "avatar_url": "https://avatars0.githubusercontent.com/u/3101914?v=4",
+ "profile": "https://darekkay.com/",
+ "contributions": [
+ "code"
+ ]
}
],
"skipCi": true
diff --git a/README.md b/README.md
index d517116..344349d 100644
--- a/README.md
+++ b/README.md
@@ -148,8 +148,9 @@ Thanks goes to these wonderful people
Markus LΓΆning π» |
David Anson π |
Jeroen Claassens π» |
- Erek Speed π» |
Shai Reznik π π» β οΈ |
+ Darek Kay π» |
+ Erek Speed π» |
diff --git a/src/cli.js b/src/cli.js
index 91212b1..4d35681 100755
--- a/src/cli.js
+++ b/src/cli.js
@@ -66,6 +66,7 @@ function startGeneration(argv) {
}
function addContribution(argv) {
+ util.configFile.readConfig(argv.config) // ensure the config file exists
const username = argv._[1] === undefined ? undefined : String(argv._[1])
const contributions = argv._[2]
// Add or update contributor in the config file
diff --git a/src/generate/__tests__/format-contributor.js b/src/generate/__tests__/format-contributor.js
index 013318a..bb3451e 100644
--- a/src/generate/__tests__/format-contributor.js
+++ b/src/generate/__tests__/format-contributor.js
@@ -68,7 +68,7 @@ test('format contributor with pipes in their name', () => {
expect(formatContributor(options, contributor)).toBe(expected)
})
-test('format contributor with no github account', () => {
+test('format contributor with no GitHub account', () => {
const contributor = contributors.nologin
const {options} = fixtures()
diff --git a/src/repo/__tests__/github.js b/src/repo/__tests__/github.js
index 7952d32..ad9de9c 100644
--- a/src/repo/__tests__/github.js
+++ b/src/repo/__tests__/github.js
@@ -96,7 +96,7 @@ test('Throw error when missing enterprise authentication', async () => {
)
})
-test('handle API rate github errors', async () => {
+test('handle API rate GitHub errors', async () => {
const githubErrorMessage =
"API rate limit exceeded for 0.0.0.0. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details."
nock('https://api.github.com').get('/users/nodisplayname').reply(200, {
@@ -177,7 +177,7 @@ test('append http when no absolute link is provided', async () => {
expect(info.profile).toBe('http://www.github.com/nodisplayname')
})
-test('retrieve user from a different github registry', async () => {
+test('retrieve user from a different GitHub registry', async () => {
nock('http://github.myhost.com:3000/api/v3')
.get('/users/nodisplayname')
.reply(200, {