Commit Graph
1319 Commits
Author SHA1 Message Date
Mike McQuaidandGitHub 61b4e7c414 Merge pull request #7745 from dtrodrigues/bump-pr-dupes
bump-formula-pr: search for closed dupe PRs
2020-06-29 08:39:30 +01:00
Dustin Rodrigues f684a59fa5 bump-formula-pr: search for closed dupe PRs 2020-06-27 12:50:43 -04:00
Mike McQuaidandGitHub 58de51f2ce Merge pull request #7837 from FTLam11/7392-migrate-audit-rules-to-rubocop
audit: Move patch checks from brew audit to rubocop
2020-06-27 13:11:51 +01:00
Frank Lam b2eafdf11d Remove patch checks from audit 2020-06-27 02:37:57 +08:00
Eric KnibbeandGitHub db998860f1 Merge pull request #7831 from EricFromCanada/fix-help-output
docs: fixes for help output
2020-06-25 13:08:48 -04:00
Dario Vladovic 519c339261 create: add --crystal option 2020-06-25 18:23:06 +02:00
EricFromCanada 910c85f782 docs: improve commands' help output 2020-06-25 12:01:52 -04:00
Jonathan Chang 2b990aa53c pr-pull: pass verbose and debug to subcommands 2020-06-22 00:25:57 +10:00
Jonathan Chang 17c20c0e11 pr-pull: dupe logic moved to mirror and pr-upload 2020-06-21 19:55:10 +10:00
Mike McQuaidandGitHub 6049227c0a Merge pull request #7771 from alebcay/extract-typo
extract: fix typo
2020-06-19 20:00:42 +01:00
Caleb Xu 2e6b8d65b3 extract: fix typo 2020-06-18 11:19:04 -04:00
Caleb Xu a53c92bd7f Cache commands list for faster shell completions 2020-06-18 11:06:31 -04:00
Issy LongandGitHub 2608755ac5 Merge pull request #7709 from dawidd6/auto-mirroring
bintray: automatically run brew mirror if needed
2020-06-17 20:09:30 +01:00
Dawid Dziurla 3b0359706f bintray: automatically run brew mirror if needed 2020-06-13 12:55:03 +02:00
Issy Long 7ad7834b15 audit: Supress pre-release audits for known pre-release formulae
- This safelists one formula that has only ever shipped pre-releases,
  from before we had the GitHub pre-release audit. So it won't fail CI
  and cause maintainers more work to determine if it's always been that
  way, or if it's new. Then, we don't have to keep comments at the top
  of files to say so for the next contributors.
- We should check this list from time to time to make sure that the
  formulae here have graduated to actual releases and we can remove
  them.
2020-06-12 15:59:30 +01:00
Mike McQuaid f94a38e4b1 tap-new: restrict new tap names.
Don't want to restrict this for all taps otherwise existing ones may
explode.

Fixes #7734
2020-06-12 11:42:40 +01:00
Mike McQuaidandGitHub ae7e58ef78 Merge pull request #7488 from danielbayley/master
cat: Allow 'bat' to find existing configuration
2020-06-12 10:45:11 +01:00
Jonathan ChangandGitHub b99bfe1b8c Merge pull request #7717 from jonchang/preserve-trailers
pr-pull: preserve trailers when signing off commit
2020-06-10 21:15:56 +10:00
Jonathan Chang ee9c335b51 pr-pull: preserve trailers when signing off commit 2020-06-10 19:27:05 +10:00
Mike McQuaid 0dd004f53d dev-cmd/audit: handle nil newest_committed_revision.
Fixes #7712.
2020-06-10 08:39:41 +01:00
Mike McQuaid 2a94d382ac audit: make audit_revision_and_version_scheme faster.
This is really, really slow at the moment for a few reasons:
- it goes through the list of revisions twice
- it checks many more revisions than it needs to

Even after these improvements it's still by far the slowest audit so
am also making it a `--git` only audit.

Additionally, to further improve default `brew audit` performance do not
run `brew style` checks when doing `brew audit` with no arguments.

`brew style` can be run quickly and efficiently on all of a tap (and is
cached) so no need to duplicate it here.
2020-06-08 15:00:09 +01:00
Issy Long 8eba9b86ab Change occurrences of "blacklist" to "denylist" or "disallow"
- Depending on context, I've gone for either "denylist" or "disallow"
  here. "Disallow" for things in sentences, or actions, and "denylist"
  for list of things.
2020-06-06 22:38:33 +01:00
Issy Long 0041ea21f5 Change occurrences of "whitelist" to "allowlist" 2020-06-06 22:38:32 +01:00
Mike McQuaid 80c1a166b1 dev-cmd/pull: deprecate.
We no longer use this and `hub checkout` does what we want better.
2020-06-05 08:53:03 +01:00
Thierry Moisan 7a285cf476 Fix audit online release variable 2020-06-04 09:09:12 -04:00
Mike McQuaid 8b24d8c5e9 dev-cmd/audit: don't check GitHub releases without --online.
This both is more accurate and making `brew audit` without `--online` a
bit faster.
2020-06-03 17:50:57 +01:00
Mike McQuaid aa81982aba brew style --fix 2020-06-02 09:49:23 +01:00
Bo Anderson f6de06d244 dev-cmd/audit: whitelist python@3.8 to be non-keg-only 2020-05-31 22:39:29 +01:00
Mike McQuaid 9a654897d4 manpage: no longer mention installing from a URL.
This is deprecated in #7660.
2020-05-29 17:04:42 +01:00
Sean Molenaar 3567892802 Add notibility checks for casks 2020-05-26 14:21:25 +02:00
Issy Long d14eed6cec audit: Remove call to deprecated created_pr_comment method
```
➜ brew audit --online --new-formula --verbose turbogit
turbogit:
  * GitHub repository not notable enough (<30 forks, <30 watchers and <75 stars)
  * GitHub repository too new (<30 days old)
Error: undefined local variable or method `created_pr_comment' for Homebrew:Module
/usr/local/Homebrew/Library/Homebrew/dev-cmd/audit.rb:148:in `audit'
/usr/local/Homebrew/Library/Homebrew/brew.rb:110:in `<main>'
```

- This was removed in 4f75a77b08. We can't
  post PR comments from GitHub Actions CI from forks.
2020-05-25 13:00:38 +01:00
Issy Long 0cced8e7bd audit: Fix Regexp for stripping .git from repo URLs
- [For a formula named
  turbogit](https://github.com/Homebrew/homebrew-core/pull/55208), we
  didn't see any of the notability checks fail CI.
- The repo name was getting truncated to `turb`, which didn't exist, so
  the audit didn't return anything for this check.
- The Regexp to strip `.git` from the end of was not escaping the `.`,
  so it would match anything ending in `git`, not a literal `.git`.
2020-05-25 12:48:16 +01:00
Mike McQuaid ef95b59ed4 Remove HomebrewArgvExtension
Fixes #5730
2020-05-23 19:39:11 +01:00
Mike McQuaidandGitHub e1f3c8d2b3 Merge pull request #7579 from MikeMcQuaid/deprecations
Update deprecations
2020-05-23 14:38:10 +01:00
Zhiming Wang 83fa24741e bump-formula-pr: fix forking error when formula is guessed from url
Regression introduced in f90612ccf0 (#6718).

`tap_full_name` returned from `use_correct_linux_tap` has been
required (`GitHub.create_fork(tap_full_name)`), but it was never set when the
formula is guessed from args.url, resulting in an API request to
https://api.github.com/repos//forks which 404s (note the missing :owner/:repo),
and subsequently

    Error: Unable to fork: Not Found!
2020-05-23 14:20:35 +08:00
Mike McQuaid ca47992a6c Fix rubocop-performance brew style. 2020-05-22 08:52:26 +01:00
Mathäus Zingerle bb9665ced8 Migrate scheme checks for cvs, bzr, hg, fossil, and svn+http to Rubocop 2020-05-20 20:52:00 -05:00
Daniel Bayley e477a38958 [WIP] cat: Allow 'bat' to find existing configuration file 2020-05-20 16:51:36 +01:00
Mike McQuaid 633501ab08 audit: remove incorrect TODO.
This check can't really be in RuboCop (as it relies on the URL strategy
logic).
2020-05-20 08:17:14 +01:00
Mike McQuaidandGitHub 0e9897c86d Merge pull request #7577 from vidusheeamoli/add-byebug
Set up Byebug debugger
2020-05-19 08:27:53 +01:00
Mathäus Zingerle 82ba0475ad audit: Port version checks that do not rely on Formula state to RuboCop and add tests 2020-05-18 10:12:13 -05:00
Mike McQuaid 4f75a77b08 Update deprecations
Add more deprecations, disable deprecations and remove disabled code.
2020-05-18 13:50:46 +01:00
vidusheeamoli 4f1e9f44a1 set up byebug debugger 2020-05-18 16:28:43 +05:30
Bo Anderson 65d7036c19 bintray: url encode where needed 2020-05-10 01:48:29 +01:00
Dawid DziurlaandEric Knibbe 6fa09ab0ee pr-automerge: match only approved PRs by default
Also remove default `--with-label` value and add `--without-approval`
option.

Reviews could be automatically dismissed on new commits pushed (there is
an option for that in repository settings on Github). That is not the
case for labels. They remain attached to a PR, even when new commits are
pushed. This is undesirable and creates security concerns, because
someone could introduce untested code just before the automerge happens.

Co-authored-by: Eric Knibbe <enk3@outlook.com>
2020-05-06 18:32:47 +02:00
Mike McQuaid 20a1199375 Refactor CLI to remove unless args_parsed
Refactor the CLI::Args module so it doesn't have different paths to
check arguments depending on whether the arguments have been parsed or
not. Instead, set the values we need from the global ARGV at
first, global initialisation time where they will be thrown away when
the actual arguments are parsed.

To do this some other general refactoring was needed:
- more methods made private when possible
- e.g. `HEAD?` used consistently instead of `head` before arguments
  are parsed.
- formula options are only parsed after named arguments are extracted
2020-05-05 17:47:51 +01:00
vidusheeamoli f851688541 audit: Port audit_keg_only to rubocop and add tests
audit: add test

audit: fixed test

audit: added another test case

audit: fix test

audit: fix test

audit: fix keg only
2020-05-05 10:47:49 +05:30
Mike McQuaid 40ec8e69cc Cleanup Sandbox code
Remove unused code and methods.
2020-05-02 13:45:04 +01:00
Alexander Bayandin cc799b1f31 dev-cmd/mirror: switch to Bintray wrapper 2020-04-27 23:17:25 +01:00
EricFromCanadaandAlexander Bayandin 5a4a57310f bump-revision: insert after homepage if stable block is present 2020-04-26 15:13:34 +01:00