PageRenderTime 43ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/CONTRIBUTING.md

https://github.com/robertbrook/zeroclickinfo-spice
Markdown | 83 lines | 55 code | 28 blank | 0 comment | 0 complexity | 51ba55ecb1dd91e9b73fb0ac0652cea6 MD5 | raw file
  1. # Contributing to the **Spice** repository
  2. At DuckDuckGo, we truly appreciate our community members taking the time to
  3. contribute to our open-source repositories. In an effort to ensure
  4. contributions are easy for you to make and for us to manage, we have written
  5. some guidelines that we ask our contributors to follow so that we can handle
  6. pull requests in a timely manner with as little friction as possible.
  7. ### BETA
  8. The new version of DuckDuckGo has launched public beta!
  9. See the [what's new](https://github.com/duckduckgo/zeroclickinfo-spice/blob/bttf/BETA.md) for the current status and how you can contribute
  10. to converting the Spice Instant Answers to the new API !
  11. <hr>
  12. ## Getting Started
  13. Before you can do anything, you first need a [GitHub account](https://github.com/signup/free). This is required because we use GitHub to handle all incoming *Pull Requests* (code modifications) and *Issues* (bug reports) which cannot be made without a GitHub account.
  14. ## Submitting a **Bug** or **Suggestion**
  15. - Firstly, please make sure the bug is related to the **Spice** repository. If this bug is about the DuckDuckGo API, or the relevancy of our search results, please visit our feedback page at <https://duckduckgo.com/feedback>. If you're unsure, its best to use the feedback page (your message will be passed along to the correct people).
  16. - Check the **Spice** [issues](https://github.com/duckduckgo/zeroclickinfo-spice/issues) to see if an issue already exists for the given bug or suggestion
  17. - If one doesn't exist, create a GitHub issue in the **Spice** repository
  18. - Clearly describe the bug/improvemnt, including steps to reproduce when it is a bug
  19. - If one already exists, please add any additional comments you have regarding the matter
  20. If you're submitting a **pull request** (bugfix/addition):
  21. - Fork the **Spice** repository on GitHub
  22. ## Making Changes
  23. - Before making any changes, refer to the [DuckDuckHack Styleguide](https://dukgo.com/duckduckhack/styleguide_overview) to ensure your changes are made in the correct fashion
  24. - Make sure your commits are of a reasonable size. They shouldn't be too big (or too small)
  25. - Make sure your commit messages effectively explain what changes have been made, and please identify which instant answer or file has been modified:
  26. ```shell
  27. CONTRIBUTING.md - Added the example commit message because it was missing
  28. ```
  29. is much better than:
  30. ```shell
  31. <bad_commit_example>
  32. ```
  33. - Make sure you have added the necessary tests for your changes
  34. - Run `dzil test` (executes all tests in t/) to ensure nothing else was accidentally broken
  35. - If your change affects an instant answer, remember to add yourself to the Metadata attribution list in the appropriate `.pm` file
  36. ## Submitting Changes
  37. 1. Commit your changes.
  38. ```shell
  39. git commit -a -m "My first instant answer that does X is ready to go!"
  40. ```
  41. 2. Get your commit history [how you like it](http://book.git-scm.com/4_interactive_rebasing.html).
  42. ```shell
  43. git rebase -i origin/master
  44. ```
  45. or
  46. ```shell
  47. git pull --rebase origin/master
  48. ```
  49. 3. Push your forked repository back to GitHub.
  50. ```shell
  51. git push
  52. ```
  53. 4. Add your info to the instant answer so we can give you credit for it on the [Goodies page](https://duckduckgo.com/goodies). You'll see your name or handle on the live site!
  54. Check out the [Metadata documentation](https://dukgo.com/duckduckhack/metadata) for detailed instructions on how to include your name and links.
  55. 5. Go into GitHub and submit a [pull request!](http://help.github.com/send-pull-requests/) to the **Spice** repository, making sure to use the **Spice** repository's **[Pull Request Template](https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/pull_request_template_spice.md)**. This will let us know about your changes and start the conversation about integrating it into the live code.