2016-04-03 11:59:20 +00:00
# Contributing to Homebrew
2017-10-10 08:24:25 +00:00
First time contributing to Homebrew? Read our [Code of Conduct ](https://github.com/Homebrew/brew/blob/master/CODE_OF_CONDUCT.md#code-of-conduct ).
2016-04-03 11:59:20 +00:00
### Report a bug
* run `brew update` (twice)
* run and read `brew doctor`
2018-02-23 14:48:48 +00:00
* read [the Troubleshooting Checklist ](https://docs.brew.sh/Troubleshooting )
2016-04-03 11:59:20 +00:00
* open an issue on the formula's repository
2017-01-02 19:17:28 +00:00
### Submit a version upgrade for the `foo` formula
2016-04-03 11:59:20 +00:00
* check if the same upgrade has been already submitted by [searching the open pull requests for `foo` ](https://github.com/Homebrew/homebrew-core/pulls?utf8=✓&q=is%3Apr+is%3Aopen+foo ).
2017-01-02 19:17:28 +00:00
* `brew bump-formula-pr --strict foo` with `--url=...` and `--sha256=...` or `--tag=...` and `--revision=...` arguments.
2016-04-03 11:59:20 +00:00
### Add a new formula for `foo` version `2.3.4` from `$URL`
2018-02-23 14:48:48 +00:00
* read [the Formula Cookbook ](https://docs.brew.sh/Formula-Cookbook ) or: `brew create $URL` and make edits
2016-10-30 17:28:45 +00:00
* `brew install --build-from-source foo`
2016-08-14 13:17:43 +00:00
* `brew audit --new-formula foo`
2016-04-03 11:59:20 +00:00
* `git commit` with message formatted `foo 2.3.4 (new formula)`
2018-02-23 14:48:48 +00:00
* [open a pull request ](https://docs.brew.sh/How-To-Open-a-Homebrew-Pull-Request ) and fix any failing tests
2016-04-03 11:59:20 +00:00
### Contribute a fix to the `foo` formula
* `brew edit foo` and make edits
2016-04-03 12:48:24 +00:00
* leave the [`bottle` ](http://www.rubydoc.info/github/Homebrew/brew/master/Formula#bottle-class_method ) as-is
2016-10-15 11:23:47 +00:00
* `brew uninstall --force foo` , `brew install --build-from-source foo` , `brew test foo` , and `brew audit --strict foo`
2016-04-03 11:59:20 +00:00
* `git commit` with message formatted `foo: fix <insert details>`
2018-02-23 14:48:48 +00:00
* [open a pull request ](https://docs.brew.sh/How-To-Open-a-Homebrew-Pull-Request ) and fix any failing tests
2016-04-03 11:59:20 +00:00
Thanks!