KEMBAR78
bump-pr: respect --write-only flag and skip git operations by gibfahn · Pull Request #20005 · Homebrew/brew · GitHub
Skip to content

Conversation

@gibfahn
Copy link
Contributor

@gibfahn gibfahn commented May 24, 2025

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

The flag used to work well, but at some point started to run more and
more git actions. We use this to update formula and casks in other
homebrew taps, and it works well except for this issue.

The flag used to work well, but at some point started to run more and
more git actions. We use this to update formula and casks in other
homebrew taps, and it works well except for this issue.
Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@MikeMcQuaid MikeMcQuaid enabled auto-merge May 26, 2025 07:42
@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue May 26, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 26, 2025
@bevanjkay bevanjkay added this pull request to the merge queue May 26, 2025
Merged via the queue into Homebrew:master with commit d416755 May 26, 2025
35 checks passed
@gibfahn gibfahn deleted the bump_write_only branch May 26, 2025 15:55
gibfahn added a commit to gibfahn/brew that referenced this pull request Oct 9, 2025
Homebrew#20005 fixed `--write-only` and broke `--write-only --commit` (my bad).
Homebrew#20809 fixed `--write-only --commit` and broke `--write-only`. This
hopefully fixes both.

From the help:

```
--write-only                 Make the expected file modifications without
                             taking any Git actions.
--commit                     When passed with --write-only, generate a
                             new commit after writing changes to the cask
                             file.
```

So if `--write-only` is passed without `--commit`, we should skip the
whole PR creation flow. But if `--write-only --commit` is passed, we
should generate the branch and commit but not the PR.

Refs: Homebrew#20005
Refs: Homebrew#20809
Refs: https://github.com/Homebrew/brew/pull/20818/files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants