homebrew-core/CONTRIBUTING.md

39 lines
2.5 KiB
Markdown
Raw Normal View History

2016-04-03 11:59:20 +00:00
# Contributing to Homebrew
First time contributing to Homebrew? Read our [Code of Conduct](https://github.com/Homebrew/brew/blob/master/CODEOFCONDUCT.md#code-of-conduct).
2016-04-03 11:59:20 +00:00
### Report a bug
* run `brew update` (twice)
* run and read `brew doctor`
2016-09-20 11:31:51 +00:00
* read [the Troubleshooting Checklist](https://github.com/Homebrew/brew/blob/master/docs/Troubleshooting.md#troubleshooting)
2016-04-03 11:59:20 +00:00
* open an issue on the formula's repository
### Submit a `1.2.3` version upgrade for the `foo` formula
* 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).
* `brew edit foo`
* edit [`url`](http://www.rubydoc.info/github/Homebrew/brew/master/Formula#url-class_method) and [`sha256`](http://www.rubydoc.info/github/Homebrew/brew/master/Formula#sha256%3D-class_method)/[`tag`](http://www.rubydoc.info/github/Homebrew/brew/master/Formula#url-class_method), leave the [`bottle`](http://www.rubydoc.info/github/Homebrew/brew/master/Formula#bottle-class_method) as-is
2016-04-03 11:59:20 +00:00
* `brew install foo`
* run `brew audit --strict foo` and fix any issues
2016-04-03 11:59:20 +00:00
* `git commit` with commit subject `foo 1.2.3`
2016-09-20 11:31:51 +00:00
* [open a pull request](https://github.com/Homebrew/brew/blob/master/docs/How-To-Open-a-Homebrew-Pull-Request-(and-get-it-merged).md#how-to-open-a-homebrew-pull-request-and-get-it-merged) and fix any failing tests
2016-04-03 11:59:20 +00:00
### Add a new formula for `foo` version `2.3.4` from `$URL`
2016-09-20 11:31:51 +00:00
* read [the Formula Cookbook](https://github.com/Homebrew/brew/blob/master/docs/Formula-Cookbook.md#formula-cookbook) or: `brew create $URL` and make edits
2016-04-03 11:59:20 +00:00
* `brew install foo`
* `brew audit --new-formula foo`
2016-04-03 11:59:20 +00:00
* `git commit` with message formatted `foo 2.3.4 (new formula)`
2016-09-20 11:31:51 +00:00
* [open a pull request](https://github.com/Homebrew/brew/blob/master/docs/How-To-Open-a-Homebrew-Pull-Request-(and-get-it-merged).md#how-to-open-a-homebrew-pull-request-and-get-it-merged) 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
* leave the [`bottle`](http://www.rubydoc.info/github/Homebrew/brew/master/Formula#bottle-class_method) as-is
* `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>`
2016-09-20 11:31:51 +00:00
* [open a pull request](https://github.com/Homebrew/brew/blob/master/docs/How-To-Open-a-Homebrew-Pull-Request-(and-get-it-merged).md#how-to-open-a-homebrew-pull-request-and-get-it-merged) and fix any failing tests
2016-04-03 11:59:20 +00:00
Thanks!