Skip to content

feat(gitcommit): support age filtering - #10240

Merged
olblak merged 4 commits into
updatecli:mainfrom
olblak:feat/gitcommit/cooldown
Sep 5, 2026
Merged

olblak merged 4 commits into
updatecli:mainfrom
olblak:feat/gitcommit/cooldown

Conversation

@olblak

@olblak olblak commented Sep 4, 2026

Copy link
Copy Markdown
Member

Add age filtering to git commit plugin
Similar to the other plugins that already support cooldown.

Here is an example of manifest

sources:
  from-scm-with-age:
    name: Get the latest commit settled for at least one hour from an SCM working directory
    kind: gitcommit
    scmid: git-repository
    spec:
      branch: main
      age:
        minimum: "1h"

Test

To test this pull request, you can run the following commands:

cd pkg/plugins/resources/gitcommit
go test
cd  pkg/plugins/utils/gitgeneric
go test

Additional Information

Checklist

  • I have updated the documentation via pull request in website repository.
  • I have tested this pull request manually with a custom Updatecli build and it works as expected.

Tradeoff

Potential improvement

Signed-off-by: Olblak <me@olblak.com>
@olblak olblak added enhancement New feature or request resource-gitcommit labels Sep 4, 2026
@olblak
olblak enabled auto-merge (squash) September 4, 2026 15:06
@mergify

mergify Bot commented Sep 4, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@olblak
olblak merged commit 63c1477 into updatecli:main Sep 5, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request resource-gitcommit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant