feat: Automate formula updates from copsctl releases#2
Merged
Conversation
release-pr can now be triggered via repository_dispatch (copsctl-release) from the copsctl release workflow. The version is the only input; the four checksums are resolved automatically from the release checksums.txt. The opened PR enables auto-merge (squash). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
mochlast
added a commit
that referenced
this pull request
Jun 16, 2026
feat: Automate formula updates from copsctl releases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Was
Macht
release-pr.ymlzum Listener für den copsctl-Release-Prozess und automatisiert den Formel-Bump:repository_dispatch(copsctl-release) zusätzlich zum bestehendenworkflow_dispatch. copsctl sendet das Event nach erfolgreichem Release (siehe ci: trigger homebrew-tap formula update on release copsctl#108).versionals Input beim manuellen Lauf — die vier SHAs werden automatisch auschecksums.txtdes Releases aufgelöst (kein manuelles Eintragen mehr). Abbruch, falls eine Checksum fehlt (schützt vor halb-publizierten Releases).gh pr merge --auto --squash.Der bestehende
sed-Mechanismus zum Patchen der Formel bleibt erhalten; die SHA-Berechnung wurde lokal gegen v0.20.0 verifiziert (identische Werte).Voraussetzungen (einmalig)
main: dieinstall-Checks austest.yml(macos + ubuntu) als Required Status Checks setzen, damit Auto-Merge erst bei grünem CI mergt.HOMEBREW_TAP_TOKEN(PAT/App,contents: write+pull-requests: write): wird fürcreate-pull-requestgenutzt, damit der PR dietest.yml-Checks auslöst (der Default-GITHUB_TOKENunterdrückt rekursive Workflow-Trigger → Auto-Merge bekäme sonst nie grünes CI). Fällt ohne Secret aufGITHUB_TOKENzurück (PR wird geöffnet, aber ohne Auto-CI).Hinweis
Nach dem Merge dieses PRs kann der Workflow live getestet werden:
gh workflow run release-pr.yml --repo conplementAG/homebrew-tap -f version=0.20.0→ erzeugt den ersten automatischen Bump auf v0.20.0.