豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Extends github-actions updater to support wider CalVer format#14678

Merged
thavaahariharangit merged 5 commits intodependabot:mainfrom
lorengordon:fix/compact-calver
Apr 10, 2026
Merged

Extends github-actions updater to support wider CalVer format#14678
thavaahariharangit merged 5 commits intodependabot:mainfrom
lorengordon:fix/compact-calver

Conversation

@lorengordon
Copy link
Copy Markdown
Contributor

Fixes #14677

What are you trying to accomplish?

Currently Dependabot only recognizes refs as versions that prepend a 'v' or that use periods as separators. However, neither is required for CalVer formats. This PR updates the parser to allow CalVer formats of the form YYYYMMDD as recognized versions.

Checklist

  • I have run the complete test suite to ensure all tests and linters pass.
  • I have thoroughly tested my code changes to ensure they work as expected, including adding additional tests for new functionality.
  • I have written clear and descriptive commit messages.
  • I have provided a detailed description of the changes in the pull request, including the problem it addresses, how it fixes the problem, and any relevant details about the implementation.
  • I have ensured that the code is well-documented and easy to understand.

Copilot AI review requested due to automatic review settings April 9, 2026 22:28
@lorengordon lorengordon requested a review from a team as a code owner April 9, 2026 22:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates Dependabot’s git ref/version detection so GitHub Actions (and other git-based dependencies using GitCommitChecker) can treat compact CalVer tags like YYYYMMDD (e.g., 20260408) as version refs, enabling update detection for actions pinned to that format.

Changes:

  • Extend Dependabot::GitCommitChecker::VERSION_REGEX to match 8-digit compact CalVer tags.
  • Add specs verifying pinned_ref_looks_like_version? recognizes compact CalVer refs.
  • Add specs ensuring latest-version selection respects “precision” and does not mix compact CalVer with dotted CalVer tags.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
common/lib/dependabot/git_commit_checker.rb Adds an 8-digit alternative to the version-matching regex so compact CalVer tags are treated as versions.
common/spec/dependabot/git_commit_checker_spec.rb Adds coverage for compact CalVer pins and ensures version selection stays within the same precision/format.

Comment thread common/lib/dependabot/git_commit_checker.rb Outdated
@thavaahariharangit thavaahariharangit merged commit 4935ed6 into dependabot:main Apr 10, 2026
186 of 227 checks passed
@lorengordon lorengordon deleted the fix/compact-calver branch April 10, 2026 13:35
@lorengordon
Copy link
Copy Markdown
Contributor Author

Thank you @thavaahariharangit !

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.

GitHub Actions updater treats CalVer tag formats inconsistently (supports v20260408 and 2026.04.08, but not 20260408)

3 participants