Commit Graph
1274 Commits
Author SHA1 Message Date
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
Alexander Bayandin 7ba0f34f72 Revert "Merge pull request #7316 from bayandin/fix-bump-revision"
This reverts commit a7fdc7046f, reversing
changes made to bfa175d118.
2020-04-26 15:11:31 +01:00
Mike McQuaidandGitHub a7fdc7046f Merge pull request #7316 from bayandin/fix-bump-revision
bump-revision: fix handling formula with stable block
2020-04-26 13:31:45 +01:00
EricFromCanada 78b87b7f23 sh: fix custom shell prompt for zsh 2020-04-23 00:38:36 -04:00
Bo Anderson b619e31457 dev-cmd/audit: fix false openssl@1.1 versioned formula audit 2020-04-22 01:00:35 +01:00
Shaun Jackman 6b547a5c5e pr-upload: Fix a bug introduced by PR #7406
Fix the error:
Error: No such file or directory @ rb_sysopen - bottle
2020-04-20 15:16:08 -07:00
Mike McQuaidandGitHub 6d999f95d2 Merge pull request #7406 from sjackman/pr-upload-root-url
pr-upload: Add argument root-url
2020-04-20 20:12:59 +01:00
Mike McQuaid 9457d1af5e pull: fix head_revision definition.
Fixes #7405.
2020-04-20 19:54:38 +01:00
Shaun Jackman 29ae567868 pr-upload: Add argument root-url
The argument root-url is needed for third-party taps.
2020-04-20 11:47:57 -07:00
Mike McQuaidandGitHub c4fed07d34 Merge pull request #7401 from dawidd6/pr-upload
Add pr-upload command
2020-04-20 16:33:06 +01:00
Dawid Dziurla 3dd5a7465d add pr-upload command 2020-04-20 13:37:05 +02:00
Mike McQuaid 8b84ef5dc8 pull: cleanup more code.
Remove more unused code.
2020-04-20 10:09:22 +01:00
EricFromCanada 9d6eb41fc5 cmd/dev-cmd: misc. usage and wording fixes 2020-04-19 13:31:54 -04:00
Mike McQuaidandGitHub ef3b148147 Merge pull request #7395 from MikeMcQuaid/kill-jenkins
Remove last Jenkins references
2020-04-19 15:09:05 +01:00
Mike McQuaid 239b4c9d19 Remove last Jenkins references
- remove Jenkins Testing support from `brew pull`
- update reference to MacStadium Orka
- remove reference to DigitalOcean
2020-04-19 14:53:18 +01:00
Dawid DziurlaandJonathan Chang 8305919c93 pr-automerge: allow multiple comma separated -labels 2020-04-19 16:17:25 +10:00
Mike McQuaid 8eed72cd8b Move file mode audit to RuboCop. 2020-04-18 15:44:24 +01:00
Mike McQuaid 8cb90595b3 dev-cmd/audit: add TODOs for RuboCop migrations. 2020-04-18 15:30:53 +01:00
Mike McQuaid 3546c39581 audit: remove trailing newline check.
This is already done by the default RuboCop configuration.
2020-04-18 15:30:53 +01:00
Mike McQuaid 5e2351cde6 dev-cmd/audit: add --skip-style option.
This will allow `brew style` and `brew audit` to be run separately
without providing duplicates.

Additionally, run RuboCop style rules when `--strict` isn't provided and
remove a confusing reference to `style`.
2020-04-16 08:24:38 +01:00
Alexander Bayandin 5088eff96b audit: add draft release detection 2020-04-15 15:04:10 +01:00
Mike McQuaid 85e65f6d9c Move some cmd to dev-cmd.
None of these made sense as end-user commands.
2020-04-14 14:29:38 +01:00
Mike McQuaid 4fb649cad1 cmd, dev-cmd: use args.formulae_paths.
This makes these commands robust to invalid syntax.
2020-04-14 14:21:38 +01:00
vidusheeamoli 9cfef07682 dev-cmd/extract: instruct users to run git fetch unshallow 2020-04-14 18:07:41 +05:30
Jonathan Chang 951cf09d4b pr-pull: eliminate another curl call
We're setting the basename, so no need to make a curl call to figure out
what it ought to be. This should speed up bottle pulls even more.
2020-04-14 13:41:35 +10:00
Mike McQuaid d52e870b07 rubocop: remove NewFormulaAudit.
This is no longer used anywhere.
2020-04-13 16:01:26 +01:00
Bo Anderson a920f74671 dev-cmd/pr-pull: fix strategy error 2020-04-13 12:54:06 +01:00
Jonathan ChangandGitHub ac5ea023cf Merge pull request #7344 from jonchang/pr-automerge
dev-cmd: add pr-automerge
2020-04-13 20:39:42 +10:00
Jonathan ChangandGitHub b2cf3bfe0f Merge pull request #7343 from jonchang/pr-pull-jumbo-bottles
pr-pull: fix to fetch extra-large bottles
2020-04-13 20:29:17 +10:00
Jonathan ChangandMike McQuaid 5a95fe14aa dev-cmd: add pr-automerge
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
2020-04-13 20:14:40 +10:00
Jonathan Chang c1ba9975b8 pr-pull: fetch artifacts with no-resume strategy 2020-04-13 19:59:22 +10:00
Mike McQuaidandGitHub 2200b1ed40 Merge pull request #7231 from hyuraku/audit_github-prerelease_or_not
audit whether GitHub prerelease or not
2020-04-13 09:09:20 +01:00
Jonathan Chang e6e5571a07 audit: fix keg_only check 2020-04-13 14:19:58 +10:00
Mike McQuaid afa5713e63 audit: cleanup prerelease detection. 2020-04-12 14:51:49 +01:00
Mike McQuaidandGitHub 793407a2e0 Merge pull request #7328 from MikeMcQuaid/keg_only_tweaks
keg_only tweaks
2020-04-12 14:39:47 +01:00
Mike McQuaid 6ea6db9026 dev-cmd/audit: test presence of formulae in lists. 2020-04-12 14:17:06 +01:00
Mike McQuaidandGitHub 6b30a64831 Merge pull request #7332 from dawidd6/pr-uniq
pr-*: only unique named args
2020-04-12 13:31:54 +01:00
Mike McQuaid 373650d00d KegOnlyReason: add reason helpers, rename valid. 2020-04-12 13:12:02 +01:00
hyuraku 5578845e3f repair regex condition 2020-04-12 20:23:43 +09:00
Issy Long 3e2f183c60 pull: Remove --bottle flag
- Muscle memory is a thing, as is relying heavily on one's shell
  history. Now that the Jenkins runners are gone, `brew pull --bottle`
  no longer works. This removes the option. If maintainers are confused,
  they should [look at recent changes to the
  docs](https://docs.brew.sh/Brew-Test-Bot-For-Core-Contributors#bottling),
  or ask in Slack.
- An earlier iteration of this showed a deprecation warning and a link
  to the docs, but when an option no longer physically works it's a bit
  late for deprecation *warnings*.
- This also fixes a `brew style` warning from futher up in the file.

pull: Appease RuboCop
2020-04-12 11:24:22 +01:00
Dawid Dziurla 08309749d4 pr-*: only unique named args
also tweak usage to show that the commands accept multiple arguments
2020-04-12 12:13:53 +02:00
Jonathan Chang f575eecabc pr-pull: don't try to fetch unneeded artifacts 2020-04-11 19:37:43 +10:00
Jonathan Chang e974dce16e pr-pull: don't pass dry_run everywhere 2020-04-11 19:26:32 +10:00
Alexander Bayandin 7a4c1cc8ac bump-revision: fix handling formula with stable block 2020-04-09 16:12:14 +01:00
Bo Anderson 7787dde7b7 dev-cmd/pr-publish: fix undefined method error on invalid input 2020-04-09 01:36:49 +01:00
EricFromCanada 634e30994e bump-formula-pr: use Homebrew::EnvConfig 2020-04-07 10:25:43 -04:00