dev-cmd/dispatch-build-bottle: add --timeout flag

This commit is contained in:
Bo Anderson 2021-10-22 16:30:31 +01:00
parent 5ffe1a3abc
commit dc5edb14c3
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65
7 changed files with 15 additions and 0 deletions

View File

@ -198,6 +198,9 @@ module Homebrew
sig { returns(T.nilable(String)) }
def message; end
sig { returns(T.nilable(String)) }
def timeout; end
sig { returns(T.nilable(String)) }
def issue; end

View File

@ -17,6 +17,8 @@ module Homebrew
EOS
flag "--tap=",
description: "Target tap repository (default: `homebrew/core`)."
flag "--timeout=",
description: "Build timeout (in minutes, default: 60)."
flag "--issue=",
description: "If specified, post a comment to this issue number if the job fails."
flag "--macos=",
@ -81,6 +83,7 @@ module Homebrew
# Optional inputs
# These cannot be passed as nil to GitHub API
inputs[:timeout] = args.timeout if args.timeout
inputs[:issue] = args.issue if args.issue
inputs[:upload] = args.upload?.to_s if args.upload?
inputs[:wheezy] = args.linux_wheezy?.to_s if args.linux_wheezy?

View File

@ -782,6 +782,7 @@ _brew_dispatch_build_bottle() {
--macos
--quiet
--tap
--timeout
--upload
--verbose
--workflow

View File

@ -603,6 +603,7 @@ __fish_brew_complete_arg 'dispatch-build-bottle' -l linux-wheezy -d 'Use Debian
__fish_brew_complete_arg 'dispatch-build-bottle' -l macos -d 'Version of macOS the bottle should be built for'
__fish_brew_complete_arg 'dispatch-build-bottle' -l quiet -d 'Make some output more quiet'
__fish_brew_complete_arg 'dispatch-build-bottle' -l tap -d 'Target tap repository (default: `homebrew/core`)'
__fish_brew_complete_arg 'dispatch-build-bottle' -l timeout -d 'Build timeout (in minutes, default: 60)'
__fish_brew_complete_arg 'dispatch-build-bottle' -l upload -d 'Upload built bottles'
__fish_brew_complete_arg 'dispatch-build-bottle' -l verbose -d 'Make some output more verbose'
__fish_brew_complete_arg 'dispatch-build-bottle' -l workflow -d 'Dispatch specified workflow (default: `dispatch-build-bottle.yml`)'

View File

@ -738,6 +738,7 @@ _brew_dispatch_build_bottle() {
'(--linux --linux-self-hosted)--macos[Version of macOS the bottle should be built for]' \
'--quiet[Make some output more quiet]' \
'--tap[Target tap repository (default: `homebrew/core`)]' \
'--timeout[Build timeout (in minutes, default: 60)]' \
'--upload[Upload built bottles]' \
'--verbose[Make some output more verbose]' \
'--workflow[Dispatch specified workflow (default: `dispatch-build-bottle.yml`)]' \

View File

@ -1095,6 +1095,8 @@ Build bottles for these formulae with GitHub Actions.
* `--tap`:
Target tap repository (default: `homebrew/core`).
* `--timeout`:
Build timeout (in minutes, default: 60).
* `--issue`:
If specified, post a comment to this issue number if the job fails.
* `--macos`:

View File

@ -1563,6 +1563,10 @@ Build bottles for these formulae with GitHub Actions\.
Target tap repository (default: \fBhomebrew/core\fR)\.
.
.TP
\fB\-\-timeout\fR
Build timeout (in minutes, default: 60)\.
.
.TP
\fB\-\-issue\fR
If specified, post a comment to this issue number if the job fails\.
.