chore(ci): Remove duplication checkout#879
Conversation
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe workflow configuration for the pre-commit checks was updated to remove a redundant checkout step. The process now uses a single checkout action with Changes
Suggested reviewers
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Pull Request Overview
This PR removes duplicate checkout actions from the pre-commit workflow to address an error encountered on forks where a branch or tag could not be found.
- Removed an extra checkout block to avoid redundancy.
- Adjusted the checkout configuration to use the pull request’s head SHA and added an ssh-key to trigger autofix commits.
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/pre-commit.yaml(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (5)
- GitHub Check: 🧪 Tests / pytest@🐍3.9@macos-14
- GitHub Check: 🧪 Tests / pytest@🐍3.9@macos-13
- GitHub Check: 🧪 Tests / pytest@🐍3.13@macos-13
- GitHub Check: 🧪 Tests / pytest@🐍3.12@windows-2025
- GitHub Check: 🧪 Tests / pytest@🐍3.10@windows-2025
|
This PR is included in version 1.99.1 🎉 |
Description of your changes
Follow-up to #878
It also fixes
Error: A branch or tag with the name 'add-graph-hook' could not be foundfor forkshttps://github.com/antonbabenko/pre-commit-terraform/actions/runs/14795718154/job/41542245011?pr=589