Dawid Dziurla
dd71f388c1
Merge pull request #8368 from SeekingMeaning/github/forked_repo_info
...
utils/github: add `forked_repo_info!`
2020-08-19 19:22:31 +02:00
Mike McQuaid
3a91c37e66
Fix RuboCop checks.
2020-08-19 17:12:32 +01:00
Seeker
ffcf06867a
Use rescue
instead of yield
2020-08-18 23:06:42 -07:00
Seeker
d0c7c4fd71
utils/github: add forked_repo_info!
2020-08-18 23:06:42 -07:00
Seeker
01dec9c6a8
utils/inreplace: add inreplace_pairs
2020-08-17 03:18:24 -07:00
jjergus
8fb6218d05
bump-formula-pr: fix regression when formula.tap is Nil
2020-08-14 11:42:50 -07:00
Seeker
8df618958d
bump-formula-pr: add warnings for patches and resources
2020-08-13 16:05:50 -07:00
Seeker
c983d85eea
bump-formula-pr: add determine_mirror
helper method
2020-08-13 16:05:09 -07:00
Seeker
671179d483
utils/github: add check_for_duplicate_pull_requests
...
Moved from dev-cmd/bump-formula-pr to utils/github
2020-08-11 19:26:03 -07:00
Seeker
36c7a3f27f
bump-formula-pr, utils/pypi: tweak log messages
2020-08-06 11:31:56 -07:00
Seeker
c066bc154c
bump-formula-pr: only check closed PRs for exact match
2020-08-05 12:52:01 -07:00
Seeker
0d6bec2e0a
bump-formula-pr: fix check_all_pull_requests
2020-08-05 12:07:41 -07:00
Seeker
bf16c7a78f
bump-formula-pr: open PR on default branch
2020-08-03 10:24:53 -07:00
Seeker
39f000c6ab
bump-formula-pr: restore formula unless read only run
2020-08-01 12:06:11 -07:00
Rylan Polster
59b9d80ebd
bump-formula-pr: add args to check_all_pull_requests
2020-08-01 01:25:59 -04:00
Seeker
1e47a9dde8
bump-formula-pr: fix missing keyword: args
error
2020-07-31 14:12:14 -07:00
Markus Reiter
0fdf8f2e61
Merge pull request #8144 from reitermarkus/cli-parser
...
Refactor `CLI::Parser`.
2020-07-31 20:43:54 +02:00
Markus Reiter
892803c0db
Pass args
correctly in brew bump-formula-pr
.
2020-07-31 19:34:22 +02:00
Seeker
dbe8453855
Merge pull request #8151 from SeekingMeaning/bump-formula-pr/branch-name
...
bump-formula-pr: add `bump-` prefix to branch
2020-07-31 10:29:02 -07:00
Rylan Polster
ec7be559f4
Refactor package name and url logic to PyPI module
2020-07-31 10:10:07 -04:00
Markus Reiter
d4c2ffd705
Refactor CLI::Parser
.
2020-07-31 15:07:17 +02:00
Seeker
0e4b258b56
bump-formula-pr: add bump-
prefix to branch
2020-07-31 00:26:11 -07:00
Rylan Polster
020ce249ee
bump-formula-pr: handle pypi url version changes
2020-07-30 19:05:43 -04:00
Rylan Polster
b3ae5405e9
bump-formula-pr: call update-python-resources
2020-07-29 09:50:16 -04:00
Markus Reiter
c0d42dd922
Remove --force
from global_options
.
2020-07-28 10:31:11 +02:00
vidusheeamoli
cff79348c9
dev-cmd/bump-formula-pr.rb: fix StringInreplaceExtension usage
2020-07-27 14:55:31 +01:00
Dawid Dziurla
1e805e04f9
bump-formula-pr: fix when no 'version' stanza in formula found
...
Without this fix, a command like:
`brew bump-formula-pr --version=0.3.3 --tag=v0.3.3 --revision=... test-formula-git-revision`
will fail because:
```
Error: no implicit conversion of nil into String
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/dev-cmd/bump-formula-pr.rb:281:in `escape'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/dev-cmd/bump-formula-pr.rb:281:in `bump_formula_pr'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:111:in `<main>'
```
Additionally, reject all `nil` replacement pairs by calling `compact`
method.
2020-07-26 10:26:39 +02:00
Seeker
e5cc33ae8a
bump-formula-pr: cleanup
2020-07-20 08:16:30 -07:00
Seeker
06d9152098
bump-formula-pr: check duplicate PRs as early as possible
2020-07-17 21:33:58 -07:00
Jonathan Chang
9c7f73a4c8
Merge pull request #8011 from SeekingMeaning/bump-duplicate
...
bump-formula-pr: restore formula if duplicate PR exists
2020-07-16 17:19:13 +10:00
Seeker
79d4b27c86
bump-formula-pr: restore formula if duplicate PR exists
2020-07-15 14:54:39 -07:00
Seeker
3ae2611365
bump-formula-pr: determine url/tag from version
2020-07-15 13:56:07 -07:00
Jonathan Chang
76709d82c5
Fix brew style
.
2020-07-13 23:24:14 +10:00
Dustin Rodrigues
f684a59fa5
bump-formula-pr: search for closed dupe PRs
2020-06-27 12:50:43 -04:00
Mike McQuaid
aa81982aba
brew style --fix
2020-06-02 09:49:23 +01:00
Zhiming Wang
83fa24741e
bump-formula-pr: fix forking error when formula is guessed from url
...
Regression introduced in f90612ccf0db03681dc6cbf6585cca5bc27b84b1 (#6718 ).
`tap_full_name` returned from `use_correct_linux_tap` has been
required (`GitHub.create_fork(tap_full_name)`), but it was never set when the
formula is guessed from args.url, resulting in an API request to
https://api.github.com/repos//forks which 404s (note the missing :owner/:repo),
and subsequently
Error: Unable to fork: Not Found!
2020-05-23 14:20:35 +08:00
EricFromCanada
9d6eb41fc5
cmd/dev-cmd: misc. usage and wording fixes
2020-04-19 13:31:54 -04:00
EricFromCanada
634e30994e
bump-formula-pr: use Homebrew::EnvConfig
2020-04-07 10:25:43 -04:00
Mike McQuaid
3381cbf5c7
Use Homebrew::EnvConfig.
2020-04-07 09:58:26 +01:00
Dawid Dziurla
e3b472380d
bump-formula-pr: remove trailing '=' from --mirror in help message
2020-03-23 10:59:27 +01:00
Issy Long
202cc04456
Merge pull request #7165 from dawidd6/bump-version-equal
...
bump-formula-pr: ignore --version argument if equal to detected version
2020-03-15 11:04:52 +00:00
Mike McQuaid
1e265247ca
rubocop: apply autofixes.
2020-03-13 21:16:18 +00:00
Dawid Dziurla
8db863ff7e
bump-formula-pr: ignore --version argument if equal to detected version
2020-03-13 17:09:58 +01:00
Mike McQuaid
e3ac94fc5d
dev-cmd: use more and cleanup new args APIs.
2020-03-05 09:40:15 +00:00
Mike McQuaid
10ba0d5a66
Merge pull request #7092 from dawidd6/bump-push-with-token
...
bump-formula-pr: return remote url with token in it
2020-03-02 18:42:57 +00:00
Dawid Dziurla
456f3b1923
bump-formula-pr: return remote url with token in it
2020-03-02 18:50:42 +01:00
EricFromCanada
b80af7837a
bump-formula-pr: add missing URL escapes
2020-02-28 13:02:55 -05:00
EricFromCanada
6f5cd0e7fe
bump-formula-pr: support add multiple mirror URLs with --mirror
2020-02-24 13:07:46 -05:00
EricFromCanada
a24477dad6
bump-formula-pr: fix output when listing guesses
2020-02-24 13:07:46 -05:00
EricFromCanada
7ec2ffda93
bump-formula-pr: warn when removing mirrors
2020-02-24 13:07:46 -05:00