UNPKG

1.93 kBMarkdownView Raw
1# Contributing
2
3Thanks for being willing to contribute!
4
5**Working on your first Pull Request?** You can learn how from this _free_
6series [How to Contribute to an Open Source Project on GitHub][egghead]
7
8## Project setup
9
101. Fork and clone the repo
112. `npm run setup` to setup and validate your clone of the project
123. Create a branch for your PR
13
14> Tip: Keep your `master` branch pointing at the original repository and make
15> pull requests from branches on your fork. To do this, run:
16>
17> ```
18> git remote add upstream https://github.com/huchenme/github-trending-api.git
19> git fetch upstream
20> git branch --set-upstream-to=upstream/master master
21> ```
22>
23> This will add the original repository as a "remote" called "upstream," Then
24> fetch the git information from that remote, then set your local `master`
25> branch to use the upstream master branch whenever you run `git pull`. Then you
26> can make all of your pull request branches based on this `master` branch.
27> Whenever you want to update your version of `master`, do a regular `git pull`.
28
29## Add yourself as a contributor
30
31This project follows the [all contributors][all-contributors] specification. To
32add yourself to the table of contributors on the `README.md`, please use the
33automated script as part of your PR:
34
35```console
36npm run contributors:add
37```
38
39Follow the prompt and commit `.all-contributorsrc` and `README.md` in the PR. If
40you've already added yourself to the list and are making a new type of
41contribution, you can run it again and select the added contribution type.
42
43## Help needed
44
45Please checkout the [the open issues][issues]
46
47Also, please watch the repo and respond to questions/bug reports/feature
48requests! Thanks!
49
50[egghead]: https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github
51[all-contributors]: https://github.com/kentcdodds/all-contributors
52[issues]: https://github.com/huchenme/github-trending-api/issues