Issy Long
2719c345ab
dev-cmd/contributions: CSV output of queried repos; shorter sentence
...
- This gives users of this command a `--csv` option to pass to... you guessed
it, generate a CSV that's `pbcopy`able elsewhere, for more granular
breakdowns of where a person contributed.
- Inspiration was taken from the mockup in
https://github.com/Homebrew/brew/issues/13642#issuecomment-1254535251
but without the extra dependency of the TerminalTable gem.
- Always print a condensed "total contributions" sentence.
Output:
```
$ brew contributions issyl0
The user issyl0 has made 1201 contributions in all time.
$ brew contributions issyl0 --csv
user,repo,commits,coauthorships,signoffs
issyl0,brew,331,13,0
issyl0,core,473,24,326
issyl0,cask,4,0,0
issyl0,aliases,0,0,0
issyl0,autoupdate,1,0,0
issyl0,bundle,14,2,0
issyl0,command-not-found,1,0,0
issyl0,test-bot,3,0,0
issyl0,services,9,0,0
issyl0,cask-drivers,0,0,0
issyl0,cask-fonts,0,0,0
issyl0,cask-versions,0,0,0
```
2023-02-15 12:47:10 +00:00
Mike McQuaid
c87090e1a0
Merge pull request #14627 from MikeMcQuaid/master
...
cask/cask: fix non-absolute home error.
2023-02-14 17:43:14 +00:00
Mike McQuaid
1d61b219db
cask/cask: fix non-absolute home error.
...
Needs a leading slash to avoid `File.expand.path` complaining about non-absolute home.
2023-02-14 17:22:18 +00:00
Mike McQuaid
98f5213954
Merge pull request #14615 from MikeMcQuaid/generating_hash_appdir
...
Overhaul Formula/Cask JSON generation
2023-02-14 15:02:19 +00:00
Mike McQuaid
237eec8ef8
Overhaul Formula/Cask JSON generation
...
- Use constants for placeholders
- Monkeypatch to set `HOMEBREW_PREFIX` consistently to placeholder
- Use environment variable to set `Dir.home` consistently to placeholder
- Use `appdir` short-circuit to set `Cask#appdir` consistently to placeholder
- Use `Cask.generating_hash!` to enable "generating mode" with these patches
- Fix `Formula#caveats` from JSON
Fixes #14505
Fixes #14595
2023-02-14 14:19:40 +00:00
Mike McQuaid
66c9d5f2af
Merge pull request #14620 from Kentzo/sudo-env
...
sudo: pass env variables without /usr/bin/env
2023-02-14 14:13:37 +00:00
Mike McQuaid
9725e764f5
system_command: fix typo.
2023-02-14 13:02:59 +00:00
Mike McQuaid
cedd4d33e4
Merge pull request #14570 from s4nji/patch-1
...
Update documentation for `brew install` and FAQ regarding `HOMEBREW_NO_INSTALL_FROM_API`
2023-02-14 12:38:20 +00:00
Sanjito Kurniawan
c7b8b3a989
docs/FAQ: correct an entry regarding simple formula edit
...
Co-authored-by: Kevin <apainintheneck@gmail.com>
2023-02-14 12:04:37 +00:00
Sanjito Kurniawan
2daae5e84d
edit: add HOMEBREW_NO_INSTALL_FROM_API warning.
2023-02-14 12:04:10 +00:00
Mike McQuaid
e0ba9a1249
Merge pull request #14617 from Bo98/api-reqs-oldname
...
formulary: support requirements, aliases etc from API
2023-02-14 11:54:55 +00:00
Issy Long
990170927a
Merge pull request #14597 from issyl0/contributions-add-signoffs
...
dev-cmd/contributions: Count commit signoffs, too
2023-02-14 11:37:08 +00:00
Mike McQuaid
72071f290e
Merge pull request #14623 from dduugg/type-api
...
Enabling typing in Homebrew::API module
2023-02-14 11:31:37 +00:00
Mike McQuaid
70db4bc723
Merge pull request #14621 from Bo98/api-uses_from_macos-fix
...
formulary: fix uses_from_macos handling on macOS
2023-02-14 11:24:44 +00:00
Mike McQuaid
d0d83cc03f
Merge pull request #14614 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-ast-1.26.0
...
build(deps): bump rubocop-ast from 1.24.1 to 1.26.0 in /Library/Homebrew
2023-02-14 11:17:44 +00:00
Mike McQuaid
8aa495b19b
Merge pull request #14618 from Bo98/maximum-req-name-fix
...
formula: fix `to_hash` tampering with requirement names
2023-02-14 11:14:51 +00:00
Issy Long
abe23fb249
dev-cmd/contributions: Add up different contribution types for a total
...
❯ brew contributions mikemcquaid
mikemcquaid directly authored 23766 commits, co-authored 241 commits, and signed-off 6730 commits across all Homebrew repos in all time. Total: 30737.
2023-02-14 10:51:13 +00:00
Mike McQuaid
aa7a543344
Merge pull request #14613 from MikeMcQuaid/improve_autotapping
...
Improve homebrew/{core,cask} autotapping.
2023-02-14 10:30:09 +00:00
Mike McQuaid
4c8ed77302
Improve homebrew/{core,cask} autotapping.
...
Don't automatically tap these when running a developer command that's
not using the API.
Fixes #14606
2023-02-14 09:54:24 +00:00
Mike McQuaid
0e2c13bdfd
Merge pull request #14611 from apainintheneck/stop-including-flight-block-source-in-json
...
Stop including flight block source in json
2023-02-14 09:37:15 +00:00
Ilya Kulakov
9ff7ceb563
sudo: pass env variables without /usr/bin/env
...
Using /usr/bin/env as a frontend for the actual command
prevents sudoers from restricting allowed commands and configuring
detailed command environment.
2023-02-13 22:10:35 -08:00
Douglas Eichelberger
95742f4cfd
Enabling typing in Homebrew::API module
2023-02-13 21:33:04 -08:00
apainintheneck
39c6f7d6fb
Stop including *flight block source in cask API
...
Originally we were going to try and load the *flight blocks from the API
but we ended up going with downloading the caskfile for the subset of
casks that need this functionality for consisty's sake.
This reverts the following commits from most recent to oldest:
- ffc74a51fb32b66a4cd8bc41dbd076dd23d9100e
- e5616e94fe42505434c330be35eeafef2739944f
- d1490c3d5c087d00f2bca1787cce331202b195c5
- 7ca5a5d9a71a73f21bbb8555a38048f027bee89b
- 2d5d132713d0701d02d5ff33e9918812d13d2a83
It also changes how *flight blocks are handled in `.to_h`.
Essentially, when *flight blocks exist they are just included
as a hash of the artifact to nil to indicate that they exist.
More information isn't necessary since we don't evaluate
the current source code in the *flight artifacts that
we get from the API.
2023-02-13 21:22:18 -08:00
Bo Anderson
7c1b642035
formulary: fix uses_from_macos handling on macOS
2023-02-14 04:07:51 +00:00
Bo Anderson
9b26bf9b92
formulary: support requirements, aliases etc from API
2023-02-14 03:32:56 +00:00
Bo Anderson
5619e5cc2c
formula: fix to_hash tampering with requirement names
2023-02-14 02:31:49 +00:00
BrewTestBot
f7e449ac31
Update RBI files for rubocop-ast.
...
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml ) workflow.
2023-02-13 19:08:26 +00:00
BrewTestBot
567b4f5079
brew vendor-gems: commit updates.
2023-02-13 19:01:55 +00:00
dependabot[bot]
94bde2862b
build(deps): bump rubocop-ast from 1.24.1 to 1.26.0 in /Library/Homebrew
...
Bumps [rubocop-ast](https://github.com/rubocop/rubocop-ast ) from 1.24.1 to 1.26.0.
- [Release notes](https://github.com/rubocop/rubocop-ast/releases )
- [Changelog](https://github.com/rubocop/rubocop-ast/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop-ast/compare/v1.24.1...v1.26.0 )
---
updated-dependencies:
- dependency-name: rubocop-ast
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 18:58:13 +00:00
Mike McQuaid
2a417f1416
Merge pull request #14609 from Bo98/json-fix
...
Fix `brew info --json` regressions around install status
2023-02-13 15:02:26 +00:00
Mike McQuaid
77bcf65e88
Merge pull request #14596 from cho-m/livecheck-no-colon
...
livecheck_version: only split on commas in cask version
2023-02-13 14:59:29 +00:00
Mike McQuaid
ddfa69b5e8
Merge pull request #14608 from Bo98/caskroom-replace
...
cask: replace Caskroom in API for relocated artifacts
2023-02-13 14:55:55 +00:00
Mike McQuaid
42d3b8cbfc
Merge pull request #14605 from Homebrew/imgbot
...
[ImgBot] Optimize images
2023-02-13 14:54:12 +00:00
Mike McQuaid
31ec835c9d
Merge pull request #14599 from maxim-belkin/installed_formulae_cellar
...
Bash completions: use HOMEBREW_CELLAR, if set
2023-02-13 14:49:37 +00:00
Bo Anderson
cc956d73aa
Fix brew info --json regressions around install status
2023-02-13 05:07:40 +00:00
Bo Anderson
526871896c
cask: replace Caskroom in API for relocated artifacts
2023-02-13 04:33:53 +00:00
Michael Cho
476f83d38d
livecheck_version: only split on commas in cask version
2023-02-12 15:32:32 -08:00
ImgBotApp
82f0441bee
[ImgBot] Optimize images
...
/docs/assets/img/docs/managing-pull-requests.drawio.svg -- 61.20kb -> 43.58kb (28.79%)
Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2023-02-12 17:13:51 +00:00
Mike McQuaid
ed79381155
Merge pull request #14574 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.45.1
...
build(deps): bump rubocop from 1.44.1 to 1.45.1 in /Library/Homebrew
2023-02-12 15:11:40 +00:00
Mike McQuaid
602972e4d0
Merge pull request #14587 from Rylan12/info-json-api
2023-02-12 13:41:20 +00:00
Carlo Cabrera
ccbb173995
Merge pull request #14193 from cho-m/meson-creator
...
formula_creator: use tool-agnostic meson commands
2023-02-12 21:21:44 +08:00
Rylan Polster
f7fa5937d8
Allow brew info --json=v2 without taps with JSON API
2023-02-12 12:03:40 +00:00
Mike McQuaid
2bdf20b0ba
Merge pull request #14576 from apainintheneck/remove-cask-check-for-linux
...
extend/os: remove cask install on linux
2023-02-12 12:02:24 +00:00
Mike McQuaid
f4f22bc937
Merge pull request #14601 from apainintheneck/stop-double-warning-in-edit
...
cmd/edit: stop double warning
2023-02-12 12:01:06 +00:00
Kevin
e940f77444
Merge pull request #14603 from reitermarkus/unversioned-casks
...
Fix duration calculation in `bump-unversioned-casks`.
2023-02-11 22:28:02 -08:00
Rylan Polster
b03531c273
Merge pull request #14602 from Homebrew/sorbet-files-update
...
sorbet: Update RBI files.
2023-02-11 21:03:29 -05:00
Markus Reiter
8c8065746b
Fix duration calculation.
2023-02-12 01:40:19 +01:00
BrewTestBot
5d6c73bb9f
sorbet: Update RBI files.
...
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml ) workflow.
2023-02-12 00:29:49 +00:00
Maxim Belkin
fd5e9c8662
Bash completions: use HOMEBREW_CELLAR, if set
2023-02-11 10:59:52 -07:00
Issy Long
14f9a2424d
dev-cmd/contributions: Count commit signoffs, too
...
- `BrewTestBot` adds `Signed-off-by` for who approved PRs (1cf53b4281/Library/Homebrew/dev-cmd/pr-pull.rb (L91-L93) ).
- Let's count these too, at least until we can get PR approvals from the GitHub API.
2023-02-11 12:01:12 +00:00