Commit graph

66 commits

Author SHA1 Message Date
Piotr Stępniewski
b77f86bf7f
feat(repo): github profile url should be valid (#268)
* feat(repo): github profile url should be valid

* docs: add k3nsei as a contributor
2020-06-07 21:38:12 +01:00
Maximilian Berkmann
bcc0d99fd0
feat(contribution-types): add missing contribution types (#261) 2020-05-24 10:46:50 -07:00
allcontributors[bot]
d26cd47c81
docs: add MarceloAlves as a contributor (#222)
* docs: update README.md

* docs: update .all-contributorsrc

* docs(readme): re-generated the table

* docs(readme): table fix

* fix(generate): experimental fix

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Berkmann18 <maxieberkmann@gmail.com>
2020-05-24 01:43:59 +01:00
Andrew Lisowski
db5d731d96
fix(repo): pass optionalPrivateToken to recursive calls (#258) 2020-04-17 18:20:41 +01:00
Alex Chan
b3d0995a65
feat(alpha-sort): Add a parameter contributorsSortAlphabetically (#249)
This parameter allows the user to sort the list of contributors in
alphabetical order of their name.
2020-02-23 17:32:21 +00:00
Andrew Lisowski
0965095ecd feat: support Github Enterprise (#97)
* 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>
2020-01-17 20:09:58 +00:00
Stefano Moia
0993a90a57 feat(contribution-types): added "Data" contribution (#231)
* feat(contribution-types): added "Data" contribution

* Updated node and yarn versions to pass CI

Co-authored-by: Maximilian Berkmann <maxieberkmann@gmail.com>
2020-01-03 22:22:24 +00:00
Jake Bolam
dbb05a4dd8
fix: fix badge replacement (#232) 2019-12-08 20:05:05 -05:00
Anand Chowdhary
3382821641 fix: a11y issue by removing unnecessary alternate text (#217) (#218)
* fix(a11y): Remove unnecessary alternate text

* fix: Remove alternate text from test images
2019-11-28 08:13:30 -05:00
James George
7d83c7cac1 chore: make use of inhouse command recommendation (#228) 2019-11-27 19:49:17 +00:00
Nicolas Goutay
f38e0c8e87 feat: add a11y contribution type (#223)
* feat: add a11y contribution type

* Fix missing comma in `contribution-types.js`
2019-11-13 10:38:04 +00:00
Marcelo Alves
deee5d0a01 feat: add review links (#213)
* feat: 🎸 add review links

* docs: add marceloalves to contributors
2019-11-06 01:52:44 +00:00
kharaone
72de75abc5 fix: using a custom badge template breaks badge replacement (#210) 2019-10-20 00:45:00 +01:00
Fabrizio
97878f496f fix: add contributions (#211)
* Fix issue #209

* Fix validation issue

* Add myself to contributors list
2019-10-18 23:59:50 +01:00
simon3000
a91145f0f3 fix: username might be a number (#203) 2019-09-16 17:33:28 +01:00
SnO₂WMaN
06bbb6ed78 feat: Add gitmoji option to commitConventions (#205) 2019-09-04 16:48:01 +01:00
simon3000
b87fd03489 fix(repo): test lint (#204)
Fixes src/repo/__test__/github.js
2019-09-02 17:15:43 +01:00
Rachel M. Carmena
fdea80649d fix: badge link change
Fix #195
2019-07-19 14:12:10 +01:00
Jeppe Reinhold
42bc241ba1 feat: Make markdownlint ignore generated contributors table (#194)
* add markdownlint-disable and scope prettier-ignore

* re-generate contributors

* set commitConvention to angular, sort .all-contributorsrc
2019-07-16 14:15:52 +01:00
Nick Schonning
68166eca69 feat: Pretty-print the generagted HTML table (#190)
Closes #189
Keeps the Table left aligned, and moves the tr and td in by 2 spaces each
2019-06-11 16:17:51 +01:00
Jake Bolam
354b5111d4 feat: init with all-contributors emoji (#136)
* feat: init with all-contributors emoji 

* test(init): updated test snapshot
2019-05-21 10:35:32 +01:00
Maximilian Berkmann
ebff1e8b88
feat: added a JSON handler/fixer (#165)
* 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`
2019-05-20 09:47:51 +01:00
Maximilian Berkmann
febecff496
feat(init): creates the contributor file if not found (#158)
* 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
2019-05-07 16:48:58 +01:00
James George
9aa79485c2 feat:suggest matching commands if the user mistypes 🚧 (#181) 2019-05-07 11:42:18 -04:00
ehmicky
e639593c5d fix: default commitConvention to 'none' (#179) 2019-04-18 13:50:14 +01:00
Maximilian Berkmann
2376ada660
feat: commit conventions awareness (#159)
* feat: commit convention awareness [wip]

fix https://github.com/all-contributors/all-contributors-bot/issues/132

* refactor(commit-conventions): added a tranformer for `angular` and refactored `none`

* feat(git): added lowercase transformation

With some refactoring
2019-04-15 15:05:00 +01:00
Maximilian Berkmann
925cde7992
feat(contribution-types): added Project Management (#176)
PR following up https://github.com/all-contributors/all-contributors/pull/199
2019-03-18 15:00:36 +00:00
Deepak
3e046b740c fix: add common error handling for missing or wrong username (#171) 2019-03-17 14:30:07 +00:00
Jake Bolam
e0240def24
fix: add additional new line for prettier (#168)
* fix: add additional new line for prettier

* update snpashot

* readme

* at end not start
2019-02-21 21:40:17 -05:00
Jake Bolam
fdd6b74547
fix: npm squish and cell centering (#164)
* fix: npm squish and cell centering

* readme

* wip

* wip

* tests
2019-02-08 08:38:05 -10:00
Jake Bolam
e4b22f8cd7
feat: use allcontributors.org (#160)
* use allcontributors.org

* update snap
2019-02-07 16:39:10 -10:00
Maximilian Berkmann
b0c3376ac4 BREAKING CHANGE: changed generator to an HTML based one (#157)
*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
2019-02-06 08:37:09 -10:00
Maximilian Berkmann
48fecd3ca7
feat(contribution-types): added business and content (#156)
I added the missing types for "Business development" and "Content".
2019-01-28 10:23:37 +00:00
Jake Bolam
21b694aee4
fix: add in contributorsPerLine on init (#149) 2019-01-18 13:47:56 -05:00
Jeff Wen
9bfdd723a1
fix: require path error (#148) 2019-01-17 14:28:13 +08:00
Maximilian Berkmann
292d4004ee
feat(contribution-type): added maintenance type (#142)
* 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
2019-01-16 11:14:59 +00:00
Jake Bolam
7687e7d2f0
fix: use correct path for initBadge/initList node apis (#145)
* feat: add init content api for node

* feat: add init content api for node

* fix: use correct path for initBadge/initList node apis
2019-01-15 23:51:11 +08:00
Jake Bolam
f551d8b87e
feat: add init content api for node api (#144)
* feat: add init content api for node

* feat: add init content api for node
2019-01-15 22:52:32 +08:00
Maximilian Berkmann
87ce8bb8a7 feat(format-contributor): added alt attributes (#138)
* 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.
2019-01-15 00:23:02 +08:00
Jake Bolam
8aa15c9ed8
feat: add node api for AllContributors GitHub bot (#135) 2019-01-09 22:37:49 +08:00
Jake Bolam
85a9e3a26b
fix: switch over to new org all-contributors (#132) 2019-01-07 15:55:57 +08:00
Jake Bolam
5a9c8b7557
docs: switch to all contributors org (#131)
* docs: switch org

* wip
2019-01-07 14:42:13 +08:00
Jake Bolam
071e0f4484
docs: switch org (#130) 2019-01-07 14:38:29 +08:00
Jake Bolam
89bac0f144 feat: add new types (#127)
<!--
Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated!

Please make sure that you are familiar with and follow the Code of Conduct for
this project (found in the CODE_OF_CONDUCT.md file).

Also, please make sure you're familiar with and follow the instructions in the
contributing guidelines (found in the CONTRIBUTING.md file).

If you're new to contributing to open source projects, you might find this free
video course helpful: http://kcd.im/pull-request

Please fill out the information below to expedite the review and (hopefully)
merge of your pull request!
-->

<!-- What changes are being made? (What feature/bug is being fixed here?) -->
**What**:
Add Security contribution type, as mentioned in https://github.com/kentcdodds/all-contributors/issues/106 and implemented in https://github.com/kentcdodds/all-contributors/pull/107

Also added user-testing as introduced as part of https://github.com/kentcdodds/all-contributors/pull/97/files

<!-- Why are these changes necessary? -->
**Why**:
All contributors!

<!-- How were these changes implemented? -->
**How**:
Me

<!-- Have you done all of these things?  -->
**Checklist**:
<!-- add "N/A" to the end of each line that's irrelevant to your changes -->
<!-- to check an item, place an "x" in the box like so: "- [x] Documentation" -->
- [x] Documentation
- [ ] Tests - N/A
- [x] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
- [x] Added myself to contributors table <!-- this is optional, see the contributing guidelines for instructions -->

<!-- feel free to add additional comments -->
2019-01-01 21:48:31 -07:00
Jake Bolam
194d00014c feat: way to avoid github API limit (add tests + docs) (#123)
* feat: way to avoid github API limit

* Update github.js

* prettier

* housekeeping

* all contributors

* readme

* add to contributors

* Update README.md
2018-12-28 08:35:53 -07:00
Jake Bolam
d10370c7b0 infra: better error handling of invalid config file (#124)
<!--
Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated!

Please make sure that you are familiar with and follow the Code of Conduct for
this project (found in the CODE_OF_CONDUCT.md file).

Also, please make sure you're familiar with and follow the instructions in the
contributing guidelines (found in the CONTRIBUTING.md file).

If you're new to contributing to open source projects, you might find this free
video course helpful: http://kcd.im/pull-request

Please fill out the information below to expedite the review and (hopefully)
merge of your pull request!
-->

<!-- What changes are being made? (What feature/bug is being fixed here?) -->
**What**:
When a config file is loaded, but the contents cannot be parsed to JSON an error will be thrown. Instead of failing silent: e.g.:
<img width="735" alt="screen shot 2018-12-23 at 5 04 17 pm" src="https://user-images.githubusercontent.com/3534236/50382208-026cdb80-06d5-11e9-8f4d-8d97a9a3cbe1.png">


<!-- Why are these changes necessary? -->
**Why**:
Previously some commands would crash randomly. e.g. `add` with `Cannot read property 'then' of null`.
While other commands e.g. `generate` would succeed but would blow away all your contributors (because it didn't find any)

<!-- How were these changes implemented? -->
**How**:
By Me

<!-- Have you done all of these things?  -->
**Checklist**:
<!-- add "N/A" to the end of each line that's irrelevant to your changes -->
<!-- to check an item, place an "x" in the box like so: "- [x] Documentation" -->
- [ ] Documentation N/A
- [ ] Tests  N/A
- [x] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
- [ ] Added myself to contributors table <!-- this is optional, see the contributing guidelines for instructions -->

<!-- feel free to add additional comments -->
2018-12-26 16:19:46 -07:00
Jake Bolam
e18363f081 feat: way to avoid github API limit (#122)
<!--
Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated!

Please make sure that you are familiar with and follow the Code of Conduct for
this project (found in the CODE_OF_CONDUCT.md file).

Also, please make sure you're familiar with and follow the instructions in the
contributing guidelines (found in the CONTRIBUTING.md file).

If you're new to contributing to open source projects, you might find this free
video course helpful: http://kcd.im/pull-request

Please fill out the information below to expedite the review and (hopefully)
merge of your pull request!
-->

<!-- What changes are being made? (What feature/bug is being fixed here?) -->
**What**:
Add a way to avoid GITHUB API LIMIT by supplying an optional GITHUB_AUTH token to increase github rate limiting from 50 requests to 5000 (and limited by user, not IP)

<!-- Why are these changes necessary? -->
**Why**:
To address: #121 

<!-- How were these changes implemented? -->
**How**:
By Me

<!-- Have you done all of these things?  -->
**Checklist**:
<!-- add "N/A" to the end of each line that's irrelevant to your changes -->
<!-- to check an item, place an "x" in the box like so: "- [x] Documentation" -->
- [ ] Documentation
- [ ] Tests
- [ ] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
- [ ] Added myself to contributors table <!-- this is optional, see the contributing guidelines for instructions -->

<!-- feel free to add additional comments -->
2018-12-22 20:24:29 -07:00
Xianming Zhong
1f2686baa6 fix: better output format for git command (#113)
<!--
Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated!

Please make sure that you are familiar with and follow the Code of Conduct for
this project (found in the CODE_OF_CONDUCT.md file).

Also, please make sure you're familiar with and follow the instructions in the
contributing guidelines (found in the CONTRIBUTING.md file).

If you're new to contributing to open source projects, you might find this free
video course helpful: http://kcd.im/pull-request

Please fill out the information below to expedite the review and (hopefully)
merge of your pull request!
-->

<!-- What changes are being made? (What feature/bug is being fixed here?) -->
**What**:

Without the space, it looks like a little strange.

<!-- Why are these changes necessary? -->
**Why**:

<!-- How were these changes implemented? -->
**How**:

<!-- Have you done all of these things?  -->
**Checklist**:
<!-- add "N/A" to the end of each line that's irrelevant to your changes -->
<!-- to check an item, place an "x" in the box like so: "- [x] Documentation" -->
- [ ] Documentation
- [ ] Tests
- [x] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
- [ ] Added myself to contributors table <!-- this is optional, see the contributing guidelines for instructions -->

<!-- feel free to add additional comments -->
2018-10-18 09:58:29 -06:00
C.Y.Xu
0d1346d04e feat: support Gitlab self hosted instance (#95)
* feat: support Gitlab self hosted instance (#89)

* docs: fix some doc typo

fixes: #89
2018-08-02 16:51:04 -05:00
Spënzor
d2ce3bea26 feat: add clarity to CLI prompt for where repository is hosted (#103)
Users, including myself, have put the wrong link in answer to "Where is the repository hosted?"
2018-07-16 15:37:01 -07:00