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
32b1f13b
Commit
32b1f13b
authored
6 years ago
by
commitay
Browse files
Options
Downloads
Patches
Plain Diff
bump-formula-pr: run audit by default
parent
2b3f8550
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
+12
-8
12 additions, 8 deletions
Library/Homebrew/dev-cmd/bump-formula-pr.rb
docs/Manpage.md
+2
-2
2 additions, 2 deletions
docs/Manpage.md
manpages/brew.1
+2
-2
2 additions, 2 deletions
manpages/brew.1
with
16 additions
and
12 deletions
Library/Homebrew/dev-cmd/bump-formula-pr.rb
+
12
−
8
View file @
32b1f13b
#: * `bump-formula-pr` [`--devel`] [`--dry-run` [`--write`]] [`--audit`|`--strict`] [`--no-browse] [`--mirror=`<URL>] [`--version=`<version>] [`--message=`<message>] (`--url=`<URL> `--sha256=`<SHA-256>|`--tag=`<tag> `--revision=`<revision>) [<formula>]:
#: * `bump-formula-pr` [`--devel`] [`--dry-run` [`--write`]] [`--
no-
audit`|`--strict`] [`--no-browse] [`--mirror=`<URL>] [`--version=`<version>] [`--message=`<message>] (`--url=`<URL> `--sha256=`<SHA-256>|`--tag=`<tag> `--revision=`<revision>) [<formula>]:
#: Create a pull request to update a formula with a new URL or a new tag.
#:
#: If a <URL> is specified, the <SHA-256> checksum of the new download should
...
...
@@ -16,7 +16,7 @@
#: If `--write` is passed along with `--dry-run`, perform a not-so-dry run by
#: making the expected file modifications but not taking any Git actions.
#:
#: If `--audit` is passed, run `brew audit` before opening the PR.
#: If `--
no-
audit` is passed,
don't
run `brew audit` before opening the PR.
#:
#: If `--strict` is passed, run `brew audit --strict` before opening the PR.
#:
...
...
@@ -74,8 +74,8 @@ module Homebrew
depends_on:
"--dry-run"
,
description:
"When passed along with `--dry-run`, perform a not-so-dry run by making the expected "
\
"file modifications but not taking any Git actions."
switch
"--audit"
,
description:
"
R
un `brew audit` before opening the PR."
switch
"--
no-
audit"
,
description:
"
Don't r
un `brew audit` before opening the PR."
switch
"--strict"
,
description:
"Run `brew audit --strict` before opening the PR."
switch
"--no-browse"
,
...
...
@@ -320,17 +320,21 @@ module Homebrew
end
if
args
.
dry_run?
if
args
.
strict?
if
args
.
no_audit?
ohai
"Skipping `brew audit`"
elsif
args
.
strict?
ohai
"brew audit --strict
#{
formula
.
path
.
basename
}
"
els
if
args
.
audit?
els
e
ohai
"brew audit
#{
formula
.
path
.
basename
}
"
end
else
failed_audit
=
false
if
args
.
strict?
if
args
.
no_audit?
ohai
"Skipping `brew audit`"
elsif
args
.
strict?
system
HOMEBREW_BREW_FILE
,
"audit"
,
"--strict"
,
formula
.
path
failed_audit
=
!
$CHILD_STATUS
.
success?
els
if
args
.
audit?
els
e
system
HOMEBREW_BREW_FILE
,
"audit"
,
formula
.
path
failed_audit
=
!
$CHILD_STATUS
.
success?
end
...
...
This diff is collapsed.
Click to expand it.
docs/Manpage.md
+
2
−
2
View file @
32b1f13b
...
...
@@ -759,8 +759,8 @@ formula already uses.
Print what would be done rather than doing it.
*
`--write`
:
When passed along with
`--dry-run`
, perform a not-so-dry run by making the expected file modifications but not taking any Git actions.
*
`--audit`
:
R
un
`brew audit`
before opening the PR.
*
`--
no-
audit`
:
Don't r
un
`brew audit`
before opening the PR.
*
`--strict`
:
Run
`brew audit --strict`
before opening the PR.
*
`--no-browse`
:
...
...
This diff is collapsed.
Click to expand it.
manpages/brew.1
+
2
−
2
View file @
32b1f13b
...
...
@@ -807,8 +807,8 @@ Print what would be done rather than doing it\.
When passed along with \fB\-\-dry\-run\fR, perform a not\-so\-dry run by making the expected file modifications but not taking any Git actions\.
.
.TP
\fB\-\-audit\fR
R
un \fBbrew audit\fR before opening the PR\.
\fB\-\-
no\-
audit\fR
Don\'t r
un \fBbrew audit\fR before opening the PR\.
.
.TP
\fB\-\-strict\fR
...
...
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