Issy Long
214110f665
dev-cmd/contributions: Stats for all maintainers
...
- With `brew contributions`, this will output a list of stats
(across the specified time period, or all time) for people in the
"maintainers" team on GitHub.
- Add a `--user` flag for getting stats for a specific user (either
username, name or email address).
- This assumes that their Git committer details are the same as their name is
set to on GitHub.
- Show an error message if trying to generate a CSV for the full maintainer
list, since I haven't worked out how to best show all of that info yet (or
even how best to show only the totals across everything for every user) in
that format.
2023-02-22 16:05:58 +00:00
Mike McQuaid
8d02143c2b
Add generate-{cask,formula}-api commands
...
These replace the similar scripts in formulae.brew.sh.
Part of #14730 .
2023-02-22 15:33:16 +00:00
Issy Long
93ce211ebd
Merge pull request #14737 from issyl0/api-commits-for-person
...
dev-cmd/contributions: Use GitHub APIs for commit author info
2023-02-22 14:12:16 +00:00
Mike McQuaid
4e0a9b8771
Merge pull request #14758 from reitermarkus/livecheck-extract-plist
...
Don't preprocess URL for `:extract_plist` strategy.
2023-02-22 13:31:19 +00:00
Mike McQuaid
d877203336
Merge pull request #14755 from dduugg/consolidate-rubocop-configs
...
Consolidate some rubocop configurations
2023-02-22 12:34:51 +00:00
Sean Molenaar
6d3b38c93a
Merge pull request #14747 from SMillerDev/feat/cask/audit_pkg_signing
...
cask: audit for correct signing of pkg installers
2023-02-22 13:33:10 +01:00
Mike McQuaid
8948a3a6e1
Merge pull request #14751 from MikeMcQuaid/analytics_tweak_constants
...
utils/analytics: tweaks constants.
2023-02-22 11:40:39 +00:00
Sean Molenaar
dcb6522604
audit: fix appcast_unneeded_long_version syntax
2023-02-22 12:02:25 +01:00
Sean Molenaar
77fc4c2f8a
audit: check if third version exists before checking URL
2023-02-22 11:58:19 +01:00
Markus Reiter
62ac2dda8b
Don't preprocess URL for :extract_plist
strategy.
2023-02-22 10:37:51 +01:00
Douglas Eichelberger
769117f552
Collapse AllowedNames
2023-02-21 18:04:32 -08:00
Douglas Eichelberger
ed8363fd72
Consolidate some rubocop configurations
2023-02-21 16:50:29 -08:00
BrewTestBot
4856b9f436
sorbet: Update RBI files.
...
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml ) workflow.
2023-02-22 00:28:05 +00:00
Mike McQuaid
7ac31f7d65
Merge pull request #14732 from dduugg/formula-cop-mixin
...
Refactor FormulaCop as an abstract class
2023-02-21 23:05:58 +00:00
Mike McQuaid
da6d355c52
Merge pull request #14743 from reitermarkus/official-cask-taps
...
Use `OFFICIAL_CASK_TAPS` constant.
2023-02-21 23:05:32 +00:00
Mike McQuaid
076f36d8df
Merge pull request #14745 from reitermarkus/livecheck-extract-plist
...
Look for all packages if specified packages are not found.
2023-02-21 23:04:59 +00:00
Mike McQuaid
a98cc1f016
Merge pull request #14744 from reitermarkus/bump-unversioned-casks
...
Ignore discontinued casks in `bump-unversioned-casks`.
2023-02-21 23:04:44 +00:00
Sean Molenaar
4dcf5f0ad7
cask: audit style fixes
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-02-21 19:29:05 +01:00
Sean Molenaar
8806178cf3
cask: audit if sparkle livecheck needs multipart version
2023-02-21 19:27:07 +01:00
Douglas Eichelberger
bd5a7f6a14
Update formula_cop.rb
2023-02-21 09:52:20 -08:00
Mike McQuaid
792ec7fc85
utils/analytics: tweaks constants.
...
This enables easier usage in `brew formula-analytics`.
2023-02-21 17:07:01 +00:00
Mike McQuaid
552902413a
rubocop.yml: disable more metrics.
...
Disable these in taps, too.
2023-02-21 16:31:43 +00:00
Sean Molenaar
c5786ea799
cask: audit for correct signing of pkg installers
2023-02-21 17:05:55 +01:00
Markus Reiter
f709a34d28
Look for all packages if specified packages are not found.
2023-02-21 14:06:33 +01:00
Markus Reiter
fbf85b7530
Ignore discontinued casks in bump-unversioned-casks
.
2023-02-21 12:43:09 +01:00
Markus Reiter
8a81473179
Use OFFICIAL_CASK_TAPS
constant.
2023-02-21 12:39:07 +01:00
Issy Long
c9e6b81b4b
utils/github: API.paginate_rest
handles extra query params
...
- Functionally it doesn't matter that the URL will have an `&` at the
end if `additional_query_params` is `nil`, because it doesn't affect
the URL at all.
2023-02-21 11:06:30 +00:00
Mike McQuaid
853b33bcda
Merge pull request #14742 from apainintheneck/respect-quiet-with-api-downloads
...
api: respect --quiet
2023-02-21 09:23:07 +00:00
Mike McQuaid
98d9f28307
Merge pull request #14739 from issyl0/rubocop-disable-all-metrics
...
rubocop: Entirely disable `Metrics` cops
2023-02-21 09:16:28 +00:00
Mike McQuaid
f0fbeba2ef
Merge pull request #14723 from carlocab/zlib-mtime
...
utils/gzip: set `mtime = 1` when `mtime == 0`.
2023-02-21 09:04:55 +00:00
apainintheneck
0b3b54e75d
api: respect --quiet
2023-02-20 23:23:42 -08:00
Douglas Eichelberger
387d2f859f
Use exclude_from_registry instead
2023-02-20 18:14:47 -08:00
Douglas Eichelberger
d9db5e8825
Refactor FormulaCop as a mixin
2023-02-20 18:14:47 -08:00
Issy Long
0a6c59c0b3
dev-cmd/contributions: Less disgusting way to determine brew
's NWO
2023-02-21 00:51:32 +00:00
Issy Long
298bb65dfb
rubocop: Entirely disable Metrics
cops
...
- These are arbitrary length limits that had a load of disables in code.
- The limits were only increasing over time rather than decreasing.
- Fixing the problematic code to be shorter would take a long time for
questionable gain since the problem has been around so long.
2023-02-21 00:34:17 +00:00
Alex Hedges
5ed06a7956
Handle undeclared POSIXLY_CORRECT in Bash completions
...
As of `brew` 4.0.2, sourcing the Bash completions with `set -eu` causes a
failure if `POSIXLY_CORRECT` is not declared. The check will now
properly handle this situation.
I'm not sure if the resulting code is POSIX-compliant, but it prevents a
breaking change until a better solution can be found.
2023-02-20 18:36:59 -05:00
Issy Long
d3827b12f2
dev-cmd/contributions: Use GitHub APIs for commit author info
...
- Using `git log` was brittle with name changes and email address changes for
contributors over the years unless we made a Git `mailmap` file which brings
with it its own updatedness overhead.
- Let's use the GitHub commits API (importantly _not_ the search API) so that
we can give it a username and it will return contributions associated with
every email address on that user's account:
https://docs.github.com/en/rest/commits/commits?apiVersion=2022-11-28#list-commits--parameters .
- This is quite significantly slower, but it's worth it for correctness
especially when we get to all maintainers' contributions (in a separate PR).
- The commits API does not (yet?) support trailers or commit "committer"s, just
authors.
2023-02-20 23:24:54 +00:00
Mike McQuaid
4eaaa867de
Merge pull request #14709 from issyl0/rubocop-tidying
...
rubocop: Some more config cleanup
2023-02-20 19:35:36 +00:00
BrewTestBot
63c1027b7a
Update RBI files for mime-types-data.
...
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml ) workflow.
2023-02-20 19:13:10 +00:00
BrewTestBot
26039ed257
brew vendor-gems: commit updates.
2023-02-20 19:07:13 +00:00
dependabot[bot]
20784364aa
build(deps): bump mime-types-data in /Library/Homebrew
...
Bumps [mime-types-data](https://github.com/mime-types/mime-types-data ) from 3.2022.0105 to 3.2023.0218.1.
- [Release notes](https://github.com/mime-types/mime-types-data/releases )
- [Changelog](https://github.com/mime-types/mime-types-data/blob/main/History.md )
- [Commits](https://github.com/mime-types/mime-types-data/compare/v3.2022.0105...v3.2023.0218.1 )
---
updated-dependencies:
- dependency-name: mime-types-data
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-20 19:03:05 +00:00
Mike McQuaid
d292dbdc2b
Revert "Fix permissions before moving extracted files."
2023-02-20 17:20:57 +00:00
Mike McQuaid
ddd328ed7d
Merge pull request #14725 from Bo98/api-link_overwrite
...
Support `link_overwrite` and `conflicts_with` in API
2023-02-20 16:44:11 +00:00
Bo Anderson
cacd7194f6
Support link_overwrite
and conflicts_with
in API
2023-02-20 16:28:07 +00:00
Mike McQuaid
37b4780037
dev-cmd/contributions: fix spacing.
...
Otherwise this fails the documentation lint.
2023-02-20 16:16:08 +00:00
Carlo Cabrera
55c75618fc
utils/gzip: set mtime = 1
when mtime == 0
.
...
This allows us to bottle formulae whose source modified time is indeed
`0`.
Needed for Homebrew/homebrew-core#123724 .
2023-02-20 22:02:58 +08:00
Mike McQuaid
14a11f5c72
formulary: use default bottle root_url.
...
We never change this value in `formula.json` so ignore it for security.
2023-02-20 10:03:23 +00:00
Mike McQuaid
e51ee89a90
Merge pull request #14714 from EricFromCanada/linux-omit-home
...
docs: add missing template file edits
2023-02-20 09:56:04 +00:00
Mike McQuaid
7f1a0936e5
Merge pull request #14702 from issyl0/greedy-short-g
...
cmd/(outdated,upgrade): Document `-g` as a shorter `--greedy` for Casks
2023-02-20 09:54:18 +00:00
Mike McQuaid
315e10cbc4
Merge pull request #14712 from issyl0/contributions-primary-repos
...
dev-cmd/contributions: Add `--repositories=primary` to scan only `brew,core,cask`
2023-02-20 09:53:50 +00:00