* 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
*BREAKING CHANGE*
* style(generate): changed generator to an HTML based one [WIP]
I added and set the HTML generator for resolving #154 (which works when testing manually but doesn't
when running the cli in dev mode).
fix#154
* refactor(generate): (re)moved files to keep it DRY
* refactor: refactored/updated tests
Update the contributors test (which wasn't already committed somehow) and tweaked the
`format-contribution-type` test.
* docs(readme): removed doctoc
BREAKING CHANGE: (in 2babe26b08) The resulting contributors table is in HTML/CSS instead of being in Markdown.
* refactor(generate): removed the style from the generation
Removed the `<style>` block from the generated HTML code as it's redundant on Github (since it's one
of the non-whitelisted tags). The `README.md` was also updated reflecting the breaking changes.
* refactor(generate): image height and tweaks
Added `height` to images for avatars, quoted some `<table>` attributes and updated `README.md`
* docs: drop TOC
* feat(contribution-type): added maintenance type
fixes#111
* docs(categories): added maintenance category
* refactor: changed the maintenance symbol
* refactor: alphabetical listing fix
I moved the `maintenance` blocks/lines to the correct locations
* feat(format-contributor): added `alt` attributes
I added `alt` attributes to `img` tags which specifies the name of the
contributor in them (for accessibility purposes).
* docs: added @Berkmann18
I added myself (I forgot to do that) for code (cf. my previous commit),
test and doc.