Skip to content

Comments

Make CI keep pre-commit hooks up to date#1097

Merged
bwendling merged 1 commit intogoogle:mainfrom
hartwork:make-ci-autoupdate-precommit-hooks
Jun 13, 2023
Merged

Make CI keep pre-commit hooks up to date#1097
bwendling merged 1 commit intogoogle:mainfrom
hartwork:make-ci-autoupdate-precommit-hooks

Conversation

@hartwork
Copy link
Contributor

Was split off of #1096 as suggested at #1096 (comment) .

I'm using a 99% identical approach at multiple other places happily, e.g. pull request hartwork/git-delete-merged-branches#132 was created the same way, also git-big-picture/git-big-picture#318 and so on.

If you like this approach: after the merge, if you trigger workflow pre_commit_autoupdate manually it will create a pull request updating the isort pre-commit hook to v4.4.0 for us. If you don't, it will do that next Friday.

For the CI to be able to create pull requests, this setting on the repository is needed:

permissions

Let me know what you think 🍻

CC @bwendling @Spitfire1900

@hartwork hartwork changed the title pre-commit: Make CI keep pre-commit actions up to date Make CI keep pre-commit actions up to date May 26, 2023
@hartwork
Copy link
Contributor Author

@Spitfire1900 thanks! 🙏

@hartwork hartwork changed the title Make CI keep pre-commit actions up to date Make CI keep pre-commit hooks up to date May 27, 2023
@hartwork
Copy link
Contributor Author

@bwendling how do you feel about this?

@hartwork
Copy link
Contributor Author

@bwendling how do you feel about this, any concerns?

@bwendling
Copy link
Member

This is good. Thank you. I'm sorry for the late reply. I've been on leave this month for family stuff. I made sure the GitHub Actions permissions are what you specified above.

@bwendling bwendling merged commit ac9f610 into google:main Jun 13, 2023
@hartwork hartwork deleted the make-ci-autoupdate-precommit-hooks branch June 21, 2023 15:20
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