Commit graph

299 commits

Author SHA1 Message Date
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
a98285f313
docs: remove unmaintained status 2019-01-06 10:04:35 +08:00
Kent C. Dodds
2a414e24e1
docs: add unmaintained status 2019-01-04 09:08:50 -07:00
Jake Bolam
af9b1e473f docs: use correct userTesting key (#128) 2019-01-01 21:56:45 -07: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
2ade2d7fd1 ci: fix build runner, ensure jest exits when finished (#125)
* ci: fix build runner, ensure jest exits when async handles open

* contributors add infra
2018-12-28 23:57:08 -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
Jason Chen
7a0ece7ee6 docs: remove unnecessary space to avoid generation failures (#116)
<!--
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**: remove unnecessary space

<!-- Why are these changes necessary? -->
**Why**:  generate command will not generate files because of extra space

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

<!-- 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
- [x] 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-11-06 14:44:53 -07:00
Kirstie Whitaker
00d1e08ec5 docs: add note about using npx cli command (#114)
<!--
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 couple of sentences about running the from the command line with `npx` - they're almost verbetim the "heads up" that @kentcdodds suggested in https://github.com/jfmengels/all-contributors-cli/issues/92#issuecomment-391766876..

<!-- Why are these changes necessary? -->
**Why**: I was having difficulty understanding how to run the commands and I found this text in issue #92 super helpful - I figured it would be for others too 😄 

<!-- How were these changes implemented? -->
**How**: Updated text in README

<!-- 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 -- NA
- [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 -- ironically I'm not sure how to do this 🤣 <!-- this is optional, see the contributing guidelines for instructions -->

<!-- feel free to add additional comments -->
2018-10-18 09:59:10 -06: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
Dura
533813b3db docs: Format config docs with examples and defaults to be understood more easily (#107)
User like myself don't understand how to provide custom templates to certain config options.
2018-08-02 16:43:21 -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
Xianming Zhong
62f671dcd0 fix: output error messages if git commands failed (#102) 2018-06-24 19:55:51 -06:00
Xianming Zhong
2a98af341c doc: add comments for placeholders (#101)
* doc: add comments for placeholders

* chore: update contributors with me

* fix: hack to prevent breaking current placeholders
2018-06-22 09:15:26 -06:00
Tyler Reitz
54febd3c45 fix: d4dc4e2-introduced error (#100)
* adds helpful error message when files is overridden or empty

* fix: d4dc4e2-introduced error

The prior commit to this branch d4dc4e2 introduced an error
in the util/config.js file where it checks for the length of
the content.files property, whether that property exists in
the config or not.
2018-06-19 21:21:12 -06:00
Tyler Reitz
3f2ae00cbc feat: adds helpful error message when files is overridden or empty (#96) 2018-06-19 14:10:23 -06:00
Tyler Reitz
2c9f47629b feat: adds ability to remove contribution types when editing existing user (#94)
* adds ability to remove contribution types when editing existing user

* removes .swp file

* refactor: concat types in all cases except when removing
2018-06-19 14:09:05 -06:00
Andrew Lisowski
4f7bbdf56f chore: run prettier on everything #98 (#99)
* run prettier on everything

* add hipstersmoothie as contributor
2018-06-08 17:35:29 -06:00
Md Zubair Ahmed
526d4dbba2 fix: Wrong contribution type being added to .all-contributorsrc (#78)
* initial issue fix

* tests added

* revert unneisary lint change to untouched file

* added myself

* no contribution types when adding a contributor error handled

* revert commit 1bdb51eadf

* reverted readme back to commit# f697c73c48

* further reverted Readme to master

* removed generated index from rm

* removed generated index from rm

* breaking change to cli fixed:

* Update prompt.js

* Update prompt.js

* added code and test in my contribution

* list of invalid contributions added in error message

Closes #71
2018-06-08 13:11:29 -06:00
Md Zubair Ahmed
c4a0484759 fix: error out when projectOwner & projectName is not set in .all-contributorsrc file. (#80)
* error message when no project name and project owner is added in the init command

* moved error message away from init prompt

* 1. placed json parse in try catch
2. added check for owner and name in getcontributionsfromgithub before constructing url

* added check before config file is written

* changes as per https://github.com/jfmengels/all-contributors-cli/pull/80#pullrequestreview-85678121

* uncommented code

* tests added

* Added myself to contributors table

* test inside utils were moved to github in master branch

* changes to validation check, instead of checking for empty string to null obj value

* typo fixed

* unnecisary check.js file removed
2018-05-29 14:26:25 -06:00
Kent C. Dodds
1562a379db
fix(links): add default for links 2018-03-12 10:18:20 -06:00
João Marques
152a1fe30a feat: add support for GitLab repositories (#84) 2018-02-23 15:13:41 +01:00
David Menendez
ab41caa0c7 fix: surface the message when the check api returns an error (#85) 2018-02-23 08:46:07 +01:00
Divjot Singh
687194c5f9 docs: add bogas04 as contributor (#82) 2018-02-12 11:48:44 +01:00
Divjot Singh
991f2c7b85 docs: Update docs to include npx (#81) 2018-02-09 09:11:28 -07:00
Mehdi Achour
32456d2060 doc: display only 6 contributors by line to avoid wrapping 2017-12-25 13:41:22 +01:00
Md Zubair Ahmed
dd4d3f8c2c doc: fix broken TOC and expand examples (#79) 2017-12-25 13:34:13 +01:00
Mehdi Achour
99871508e8 build: disable complexity lint check 2017-12-25 13:27:15 +01:00
Chris Vickery
5f9fa20346 fix: support contributors without github accounts (#77) 2017-12-13 09:34:06 -07:00
Kevin VanGelder
6fa55d5bd5 feat(types): add platform type (#75) 2017-11-25 07:03:18 -07:00
Kent C. Dodds
383b3fd015 fix: cli 2017-11-22 11:48:15 -07:00
Kent C. Dodds
ba248a99d8
feat: add prettier-ignore to output (#74) 2017-11-22 11:24:01 -07:00
Kent C. Dodds
482a8ab956
chore: upgrade and migrate tooling stuff (#73)
* codemod

* move files

* install kcd-scripts and set up some stuff

* make everything work

* update md files

* change a few things
2017-11-22 11:09:06 -07:00
Mehdi Achour
3d998c4c7c doc: credit @GantMan for his contributions 2017-11-10 09:58:54 +01:00
Gant Laborde
a79f9d4ea6 fix: make find/add case insensitive (#64)
Closes #62
2017-11-10 09:55:26 +01:00
Gant Laborde
9f72f9aabc feat: add version option (#66)
Closes #65
2017-11-09 16:33:29 +01:00
Gant Laborde
9f875e9aa8 doc: change suggested scripts names (#63)
* Change script name and add yarn

The script name suggested (`add`) will conflict with users of yarn.

So I modified the suggested name to `append` which is what it does.  And now it can have a yarn example as well.

* remove yarn example

* namespace add
2017-11-08 15:09:22 -07:00
Mehdi Achour
82d1eb7c51 chore: Credit @brycereynolds, @jmeas, @spirosikmd, @fadc80, @snipe 2017-11-08 19:13:25 +01:00
Mehdi Achour
88c7a29681 feat: Add check command that compares GitHub contributors with credited ones (#58)
* feat: Add checking functionnality that compares contributors with GH data

* fix(check): Use the info from config file, paginate GH data

* doc(check): Document the new check command

* fix(eslint): Add missing semicolon

* tests: Add tests for utils.check

* fix: Check for code and test only

* refactor: use includes and correct awaits

* refactor: more includes and template literals
2017-11-08 10:09:20 -07:00
Mehdi Achour
b443c82b07 chore: add @chrisinajar as contributor 2017-11-07 20:02:07 +01:00
Mehdi Achour
5b6358425f
feat: Reselect existing contributions when updating a user 2017-11-07 19:07:29 +01:00
Chris Vickery
cf3ca62b9d Formatting 2017-11-07 09:09:00 -08:00
Chris Vickery
48b0ed4b8e Fix error with add from cli, remove unneeded param 2017-11-07 09:06:54 -08:00
Chris Vickery
f9cdace376 Populate contribution choices with current values 2017-11-06 15:39:41 -08:00
Roy Revelt
11833b0405 chore: add @revelt as contributor (#59) 2017-11-03 12:57:56 -06:00