PageRenderTime 40ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/CONTRIBUTING.md

https://gitlab.com/jslee1/zeroclickinfo-goodies
Markdown | 42 lines | 21 code | 21 blank | 0 comment | 0 complexity | cfb6b34ecc4b86d746aef4d7e5abd2d2 MD5 | raw file
  1. # Contributing an Instant Answer to DuckDuckGo.com
  2. > You can find the full [DuckDuckHack documentation here](http://docs.duckduckhack.com)
  3. Have an idea [that no one has done yet](https://duck.co/ia)? Improving an [existing Instant Answer](https://duck.co/ia/dev/issues)?
  4. 1. **Before coding, [create an Instant Answer Page](https://duck.co/ia/new_ia) for your idea.** If you're fixing an existing Instant Answer, [locate its existing page](https://duck.co/ia).
  5. > Instant Answer Pages are the "home base" for each Instant Answer. They are where the community plans, collaborates, and tracks the [life cycle](http://docs.duckduckhack.com/submitting/long-term.html) of all Instant Answers. It's where we aggregate pull requests, issues, attribution, and feedback.
  6. 2. **Hack away, keeping the [Instant Answer Production Guidelines](http://docs.duckduckhack.com/submitting/checklist.html) in mind.**
  7. 3. **[Submit a pull request](http://docs.duckduckhack.com/submitting/pull-request.html).**
  8. > Make sure to paste your Instant Answer page URL in the description. This will automatically link the two.
  9. We're excited to meet you and support you along the way - and it's never too early to say hello. Join us on [Slack](mailto:QuackSlack@duckduckgo.com?subject=AddMe) or [email](mailto:open@duckduckgo.com).
  10. *The opportunities to contribute don't stop here. Learn about [keeping your IA awesome](http://docs.duckduckhack.com/submitting/long-term.html).*
  11. ## Pull Request Format
  12. When submitting a pull request, the following guidelines help speed up the review process:
  13. If your IA is new, use the format: `"New {IA TOPIC} {IA TYPE}"`. For example:
  14. - "New Instagram Spice"
  15. - "New Firefox Cheat Sheet"
  16. If you're submitting a fix, use the title format: `"{IA NAME}: Brief explanation`. For example:
  17. - "PeopleInSpace: Use smaller local image, fallback to API when needed."
  18. Include the issue number in the description (conveniently, this will automatically resolve the issue upon merging). Describe your motivation, thought process, and solution in the description. For example:
  19. - "**Fixes #2038.** The images used by the API are very large and don't change often. I've but a smaller version of each image (and a 2x version for retina screens) in the share directory. The callback will try and load a local image based on the astronauts name and fallback to using the API's image if one does not exist."
  20. **Finally, don't forget to paste the relevant [Instant Answer Page URL](https://duck.co/ia/new_ia) in the description field**, while creating new pull requests. This will automatically link the two.
  21. > **IMPORTANT:** Don't worry if you get an initial error regarding failing Travis tests. The reason is that your IA page hasn't yet been moved out of the "Planning" status - which only community leaders/staff can do. As long as the ID in your IA page matches the ID in your code, and you've pasted the URL to your IA page, you can ignore this initial error.