Skip to content

Add pre-commit hook to validate dependabot.yml - #14107

Open
jbampton wants to merge 1 commit into
apache:mainfrom
jbampton:validate-dependabot
Open

Add pre-commit hook to validate dependabot.yml#14107
jbampton wants to merge 1 commit into
apache:mainfrom
jbampton:validate-dependabot

Conversation

@jbampton

@jbampton jbampton commented Sep 9, 2026

Copy link
Copy Markdown
Member

https://check-jsonschema.readthedocs.io/en/stable/precommit_usage.html#check-dependabot

python-jsonschema/check-jsonschema@12e6394

Description

This PR closes #14088

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

Ran:

  • pre-commit run --all-files
  • prek run -a

How did you try to break this feature and the system with this change?

Copilot AI lite review requested due to automatic review settings September 9, 2026 23:41
@codecov

codecov Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 19.78%. Comparing base (036493f) to head (65a49a1).

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #14107      +/-   ##
============================================
- Coverage     19.79%   19.78%   -0.01%     
+ Complexity    20015    20014       -1     
============================================
  Files          6371     6371              
  Lines        575954   575954              
  Branches      70521    70521              
============================================
- Hits         113997   113980      -17     
- Misses       449530   449547      +17     
  Partials      12427    12427              
Flag Coverage Δ
uitests 3.52% <ø> (ø)
unittests 21.06% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Pull request overview

Adds a pre-commit hook to validate .github/dependabot.yml using check-jsonschema, ensuring Dependabot configuration changes are caught early in local workflows and CI.

Changes:

  • Adds python-jsonschema/check-jsonschema to pre-commit repos.
  • Enables the check-dependabot hook scoped to the Dependabot config file.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .pre-commit-config.yaml
hooks:
- id: check-dependabot
name: validate dependabot.yml
description: ensures the dependabot config file is valid

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Comment thread .pre-commit-config.yaml
- id: check-dependabot
name: validate dependabot.yml
description: ensures the dependabot config file is valid
files: ^\.github/dependabot\.yml$

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one makes sense

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.

[CI] Replace check-dependabot hook with more robust option

3 participants