Skip to content

chore(ci): add Dependabot cooldown for pre-commit hooks (PTFM-24090) [skip ci]#78

Merged
heni-nechi merged 2 commits into
mainfrom
chore/PTFM-24090-precommit-cooldown
May 19, 2026
Merged

chore(ci): add Dependabot cooldown for pre-commit hooks (PTFM-24090) [skip ci]#78
heni-nechi merged 2 commits into
mainfrom
chore/PTFM-24090-precommit-cooldown

Conversation

@heni-nechi
Copy link
Copy Markdown
Contributor

@heni-nechi heni-nechi commented May 15, 2026

Summary

Adds package-ecosystem: "pre-commit" with cooldown: default-days: 7 to .github/dependabot.yml.

Why

Without a cooldown, Dependabot opens PRs for pre-commit hook updates immediately on release. A 7-day minimum age gives time for hooks to stabilise and reduces noise from yanked or broken releases.

Jira

PTFM-24090

…[skip ci]

Adds Dependabot pre-commit ecosystem with a 7-day cooldown to slow down
hook version updates and reduce noise from unstable releases.

Ref: https://kpler.atlassian.net/browse/PTFM-24090

[skip ci]
@heni-nechi heni-nechi requested a review from a team as a code owner May 15, 2026 10:03
@heni-nechi heni-nechi added security Security hardening automated PR opened by an automated script labels May 15, 2026
…ig (PTFM-24090)

Extends the Dependabot pre-commit configuration added in the previous commit:

- SHA-pin all pre-commit hook revs (with version tag as inline comment)
  so Dependabot can keep them up-to-date via the # vX.Y.Z marker.
- Add minor-and-patch grouping to batch minor/patch hook updates into one PR.
- Add dependencies label and cooldown comment for consistency.
- Remove the cron-update-pre-commit-hooks workflow (now superseded by Dependabot).

Validated on Kpler/platform-demo-api — Dependabot detected the config and
opened a SHA-update PR within minutes of merge.

Ref: https://kpler.atlassian.net/browse/PTFM-24090
@heni-nechi heni-nechi merged commit a727b5b into main May 19, 2026
3 checks passed
@heni-nechi heni-nechi deleted the chore/PTFM-24090-precommit-cooldown branch May 19, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated PR opened by an automated script security Security hardening

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants