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
7d29054c
Commit
7d29054c
authored
4 years ago
by
Seeker
Browse files
Options
Downloads
Patches
Plain Diff
bump-formula-pr: add `--online` switch for `brew audit`
parent
adb9922e
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-formula-pr.rb
+10
-4
10 additions, 4 deletions
Library/Homebrew/dev-cmd/bump-formula-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
16 additions
and
4 deletions
Library/Homebrew/dev-cmd/bump-formula-pr.rb
+
10
−
4
View file @
7d29054c
...
...
@@ -42,6 +42,8 @@ module Homebrew
description:
"Don't run `brew audit` before opening the PR."
switch
"--strict"
,
description:
"Run `brew audit --strict` before opening the PR."
switch
"--online"
,
description:
"Run `brew audit --online` before opening the PR."
switch
"--no-browse"
,
description:
"Print the pull request URL instead of opening in a browser."
switch
"--no-fork"
,
...
...
@@ -71,6 +73,7 @@ module Homebrew
conflicts
"--dry-run"
,
"--write"
conflicts
"--no-audit"
,
"--strict"
conflicts
"--no-audit"
,
"--online"
conflicts
"--url"
,
"--tag"
max_named
1
end
...
...
@@ -440,11 +443,14 @@ module Homebrew
end
def
run_audit
(
formula
,
alias_rename
,
old_contents
,
args
:)
audit_args
=
[]
audit_args
<<
"--strict"
if
args
.
strict?
audit_args
<<
"--online"
if
args
.
online?
if
args
.
dry_run?
if
args
.
no_audit?
ohai
"Skipping `brew audit`"
elsif
a
rgs
.
stric
t?
ohai
"brew audit
--strict
#{
formula
.
path
.
basename
}
"
elsif
a
udit_args
.
presen
t?
ohai
"brew audit
#{
audit_args
.
join
(
" "
)
}
#{
formula
.
path
.
basename
}
"
else
ohai
"brew audit
#{
formula
.
path
.
basename
}
"
end
...
...
@@ -454,8 +460,8 @@ module Homebrew
failed_audit
=
false
if
args
.
no_audit?
ohai
"Skipping `brew audit`"
elsif
a
rgs
.
stric
t?
system
HOMEBREW_BREW_FILE
,
"audit"
,
"--strict"
,
formula
.
path
elsif
a
udit_args
.
presen
t?
system
HOMEBREW_BREW_FILE
,
"audit"
,
*
audit_args
,
formula
.
path
failed_audit
=
!
$CHILD_STATUS
.
success?
else
system
HOMEBREW_BREW_FILE
,
"audit"
,
formula
.
path
...
...
This diff is collapsed.
Click to expand it.
docs/Manpage.md
+
2
−
0
View file @
7d29054c
...
...
@@ -880,6 +880,8 @@ nor vice versa. It must use whichever style specification the formula already us
Don't run
`brew audit`
before opening the PR.
*
`--strict`
:
Run
`brew audit --strict`
before opening the PR.
*
`--online`
:
Run
`brew audit --online`
before opening the PR.
*
`--no-browse`
:
Print the pull request URL instead of opening in a browser.
*
`--no-fork`
:
...
...
This diff is collapsed.
Click to expand it.
manpages/brew.1
+
4
−
0
View file @
7d29054c
...
...
@@ -1224,6 +1224,10 @@ Don\'t run \fBbrew audit\fR before opening the PR\.
Run \fBbrew audit \-\-strict\fR before opening the PR\.
.
.TP
\fB\-\-online\fR
Run \fBbrew audit \-\-online\fR before opening the PR\.
.
.TP
\fB\-\-no\-browse\fR
Print the pull request URL instead of opening in a browser\.
.
...
...
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