Mike McQuaid
021468c8c0
bump-formula-pr: improve no formula output.
...
This means the help text will be output.
2019-03-20 11:33:11 +00:00
Mike McQuaid
fbaa0c35a6
bump-formula-pr: move auto-update to brew.sh
...
It’s always run anyway but this at least means Homebrew/brew and tap code is all up to date before we start querying any objects.
Fixes #5876 .
2019-03-20 11:06:45 +00:00
Mike McQuaid
e095da4d01
rubocop: enable Layout/EmptyLineAfterGuardClause.
2019-02-21 12:55:49 +00:00
Mike McQuaid
d64429a736
rubocop: enable Style/IfUnlessModifier.
2019-02-21 12:55:49 +00:00
Mike McQuaid
bbea109926
dev-cmd: remove --help headers and tweak docs.
2019-01-30 21:39:28 +00:00
Mike McQuaid
867b155479
Add missing conflicts to command options.
2019-01-29 19:39:41 +00:00
Mike McQuaid
737b84b54b
brew style --fix
fixes.
2018-11-02 17:29:23 +00:00
commitay
32b1f13bd0
bump-formula-pr: run audit by default
2018-10-30 13:22:36 +10:00
EricFromCanada
388781f6a7
dev-cmd/: remove colons from command specs.
...
These aren't needed when converting Parser-based help text to man page or Markdown formats.
Includes regenerated docs.
2018-10-19 13:12:55 -04:00
EricFromCanada
ddf057f3dd
dev-cmd/: edit help text and descriptions.
2018-10-19 13:12:11 -04:00
Alyssa Ross
864475e14f
bump-formula-pr: use GitHub error message info
...
This saves an API call, and is more accurate, because the repo API
doesn't actually say whether forking is enabled, but this error message
does.
To do this, the original GitHub error message had to be accessible on
the GitHub exceptions.
2018-10-11 16:39:29 +01:00
Alyssa Ross
23984273f3
bump-formula-pr: always use base if unforkable
2018-10-11 16:34:40 +01:00
Alyssa Ross
f4a82236b7
bump-formula-pr: add --no-fork
...
GitHub seems to be discouraging forking private repositories[0]:
> By default, new organizations are configured to disallow the forking
> of private repositories.
bump-formula-pr tries to create its pull requests from a fork, so it
can't be used for private taps set up in this way.
I've added a --no-fork option that will create PRs in the tap repo
itself, rather than in a fork, to accommodate this use case.
[0]: https://help.github.com/articles/allowing-people-to-fork-private-repositories-in-your-organization/
2018-10-11 13:23:56 +01:00
Gautham Goli
a03d2e0cd1
man: Correct option synopsis
2018-10-03 19:49:46 +05:30
Gautham Goli
7b0f27ca39
style: Fix style errors
2018-10-03 19:49:46 +05:30
Gautham Goli
f60582ca48
man: Remove [] from command synopsis
2018-10-03 19:49:45 +05:30
Gautham Goli
446b1cb9e3
man: Seperate global options into a section
2018-10-03 19:49:45 +05:30
Gautham Goli
e0e876cf37
man: Make command heading H3
2018-10-03 19:49:44 +05:30
Gautham Goli
4f58f2db99
man: Generate dev cmd manpages
2018-10-03 19:49:41 +05:30
Gautham Goli
b6c456b681
Extract out arg parsing method to <cmd>_args method
2018-10-03 19:19:04 +05:30
Markus Reiter
e9b9ea49a1
Update to RuboCop 0.59.1.
2018-09-17 03:45:59 +02:00
Christoph Blecker
5f18f0bb03
Determine remote_url using git config
2018-09-07 11:08:35 -07:00
Mike McQuaid
bcb1ec5499
Improve Homebrew/brew line length.
...
Use 124 max line length everywhere. Also, reduce tap max line length to
189 as Homebrew/homebrew-core has that as a maximum now. In future
Homebrew/homebrew-core will also be reduced to 124 maximum line length.
2018-09-02 16:15:09 +01:00
Chongyu Zhu
bd5b41ed94
Remove environment variables used by hub
.
...
As of #3870 , this is no longer needed.
2018-08-08 12:27:41 +08:00
ilovezfs
6563043c75
bump-formula-pr: don't unset --mirror= value
2018-06-12 18:09:10 -07:00
Gautham Goli
e21b7618a9
cli_parser: Rename @bump_args to args
2018-06-01 21:13:36 +05:30
Gautham Goli
f5e5a81a7f
Merge pull request #4146 from GauthamGoli/global-args
...
cli: Store parsed args in Homebrew.args and access @args everywhere else
2018-06-01 20:01:26 +05:30
Mike McQuaid
33cf882e34
bump-formula-pr: improve bad argument handling.
2018-05-31 19:53:12 +01:00
Gautham Goli
fba52e2f74
cli_parser: Store parsed args in Homebrew.args and access args everywhere else
2018-05-30 00:05:39 +05:30
Mike McQuaid
1c91c83eac
Merge branch 'master' into bot-comment
2018-05-21 17:16:19 +01:00
Mike McQuaid
c6f21f1dc1
bump-formula-pr: rename @args.
...
This shadows the Homebrew variable so let's rename it for now so that
`--force` works again.
2018-05-03 14:24:37 +01:00
Mike McQuaid
ea9c9494a6
bump-formula-pr: fix tag/revision argument.
...
Can't do `@args[hash_type]` if `hash_type` is `nil`.
2018-05-02 09:42:55 +01:00
Gautham Goli
07ee23d711
cli_parser: Refactor interface for depends, conflicts and add tests
2018-04-30 15:47:13 +05:30
Gautham Goli
26e77dd75c
new-formula: Don't fail CI instead comment on PR about audit violations
2018-04-30 10:59:20 +05:30
Gautham Goli
36c1ad9f64
cli_parser: Add depends, conflicts option constraints
2018-04-14 21:44:47 +05:30
Gautham Goli
20155c8df9
bump-formula-pr: Use Parser to parse args
2018-04-14 21:44:47 +05:30
Mike McQuaid
010d593a8d
bump-formula-pr: sleep for fork creation.
2018-04-08 15:37:16 -07:00
Gautham Goli
1e0f9fb835
bump-formula-pr: Replace hub with GH API calls to fork and open Pull request
2018-03-31 19:44:55 +05:30
EricFromCanada
1d2b4ed321
docs: add more missing option descriptions
...
and improve wording or formatting where necessary.
2018-02-01 16:06:17 -05:00
ilovezfs
ccbe4945ad
bump-formula-pr: improve version formula component regex.
2018-01-28 08:12:12 -08:00
ilovezfs
98e48a9da7
bump-formula-pr: regex escape urls in replacements.
2018-01-28 08:12:12 -08:00
ilovezfs
edd1c76d40
bump-formula-pr: detect download strategy from url.
...
Previously, CurlDownloadStrategy was hard coded.
2018-01-28 08:12:12 -08:00
ilovezfs
6460a34e65
bump-formula-pr: add Debian mirror handling.
2018-01-28 08:12:12 -08:00
ilovezfs
e46fbdd18d
bump-formula-pr: update GNU mirror handling.
...
homebrew/core now uses ftp.gnu.org/gnu for the primary url and
ftpmirror.gnu.org for the mirror.
2018-01-28 08:10:53 -08:00
ilovezfs
99bb068ca7
bump-formula-pr: improve formula name guessing.
2018-01-28 08:10:53 -08:00
ilovezfs
5a3555eeee
bump-formula-pr: only validate tar files.
2018-01-24 04:22:11 -08:00
ilovezfs
4a1a8b86ac
bump-formula-pr: use "resource" not "rsrc"
2018-01-24 03:51:23 -08:00
Mike McQuaid
cdeb0b1f23
bump-formula-pr: use popen_read :err option.
2017-12-14 16:44:25 +00:00
Mike McQuaid
1babfb679d
bump-formula-pr: improve error messages.
...
- Be clearer about how URLs/tags/revisions/versions are specified in
error messages.
- Give a better error message if `hub` isn't configured.
2017-12-11 09:02:41 +00:00
Laurent Cozic
fd8262ef7d
Mentions how hub needs to be configured
...
This is to address issue #3531
2017-12-10 11:08:15 +00:00