Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
626e861c
Commit
626e861c
authored
4 years ago
by
Seeker
Browse files
Options
Downloads
Patches
Plain Diff
bump-cask-pr: add `--online` switch for `brew cask audit`
parent
7d29054c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Library/Homebrew/dev-cmd/bump-cask-pr.rb
+8
-0
8 additions, 0 deletions
Library/Homebrew/dev-cmd/bump-cask-pr.rb
docs/Manpage.md
+2
-0
2 additions, 0 deletions
docs/Manpage.md
manpages/brew.1
+4
-0
4 additions, 0 deletions
manpages/brew.1
with
14 additions
and
0 deletions
Library/Homebrew/dev-cmd/bump-cask-pr.rb
+
8
−
0
View file @
626e861c
...
@@ -27,6 +27,8 @@ module Homebrew
...
@@ -27,6 +27,8 @@ module Homebrew
"to the cask file."
"to the cask file."
switch
"--no-audit"
,
switch
"--no-audit"
,
description:
"Don't run `brew cask audit` before opening the PR."
description:
"Don't run `brew cask audit` before opening the PR."
switch
"--online"
,
description:
"Run `brew cask audit --online` before opening the PR."
switch
"--no-style"
,
switch
"--no-style"
,
description:
"Don't run `brew cask style --fix` before opening the PR."
description:
"Don't run `brew cask style --fix` before opening the PR."
switch
"--no-browse"
,
switch
"--no-browse"
,
...
@@ -45,6 +47,7 @@ module Homebrew
...
@@ -45,6 +47,7 @@ module Homebrew
description:
"Ignore duplicate open PRs."
description:
"Ignore duplicate open PRs."
conflicts
"--dry-run"
,
"--write"
conflicts
"--dry-run"
,
"--write"
conflicts
"--no-audit"
,
"--online"
named
1
named
1
end
end
end
end
...
@@ -225,6 +228,8 @@ module Homebrew
...
@@ -225,6 +228,8 @@ module Homebrew
if
args
.
dry_run?
if
args
.
dry_run?
if
args
.
no_audit?
if
args
.
no_audit?
ohai
"Skipping `brew cask audit`"
ohai
"Skipping `brew cask audit`"
elsif
args
.
online?
ohai
"brew cask audit --online
#{
cask
.
sourcefile_path
.
basename
}
"
else
else
ohai
"brew cask audit
#{
cask
.
sourcefile_path
.
basename
}
"
ohai
"brew cask audit
#{
cask
.
sourcefile_path
.
basename
}
"
end
end
...
@@ -233,6 +238,9 @@ module Homebrew
...
@@ -233,6 +238,9 @@ module Homebrew
failed_audit
=
false
failed_audit
=
false
if
args
.
no_audit?
if
args
.
no_audit?
ohai
"Skipping `brew cask audit`"
ohai
"Skipping `brew cask audit`"
elsif
args
.
online?
system
HOMEBREW_BREW_FILE
,
"cask"
,
"audit"
,
"--online"
,
cask
.
sourcefile_path
failed_audit
=
!
$CHILD_STATUS
.
success?
else
else
system
HOMEBREW_BREW_FILE
,
"cask"
,
"audit"
,
cask
.
sourcefile_path
system
HOMEBREW_BREW_FILE
,
"cask"
,
"audit"
,
cask
.
sourcefile_path
failed_audit
=
!
$CHILD_STATUS
.
success?
failed_audit
=
!
$CHILD_STATUS
.
success?
...
...
This diff is collapsed.
Click to expand it.
docs/Manpage.md
+
2
−
0
View file @
626e861c
...
@@ -834,6 +834,8 @@ supplied by the user.
...
@@ -834,6 +834,8 @@ supplied by the user.
When passed with
`--write`
, generate a new commit after writing changes to the cask file.
When passed with
`--write`
, generate a new commit after writing changes to the cask file.
*
`--no-audit`
:
*
`--no-audit`
:
Don't run
`brew cask audit`
before opening the PR.
Don't run
`brew cask audit`
before opening the PR.
*
`--online`
:
Run
`brew cask audit --online`
before opening the PR.
*
`--no-style`
:
*
`--no-style`
:
Don't run
`brew cask style --fix`
before opening the PR.
Don't run
`brew cask style --fix`
before opening the PR.
*
`--no-browse`
:
*
`--no-browse`
:
...
...
This diff is collapsed.
Click to expand it.
manpages/brew.1
+
4
−
0
View file @
626e861c
...
@@ -1157,6 +1157,10 @@ When passed with \fB\-\-write\fR, generate a new commit after writing changes to
...
@@ -1157,6 +1157,10 @@ When passed with \fB\-\-write\fR, generate a new commit after writing changes to
Don\'t run \fBbrew cask audit\fR before opening the PR\.
Don\'t run \fBbrew cask audit\fR before opening the PR\.
.
.
.TP
.TP
\fB\-\-online\fR
Run \fBbrew cask audit \-\-online\fR before opening the PR\.
.
.TP
\fB\-\-no\-style\fR
\fB\-\-no\-style\fR
Don\'t run \fBbrew cask style \-\-fix\fR before opening the PR\.
Don\'t run \fBbrew cask style \-\-fix\fR before opening the PR\.
.
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment