Gibson Fahnestock e11f797f25
bump-*-pr: handle HOMEBREW_NO_GITHUB_API=1 being set
We early return here
92a4311868/Library/Homebrew/utils/github/api.rb (L220)
, but don't then handle that through the stack.

Repro:

```console
❯ HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_GITHUB_API=1 brew bump-formula-pr --write-only --version 1.2.3 --no-audit jq
Error: undefined method `[]' for nil:NilClass
Do not report this issue until you've run `brew update` and tried again.
Warning: Removed Sorbet lines from backtrace!
/opt/homebrew/Library/Homebrew/utils/github.rb:565:in `block in fetch_pull_requests'
/opt/homebrew/Library/Homebrew/utils/github/api.rb:334:in `paginate_graphql'
/opt/homebrew/Library/Homebrew/utils/github.rb:564:in `fetch_pull_requests'
/opt/homebrew/Library/Homebrew/utils/github.rb:628:in `check_for_duplicate_pull_requests'
/opt/homebrew/Library/Homebrew/dev-cmd/bump-formula-pr.rb:456:in `check_open_pull_requests'
/opt/homebrew/Library/Homebrew/dev-cmd/bump-formula-pr.rb:135:in `run'
/opt/homebrew/Library/Homebrew/brew.rb:89:in `<main>'
Rerun with `--verbose` to see the original backtrace
```
2024-03-25 11:11:01 +00:00
..
2024-03-07 16:20:20 +00:00
2024-03-19 21:21:37 +00:00
2024-03-15 12:51:03 -07:00
2024-02-09 00:11:05 +00:00
2024-03-22 09:33:28 -07:00
2024-03-22 09:33:28 -07:00
2024-03-07 16:20:20 +00:00
2024-03-23 00:18:56 +00:00
2024-03-07 16:20:20 +00:00
2024-03-07 16:20:20 +00:00
2024-03-22 09:33:28 -07:00
2024-03-22 16:36:10 +00:00
2024-02-11 21:53:21 -05:00
2024-03-17 20:53:58 -07:00
2024-03-07 16:20:20 +00:00
2024-03-11 11:46:23 -04:00
2024-03-07 16:20:20 +00:00
2024-03-07 16:20:20 +00:00
2024-02-18 15:47:56 -08:00
2024-03-07 16:20:20 +00:00
2024-03-07 16:20:20 +00:00
2024-02-18 15:47:56 -08:00
2024-03-07 16:20:20 +00:00
2024-02-04 15:42:26 +01:00
2024-03-17 11:33:47 -04:00
2024-03-07 16:20:20 +00:00
2024-03-17 22:47:37 -07:00
2024-03-22 16:36:10 +00:00
2024-03-07 16:20:20 +00:00
2024-03-07 16:20:20 +00:00
2024-03-07 16:20:20 +00:00
2024-03-07 16:20:20 +00:00
2024-03-07 16:20:20 +00:00
2024-03-07 16:20:20 +00:00
2024-03-07 16:20:20 +00:00
2024-02-18 15:47:56 -08:00
2024-03-07 16:20:20 +00:00
2024-03-07 16:20:20 +00:00
2024-03-07 16:20:20 +00:00
2024-03-07 16:20:20 +00:00
2024-03-07 16:20:20 +00:00
2024-03-07 16:20:20 +00:00
2024-03-07 16:20:20 +00:00
2024-03-07 16:20:20 +00:00
2024-02-22 22:03:54 +01:00
2024-03-22 09:33:28 -07:00
2024-03-07 16:20:20 +00:00
2024-03-07 16:20:20 +00:00
2024-03-07 16:20:20 +00:00
2024-03-07 16:20:20 +00:00

Homebrew Ruby API

This is the API for Homebrew.

The main class you should look at is the {Formula} class (and classes linked from there). That's the class that's used to create Homebrew formulae (i.e. package descriptions). Assume anything else you stumble upon is private.

You may also find the Formula Cookbook and Ruby Style Guide helpful in creating formulae.

Good luck!