diff --git a/.all-contributorsrc b/.all-contributorsrc
index a57b6b6..113fa51 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -89,6 +89,15 @@
"contributions": [
"tool"
]
+ },
+ {
+ "login": "machour",
+ "name": "Mehdi Achour",
+ "avatar_url": "https://avatars2.githubusercontent.com/u/304450?v=4",
+ "profile": "https://machour.idk.tn/",
+ "contributions": [
+ "code"
+ ]
}
]
}
diff --git a/README.md b/README.md
index 55f554b..f586092 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# all-contributors-cli
[![version](https://img.shields.io/npm/v/all-contributors-cli.svg)](http://npm.im/all-contributors-cli)
-[![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors)
+[![All Contributors](https://img.shields.io/badge/all_contributors-10-orange.svg?style=flat-square)](#contributors)
This is a tool to help automate adding contributor acknowledgements according to the [all-contributors](https://github.com/kentcdodds/all-contributors) specification.
@@ -96,7 +96,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
| [
Jeroen Engels](https://github.com/jfmengels)
[π»](https://github.com/jfmengels/all-contributors-cli/commits?author=jfmengels "Code") [π](https://github.com/jfmengels/all-contributors-cli/commits?author=jfmengels "Documentation") [β οΈ](https://github.com/jfmengels/all-contributors-cli/commits?author=jfmengels "Tests") | [
Kent C. Dodds](http://kentcdodds.com/)
[π](https://github.com/jfmengels/all-contributors-cli/commits?author=kentcdodds "Documentation") [π»](https://github.com/jfmengels/all-contributors-cli/commits?author=kentcdodds "Code") | [
JoΓ£o GuimarΓ£es](https://github.com/jccguimaraes)
[π»](https://github.com/jfmengels/all-contributors-cli/commits?author=jccguimaraes "Code") | [
Ben Briggs](http://beneb.info)
[π»](https://github.com/jfmengels/all-contributors-cli/commits?author=ben-eb "Code") | [
Itai Steinherz](https://github.com/itaisteinherz)
[π](https://github.com/jfmengels/all-contributors-cli/commits?author=itaisteinherz "Documentation") [π»](https://github.com/jfmengels/all-contributors-cli/commits?author=itaisteinherz "Code") | [
Alex Jover](https://github.com/alexjoverm)
[π»](https://github.com/jfmengels/all-contributors-cli/commits?author=alexjoverm "Code") [π](https://github.com/jfmengels/all-contributors-cli/commits?author=alexjoverm "Documentation") | [
Jerod Santo](https://jerodsanto.net)
[π»](https://github.com/jfmengels/all-contributors-cli/commits?author=jerodsanto "Code") |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
-| [
Kevin Jalbert](https://github.com/kevinjalbert)
[π»](https://github.com/jfmengels/all-contributors-cli/commits?author=kevinjalbert "Code") | [
tunnckoCore](https://i.am.charlike.online)
[π§](#tool-charlike "Tools") |
+| [
Kevin Jalbert](https://github.com/kevinjalbert)
[π»](https://github.com/jfmengels/all-contributors-cli/commits?author=kevinjalbert "Code") | [
tunnckoCore](https://i.am.charlike.online)
[π§](#tool-charlike "Tools") | [
Mehdi Achour](https://machour.idk.tn/)
[π»](https://github.com/jfmengels/all-contributors-cli/commits?author=machour "Code") |
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification.
diff --git a/lib/contributors/prompt.js b/lib/contributors/prompt.js
index 5b4910b..6da458c 100644
--- a/lib/contributors/prompt.js
+++ b/lib/contributors/prompt.js
@@ -29,7 +29,8 @@ function getQuestions(options, username, contributions) {
name: 'contributions',
message: 'What are the contribution types?',
when: !contributions,
- choices: contributionChoices(options)
+ choices: contributionChoices(options),
+ validate: input => input.length ? true : 'Use space to select at least one contribution type.'
}];
}