45 Commits

Author SHA1 Message Date
Mike McQuaid
4f3c590873
Unify and use Git username/email/GPG handling.
We're using essentially the same logic to setup Git for committing in
multiple places but the way we're doing so is inconsistent. Moved to
using two shared utility methods and use them consistently.
2020-11-02 12:21:18 +00:00
Markus Reiter
bf7fe45e89
Merge pull request #8896 from reitermarkus/sorbet-inline
Inline type annotations.
2020-10-13 10:40:53 +02:00
Jonathan Chang
e7b65c62a0 pr-pull: clean up review signoff trailer code 2020-10-12 21:44:13 +11:00
Markus Reiter
d5e600e3af Remove unknown Homebrew::Error class. 2020-10-10 16:06:48 +02:00
Markus Reiter
24ae318a3d Move type annotations into files. 2020-10-10 14:59:39 +02:00
Michka Popoff
f01f3a9f56 pr-pull: fix signoff for linuxbrew-core 2020-10-01 12:38:14 +02:00
Jonathan Chang
4b4510d22d dev-cmd/pr-pull: refactor and test autosquash! 2020-09-20 13:44:44 +10:00
Jonathan Chang
99a5aa07ad dev-cmd/pr-pull: refactor and test signoff! 2020-09-20 13:44:44 +10:00
Jonathan Chang
0bb2c96cfc dev-cmd/pr-pull: use commit message helper 2020-09-20 13:23:40 +10:00
Jonathan Chang
d116087af6 dev-cmd/pr-pull: tests for bump subject 2020-09-20 13:22:57 +10:00
Jonathan Chang
04687aef93 dev-cmd/pr-pull: don't assume a master branch 2020-09-20 13:21:27 +10:00
Jonathan Chang
415c36041a dev-cmd/pr-pull: use GitHub API to get PR commits 2020-09-20 13:21:27 +10:00
Jonathan Chang
4315a2647f pr-pull: implement autosquash option 2020-09-17 17:27:38 +10:00
Dawid Dziurla
0bf491ba18
pr-pull: don't require bintray credentials to be set
It blocks uploading to GitHub Releases where Bintray credentials are not needed.
Also those checks are already performed in `bintray.rb`.
2020-09-15 13:40:07 +02:00
Seeker
5def0701ba formula: rename opt_or_installed_prefix_keg to any_installed_keg 2020-09-01 09:39:20 -07:00
Mike McQuaid
8b97c27c21 brew style manual fixes 2020-09-01 14:26:45 +01:00
Mike McQuaid
e09147fe75 brew style --fix 2020-09-01 14:26:45 +01:00
Seeker
3d62ed7853 pull, pr-pull: use opt_or_installed_prefix_keg 2020-08-28 09:59:07 -07:00
Mike McQuaid
7e0e458dc2
dev-cmd/pr-pull: fail on syntax errors.
This logic was pulled over from `brew pull` where it made sense (as we
wanted to be able to pull broken commits) but doesn't really apply here
where we can easily end up ignoring broken formulae and pushing their
commits anyway.
2020-08-24 08:44:31 +01:00
Jonathan Chang
7eee343331 pr-pull: require formula
This caused bottle publishes to think that no bottles were needed.
2020-08-22 14:21:02 +10:00
Dawid Dziurla
d5c8f2e102
pr-pull: pass --keep-old option to pr-upload
also fix typo in `--root-url` option
2020-08-14 13:40:21 +02:00
Markus Reiter
490e503b1b Replace Homebrew.args with Context. 2020-08-06 16:13:14 +02:00
Markus Reiter
617b369543 Pass args correctly in brew pr-pull. 2020-07-31 19:42:31 +02:00
Markus Reiter
d4c2ffd705 Refactor CLI::Parser. 2020-07-31 15:07:17 +02:00
Markus Reiter
76cc31f134 Pass args in pr-pull instead of using global args. 2020-07-25 04:28:02 +02:00
Jonathan Chang
204e56d01e pr-pull, pr-upload: add --warn-on-upload-failure 2020-07-02 00:11:55 +10:00
Jonathan Chang
21c903c133 pr-pull, pr-upload: use safe_system to call brew 2020-07-01 23:59:07 +10:00
Jonathan Chang
bada8dd759 pr-pull: add review approval trailers on signoff 2020-06-29 12:53:03 +10: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
Issy Long
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
Jonathan Chang
ee9c335b51 pr-pull: preserve trailers when signing off commit 2020-06-10 19:27:05 +10:00
Mike McQuaid
4f75a77b08
Update deprecations
Add more deprecations, disable deprecations and remove disabled code.
2020-05-18 13:50:46 +01:00
EricFromCanada
9d6eb41fc5 cmd/dev-cmd: misc. usage and wording fixes 2020-04-19 13:31:54 -04:00
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
Bo Anderson
a920f74671 dev-cmd/pr-pull: fix strategy error 2020-04-13 12:54:06 +01:00
Jonathan Chang
c1ba9975b8 pr-pull: fetch artifacts with no-resume strategy 2020-04-13 19:59:22 +10: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
Jonathan Chang
cd56e8b03e pr-pull: update for gpg environment and secrets
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
2020-03-31 22:11:30 +11:00
Dawid Dziurla
ffc1b49026
pr-pull: allow to specify tap 2020-03-31 11:25:40 +02:00
Jonathan Chang
0574ba436b dev-cmd: add pr-pull command 2020-03-30 22:41:17 +11:00