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
e686a392
Commit
e686a392
authored
4 years ago
by
Rylan Polster
Browse files
Options
Downloads
Patches
Plain Diff
bump-formula-pr: add message to check resources
parent
227da3aa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Library/Homebrew/dev-cmd/bump-formula-pr.rb
+13
-2
13 additions, 2 deletions
Library/Homebrew/dev-cmd/bump-formula-pr.rb
Library/Homebrew/utils/pypi.rb
+3
-0
3 additions, 0 deletions
Library/Homebrew/utils/pypi.rb
with
16 additions
and
2 deletions
Library/Homebrew/dev-cmd/bump-formula-pr.rb
+
13
−
2
View file @
e686a392
...
...
@@ -330,11 +330,22 @@ module Homebrew
end
unless
args
.
dry_run?
PyPI
.
update_python_resources!
formula
,
new_formula_version
,
silent:
args
.
quiet?
,
ignore_non_pypi_packages:
true
resources_checked
=
PyPI
.
update_python_resources!
formula
,
new_formula_version
,
silent:
args
.
quiet?
,
ignore_non_pypi_packages:
true
end
run_audit
(
formula
,
alias_rename
,
old_contents
,
args:
args
)
pr_message
=
"Created with `brew bump-formula-pr`."
if
resources_checked
.
nil?
&&
formula
.
resources
.
present?
&&
formula
.
resources
.
any?
{
|
resource
|
resource
.
name
!=
"homebrew-virtualenv"
}
pr_message
+=
<<~
EOS
`resource` blocks may require updates.
EOS
end
pr_info
=
{
sourcefile_path:
formula
.
path
,
old_contents:
old_contents
,
...
...
@@ -345,7 +356,7 @@ module Homebrew
previous_branch:
previous_branch
,
tap:
formula
.
tap
,
tap_full_name:
tap_full_name
,
pr_message:
"Created with `brew bump-formula-pr`."
,
pr_message:
pr_message
,
}
GitHub
.
create_bump_pr
(
pr_info
,
args:
args
)
end
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/utils/pypi.rb
+
3
−
0
View file @
e686a392
...
...
@@ -56,6 +56,7 @@ module PyPI
[
json
[
"info"
][
"name"
],
sdist
[
"url"
],
sdist
[
"digests"
][
"sha256"
]]
end
# Return true if resources were checked (even if no change)
def
update_python_resources!
(
formula
,
version
=
nil
,
print_only:
false
,
silent:
false
,
ignore_non_pypi_packages:
false
)
...
...
@@ -160,5 +161,7 @@ module PyPI
end
s
.
sub!
inreplace_regex
,
new_resource_blocks
end
true
end
end
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