100 Commits

Author SHA1 Message Date
Anatoli Babenia
b5d4bc56fc Remove vale FIXME
https://github.com/errata-ai/vale/issues/818 is fixed a year ago
2025-06-16 21:39:39 +03:00
Mike McQuaid
3cb4ba8c26
Merge pull request #20101 from Homebrew/homebrew_actions_main
Use Homebrew/actions/*@main in Actions workflows
2025-06-13 13:33:52 +00:00
Mike McQuaid
be6cee3006
Use Homebrew/actions/*@main in Actions workflows
We've migrated Homebrew/actions to use the `main` branch now so let's
update these references.
2025-06-13 14:22:09 +01:00
Sam Ford
4a4f7a541a
Cask: Initialize yet more instance variables
I previously added some instance variables in `Cask::DSL` to its
`initialize` method but I missed some last time, so we still see
warnings like `The class Cask::DSL reached 8 shape variations,
instance variables accesses will be slower and memory usage increased.
It is recommended to define instance variables in a consistent order,
for instance by eagerly defining them all in the #initialize method.`

This initializes more instance variables in `Cask` classes to resolve
other situations where this warning may occur. I've been testing this
for a while and haven't see any warnings with these changes but
there's always a chance that there's still more work to be done.
2025-06-13 08:32:56 -04:00
Mike McQuaid
c1a2f94e01
dev-cmd/tap-new: fix root_url warning.
Ruby couldn't detect the `root_url` usage inside the ERB template.
Instead, use interpolation so it can for a fixed warning and more concise
syntax.
2025-05-21 13:19:11 +01:00
Alexander Bayandin
d60e72a055 dev-cmd/tap-new: use ERB templates instead of string interpolation 2025-04-28 23:57:44 +01:00
Alexander Bayandin
875702d51a dev-cmd/tap-new: support private repos 2025-04-28 18:07:19 +01:00
Mike McQuaid
7a57af242e
Cleanup some missing references to Homebrew Bundle.
Let's just call it `brew bundle` from now on as it's a normal command.

Also, fix a reference to "Homebrew Services" while we're here.
2025-03-19 09:51:39 +00:00
Bo Anderson
ccdf39ff4e
dev-cmd/tap-new: improve handling of multi-user setups 2024-12-10 05:24:10 +00:00
Mike McQuaid
8dc9e117f3
github/workflows: use macos-15 GitHub Actions runners.
- Let's use this instead of macOS 14/latest when possible.
- Keep around macOS 13 to ensure we're still testing x86_64.
2024-09-30 09:02:23 +01:00
Mike McQuaid
94416e82f0
Add new odeprecated, odisabled, remove disabled code.
Prepare the usual deprecation cycle for Homebrew 4.4.0.
2024-09-24 10:15:34 +01:00
Issy Long
3b28e90556
dev-cmd/tap-new: Bump to Sorbet typed: strict 2024-06-30 19:25:19 +01:00
Alexander Bayandin
b24997242b dev-cmd/tap-new: update cache key 2024-06-22 20:55:13 +01:00
Alexander Bayandin
e44e645cec dev-cmd/tap-new: add macos-14 2024-06-22 17:47:24 +01:00
Jason Karns
e40c3e24bd
Update Library/Homebrew/dev-cmd/tap-new.rb
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2024-05-09 08:30:03 -04:00
Jason Karns
1f1a8b6c11
Add Brewfile documentation to tap-new readme template
It would be helpful for taps to document how they are to be used with `Brewfile`.

Adding documentation for formulae installation to the generated tap readme would help ensure that new taps have this helpful documentation in their repos from the start.
2024-05-08 14:20:51 -04:00
Markus Reiter
480e264d9a
Lint Ruby docs. 2024-05-01 11:35:21 +02:00
Ruoyu Zhong
ea37708591
dev-cmd/tap-new: simplify 2024-04-19 23:14:35 +08:00
Ruoyu Zhong
82ad03fe28
dev-cmd/tap-new: various improvements
1. Update `actions/cache` to `v4`.
2. Unset GitHub Packages tokens if unused.
3. Quote shell variables.
2024-04-19 11:10:29 +08:00
Ruoyu Zhong
7e43853216
dev-cmd/tap-new: fix GitHub Packages user
It should be `github.repository_owner` rather than `github.actor`.
2024-04-19 11:09:58 +08:00
Ruoyu Zhong
adbe6edc84
dev-cmd/tap-new: use actions/upload-artifact@v4 2024-04-19 11:09:56 +08:00
Ruoyu Zhong
54a5690391
dev-cmd/tap-new: throw an error when tap is installed 2024-04-19 11:02:25 +08:00
Douglas Eichelberger
c50fb2dbd2 Remove redundant cli/parser requires 2024-03-29 18:53:07 -07:00
Douglas Eichelberger
e0519d736a Port Homebrew::DevCmd::TapNew 2024-03-22 09:33:28 -07:00
Jeroen Ooms
29cf01d442 Fix workflow for duplicate names 2023-12-16 14:36:12 +01:00
David C Hall
a3887482bb
Update tap-new.rb 2023-10-11 19:40:04 -07:00
David C Hall
8e65816335
Adding GHA permission for GitHub Packages
When a tap stores bottles in GitHub Packages, then the publish workflow requires the corresponding write permission.
2023-10-11 19:31:54 -07:00
Jameel Kaisar
2779b8ea7f Add missing permissions to actions publish
This commit adds the missing permissions to the
actions publish script. The 'contents: write'
permission is required to publish releases and
the 'pull-requests: write' permission is required
to close the pull request after the changes are committed.
2023-10-08 22:13:59 +00:00
Jameel Kaisar
61c030b08f Add close pr to actions publish
This commit enhances the publish actions script by
including a step to close the pull request after
committing the changes. The existing script deletes
the branch after pushing the commits, but lacks
the functionality to close the associated PR.
2023-10-08 18:08:56 +00:00
Bo Anderson
3b1c171184
Further split up Gemfile into groups 2023-09-27 17:33:44 +01:00
Mike McQuaid
67c118009b
Merge pull request #15308 from ZhongRuoyu/workflows-macos-13
workflows: run on `macos-13`
2023-04-25 15:10:37 +01:00
Douglas Eichelberger
24cf6076e8 brew style --fix 2023-04-24 20:42:39 -07:00
Ruoyu Zhong
6eaa0b2940
dev-cmd/tap-new: run brew test-bot on macos-13 2023-04-25 11:24:00 +08:00
Issy Long
09ce7a1da6
dev-cmd/tap-new: Use actions/cache@v3 as v1 is very deprecated
- We forgot about this workflow when we bumped the versions of our
  actual workflows as part of issue 14692.
2023-04-02 15:43:24 +01:00
Douglas Eichelberger
f4c9a96c70 Enable types in dev-cmd 2023-03-14 08:32:03 -07:00
Mike McQuaid
4aa765fafe
Cleanup and fix CI jobs
- use macOS 12 or Ubuntu 22.04 wherever appropriate
- don't append `(Linux)` to job names
- use specific Ubuntu 22.04 and Ubuntu 18.04 jobs

We may want to consider more Ubuntu 18.04 jobs in future, too.
2022-09-27 10:30:08 +01:00
fn ⌃ ⌥
5657e109af Apply suggestions from code review 2021-11-22 16:34:47 -08:00
fn ⌃ ⌥
56724da0b7 tap-new: add --github-packages switch 2021-11-19 12:35:50 -08:00
Nanda H Krishna
beed30f359
tap-new: fix invalid tap name message 2021-04-13 02:43:38 +05:30
Nanda H Krishna
f648b071ad
dev-cmd/tap-new: use Utils::Git.setup_gpg! 2021-04-02 17:21:26 +05:30
Mike McQuaid
fb1cf8f389
dev-cmd/tap-new: various tweaks.
- `--no-git` and `--branch` don't conflict as `--branch` is still used
  for the GitHub Actions branch even with `--no-git`
- fix some README markdown linting errors
- fix some YAML/GitHub Actions configuration linting errors
2021-03-01 13:40:08 +00:00
EricFromCanada
2e982cd2a2 use odie when commands encounter errors 2021-01-26 15:36:43 -05:00
Rylan Polster
d1f3e39b7b
Update commands to generate usage banner 2021-01-18 21:20:11 -05:00
Rylan Polster
84af07f152
Merge pull request #10288 from Rylan12/refactor-named-args
Add named_args DSL for commands
2021-01-14 21:43:54 -05:00
Mike McQuaid
591e9d6a52
dev-cmd/tap-new: fix output on newer versions of Git.
Otherwise this prints to `stderr` to ask for configuration of the branch
name:
https://github.com/Homebrew/brew/pull/10323/checks?check_run_id=1701105141#step:5:51
2021-01-14 10:47:44 +00:00
Rylan Polster
da811373d3 Add named_args DSL for commands 2021-01-13 17:09:42 -05:00
EricFromCanada
f784b7107f manpage: fixes for grammar 2020-11-16 07:56:50 -05:00
Markus Reiter
da9289eff0 Add more type signatures. 2020-11-13 12:26:36 +01:00
Rylan Polster
6dec175574 tap-new: don't need to checkout default branch 2020-10-15 16:56:53 -04:00
Rylan Polster
64d135d0a7 tap-new: add option for branch name 2020-10-15 15:00:35 -04:00