Douglas Eichelberger
c50fb2dbd2
Remove redundant cli/parser requires
2024-03-29 18:53:07 -07:00
Douglas Eichelberger
b37274de8b
Port Homebrew::DevCmd::PrPublish
2024-03-21 19:04:31 -07:00
Bo Anderson
d1cebef8c5
dev-cmd/pr-*: remove Oxford commas previously missed by linter
2024-03-10 22:31:44 +00:00
Bo Anderson
b42256d286
Deprecate, disable & delete code for Homebrew 4.2.0
2023-12-07 23:42:13 +00:00
Bo Anderson
f38fc62f90
dev-cmd: fix GitHub.workflow_dispatch_event kwarg calls
2023-10-27 22:37:22 +01:00
Mike McQuaid
7da934f7e2
Deprecate/disable/delete code.
...
The next release after this is merged will be 4.1.0.
Co-authored-by: Markus Reiter <me@reitermark.us>
2023-07-06 16:56:20 +01:00
Carlo Cabrera
bc6e88d45c
pr-publish: request a large runner for appropriately labelled PRs
...
This will make it easier to merge PRs that require the large runner to
upload the built bottles.
2023-06-27 20:06:35 +08:00
Douglas Eichelberger
24cf6076e8
brew style --fix
2023-04-24 20:42:39 -07:00
Carlo Cabrera
0314d73d67
dev-cmd/pr-*: remove --commit-bottles-to-pr-branch
...
This will be made the default by Homebrew/homebrew-core#127021 .
Additionally, branch protection rules will make it so that attempting to
push to master will fail, so we may as well not have to carry this flag
around.
2023-03-30 11:11:15 +08:00
Carlo Cabrera
df7331f638
Remove reference to nonexistent --clean
flag
2023-03-29 00:17:49 +08:00
Carlo Cabrera
b26d92ca9a
🐛 fixes
2023-03-28 23:07:03 +08:00
Carlo Cabrera
f0272b0944
dev-cmd/pr-pu{ll,blish}: handle PRs with an autosquash label
...
- request `autosquash` from the publish job in `pr-publish` if the PR is
labelled with `autosquash`
- show a warning in `pr-pull` if called without `--autosquash` on a PR
with the autosquash label.
2023-03-28 22:20:05 +08:00
Carlo Cabrera
76833dfe40
dev-cmd/pr-publish: support new workflow inputs
...
This allows us to use the new options without needing to use the GitHub
UI.
2023-03-28 22:14:39 +08:00
Carlo Cabrera
834e4c98fc
dev-cmd/pr-*: replace --no-autosquash
with --autosquash
...
We will now no longer be squashing commits by default, so it makes sense
to default to doing nothing but still autosquash commits when requested
with `--autosquash`.
2023-03-28 21:51:01 +08:00
Douglas Eichelberger
f4c9a96c70
Enable types in dev-cmd
2023-03-14 08:32:03 -07:00
Mike McQuaid
2d5eab2e1c
brew style --fix
2022-06-30 08:56:21 +01:00
Mike McQuaid
38e1b3d64b
Deprecations, disables, deletions for 3.4.0
2022-02-22 14:28:32 +00:00
Carlo Cabrera
6baf2aadb6
pr-{publish,pull}: autosquash by default
...
This allows dispatching the publish workflow via the GitHub UI to have
the exact same behaviour as doing `brew pr-publish`.
Closes Homebrew/homebrew-core#94704 .
2022-02-08 20:02:21 +08:00
Bo Anderson
6e37c67fba
Fix disabled args appearing in documentation.
2021-12-17 02:02:45 +00:00
Mike McQuaid
f65d525693
Deprecations/disables for 3.3.0/4.0.0.
...
Deprecate, disable and remove code for Homebrew 3.3.0 or 4.0.0
(whichever the next release ends up being).
2021-10-19 16:36:42 +01:00
Carlo Cabrera
ae788550f9
Show replacement command in odeprecated
...
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
2021-07-20 09:39:51 +08:00
Carlo Cabrera
080bd8bd4a
dev-cmd/pr-publish: pass --autosquash
by default
...
It's too easy to forget to, and the consequences of forgetting to pass
`--autosquash` are worse (i.e. almost always permanent) than forgetting
to pass `--no-autosquash` (i.e. just do `pr-publish --no-autosquash`
when your command fails).
See the discussion at Homebrew/homebrew-core#80717 .
2021-07-18 05:33:35 +08:00
Mike McQuaid
2bd71ffb30
/dev-cmd/pr-publish: tweak wording.
...
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2021-05-19 11:36:59 +01:00
WingLim
ddcb0519b6
feat: add branch param
2021-05-19 18:06:21 +08:00
EricFromCanada
2ed324ebc0
use backticks around suggested input, flags, and binaries
2021-01-26 16:19:47 -05:00
Rylan Polster
d1f3e39b7b
Update commands to generate usage banner
2021-01-18 21:20:11 -05:00
Dawid Dziurla
cf654da251
dev-cmd: indicate multiple named args in usage banner
2021-01-15 13:04:07 +01:00
Rylan Polster
da811373d3
Add named_args DSL for commands
2021-01-13 17:09:42 -05:00
Markus Reiter
da9289eff0
Add more type signatures.
2020-11-13 12:26:36 +01:00
Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
Jonathan Chang
8ac9608787
pr-publish: support dispatching with autosquash
2020-10-03 16:35:48 +10:00
Bo Anderson
fd24bcfc91
dev-cmd/pr-publish: fix --tap and --workflow
2020-08-02 00:56:29 +01:00
Markus Reiter
d4c2ffd705
Refactor CLI::Parser
.
2020-07-31 15:07:17 +02:00
Dawid Dziurla
7d7b80774e
pr-publish: use workflow_dispatch trigger
2020-07-28 12:06:16 +02:00
Dawid Dziurla
a0bf5c9ead
pr-publish: check if url repo equals provided tap arg
...
Co-authored-by: Jonathan Chang <jchang641@gmail.com>
2020-07-27 20:07:21 +02:00
Dawid Dziurla
77a1bc22d7
dev-cmd/pr-*: allow to run on other taps too
2020-07-02 22:47:55 +02:00
EricFromCanada
9d6eb41fc5
cmd/dev-cmd: misc. usage and wording fixes
2020-04-19 13:31:54 -04: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
Bo Anderson
7787dde7b7
dev-cmd/pr-publish: fix undefined method error on invalid input
2020-04-09 01:36:49 +01:00
Dawid Dziurla
c563b9c6a2
pr-publish: make it work on linux too
2020-03-31 10:16:48 +02:00
Jonathan Chang
7c752e487f
pr-publish: wording fixes
2020-03-24 12:31:58 +11:00
Jonathan Chang
86f245effb
dev-cmd: new pr-publish command
2020-03-22 13:35:15 +11:00