PYTHON-5887 Add a pre-commit autoupdate action with a release cooldown - #136
Draft
aclark4life wants to merge 1 commit into
Draft
PYTHON-5887 Add a pre-commit autoupdate action with a release cooldown#136aclark4life wants to merge 1 commit into
aclark4life wants to merge 1 commit into
Conversation
GromNaN
reviewed
Sep 11, 2026
| permission-contents: write | ||
| permission-pull-requests: write | ||
| env: | ||
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" |
Collaborator
There was a problem hiding this comment.
This is now the default value. This env var can be removed.
https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Comment on lines
+7
to
+12
| app_id: | ||
| description: GitHub App ID for authenticated pushes. Required unless dry_run is true. | ||
| default: "" | ||
| private_key: | ||
| description: GitHub App private key for authenticated pushes. Required unless dry_run is true. | ||
| default: "" |
Collaborator
There was a problem hiding this comment.
Why do you need specific permissions? Isn't it simpler to use the permissions:
permissions:
contents: write
pull-requests: write
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.
PYTHON-5887
Adds a shared
pre-commit-autoupdateaction so driver repos stay current on hook versions instead of accumulating the kind of large one-off lint bump PYTHON-5858 needed.Changes in this PR
pre-commit-autoupdate/(new). Runspre-commit autoupdateon a schedule and opens a pull request with the hook revision changes, maintaining a single open PR rather than a new one each week.open-or-update-pr/(new).python/uv-lock-update/decide_pr_action.shalready implemented "open a new PR or refresh the open one on this branch" generically.python/uv-lock-update/(refactored).update_lock.shno longer shells out todecide_pr_action.sh. It writeschangedandbodystep outputs, andaction.ymlgates$/open-or-update-pronchanged == 'true'.Test Plan
test_apply_cooldown.shtest_diff_config.shtest_autoupdate.shtest_decide_pr_action.sh