fix: set default value as `7` for `contributorsPerLine`
Co-authored-by: Maximilian Berkmann <maxieberkmann@gmail.com>
Co-authored-by: Angel Aviel Domaoan <13580338+tenshiAMD@users.noreply.github.com>
* feat: add namespaced token
This commit adds the possibility to specify the private token via the
ALL_CONTRIBUTORS_PRIVATE_TOKEN environment variable. If the environment
variable is not set it will fall back to the previous behavior and check
for PRIVATE_TOKEN instead.
Closes#294
* style: remove irregular whitespace
* refactor: remove unneeded parenthesis
* feat(contribution-types.js): add research contribution type
Add a research contribution type with microscope emoji, for people doing literature review, code
prototyping or any other research-related activity.
#446
* fix(contribution-types.js): fix name and position of added type
Fix name of added type (was "question" due to copy pasting) and position (alphabetical order)
#446
* Transform emoji code into emoji
Co-authored-by: Maximilian Berkmann <maxieberkmann@gmail.com>
Co-authored-by: Maximilian Berkmann <maxieberkmann@gmail.com>
* feat: display a meaningful error when the config file is missing
## What
When you try to add a user with `.all-contributorsrc` missing, you will get a cryptic error message (see also all-contributors/all-contributors#378):
```
$ all-contributors add darekkay maintenance
Cannot read property 'then' of null
```
This PR displays a meaningful error message in this case.
## Why
So users know what's causing the problem.
## How
Before a contribution is being added, the script checks whether the config file exists. If it doesn't, an error message is being displayed:
```
$ all-contributors add darekkay maintenance
Configuration file not found: C:\projects\test\.all-contributorsrc
```
* docs: add darekkay as a contributor
* refactor: fixed typos
* docs(readme): table rectification
Co-authored-by: Maximilian Berkmann <maxieberkmann@gmail.com>
* feat: migrate from request to node-fetch
* docs(readme): add favna for all contributors
* fix: forgot to refactor this one
* style(gitlab): fixed formatting issues
Co-authored-by: Berkmann18 <maxieberkmann@gmail.com>
* add isEnterprise config option and add function to change hostname if on enterprise
* add hipstersmoothie as contributor
* infer enterprise API
* handle enterprise authentication
* add tylerkrupicka as a contributor
Co-authored-by: Tyler Krupicka <tylerkrupicka@gmail.com>
Co-authored-by: Maximilian Berkmann <maxieberkmann@gmail.com>
* feat(contribution-types): added "Data" contribution
* Updated node and yarn versions to pass CI
Co-authored-by: Maximilian Berkmann <maxieberkmann@gmail.com>
* feat: added a JSON handler/fixer [wip]
Added a module that will check JSON files and give a good level of details for errors while
attempting to fix it
re https://github.com/all-contributors/all-contributors-bot/issues/102
* refactor: consolidated the fix handler
Made the fixer a bit more concise and added the fields to allow for an auto-update of the config
file (if it was changed)
* chore(package): use another `jsonlint`
* refactor(config-file): use `json-fixer`
* chore(package): bump `json-fixer` to 1.3
* chore(package): bumped `json-fixer`
* feat(init): creates the contributor file if not found
If not found, the specified contributor file (defaulting to `README.md`) will be created prior to
injections in it.
re https://github.com/all-contributors/all-contributors-bot/issues/105
* refactor(init): renamed a module and its export
Renamed `check-file` to `file-exist` and its exported function to `ensureFileExists`
* test(init): added contributors file test
Added two test cases for the contributors file existence check