Repository navigation
Fix default branch, auth, error handling; pin deps; add CI - #16
Merged
Merged
Conversation
- Open PRs against the repository's default branch instead of guessing master/main (fixes #9) - Use Auth.Token instead of the deprecated login_or_token (fixes #13) - Create the GitHub client once, check branches with get_branch() instead of paginating all branches twice per package - Use GITHUB_WORKSPACE instead of a hard-coded repo path - Keep going when a single package fails, return to the start ref after each package and fail the run at the end - Only match whole package names and versions when updating platformio.ini, handle empty requirements, stable PR order - Drop the unused docker args, exec python from the entrypoint - Add unit tests for update_ini_file Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Pin Python dependencies; the action uses internal PlatformIO APIs that can break with any release - Dependabot: weekly, grouped pip updates, watch the Docker base image (Python patch updates only) - CI: run the tests and build the image with an import smoke test - Pin actions/publish-action to v0.4.0 by SHA instead of @main Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes
default_branchdes Repos geöffnet statt nurmaster/mainzu erratenGithub(auth=Auth.Token(...))statt deprecatedlogin_or_tokenpermissions:im Beispiel, Hinweis auf „Allow GitHub Actions to create and approve pull requests",GITHUB_TOKEN-PRs triggern keine CIplatformio.ini-Update matcht nur ganze Paketnamen/Versionen (ArduinoJson≠MyArduinoJson,^6.21.3≠^6.21.30), leere Requirements crashen nicht mehr, Datei wird nur bei Änderung geschriebenget_branch()statt zweimal alle Branches zu paginieren; stabile PR-ReihenfolgeGITHUB_WORKSPACEstatt hartkodiertem/github/workspace; unbenutzte Docker-argsentferntInfra
requirements.txtgepinnt (Code nutzt interne PlatformIO-APIs)actions/publish-actionper SHA auf v0.4.0 gepinnt statt@mainTest
update_ini_filenative+ ArduinoJson 6 → 7.4.3) mit lokalem Bare-Remote und gemockter GitHub-API: Branch gepusht, PR gegendefault_branch, Checkout danach wieder auf Start-Branch; Fehlerpfad (PR-Erstellung 403) → Fehler geloggt, Exit 1, Arbeitsbaum sauberCloses #9, closes #13, closes #3
🤖 Generated with Claude Code