alexstormwood/Commits Within Time

A helper action that returns true if commits are detected on a repository within a supplied timeframe.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit May 2, 2026
License
GPL 3.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: alexstormwood/commitswithintime@42a9ed3d95b888e05cf77960e09392768ccc0e23 # v1.1.12

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
secondsHow many seconds back you'd like to check from the workflow's current time.no0
minutesHow many minutes back you'd like to check from the workflow's current time.no0
hoursHow many hours back you'd like to check from the workflow's current time.yes24
daysHow many days back you'd like to check from the workflow's current time.no0
monthsHow many months back you'd like to check from the workflow's current time.no0
yearsHow many years back you'd like to check from the workflow's current time.no0
usernamesToIgnoreCommits authored or committed by usernames listed here will be ignored in the check.no{"ignoredUsernamesList": ["ExampleBlockedUsername1","ExampleBlockedUsername2"]}
emailAddressesToIgnoreCommits authored or committed by email addresses listed here will be ignored in the check.no{"ignoredEmailAddressesList": ["exampleIgnoredEmail@test.com","exampleIgnoredEmail@email.com"]}
usernamesToFocusCommits authored or committed by usernames listed here will be the ONLY commits considered in the check.no{"allowedUsernamesList": []}
emailAddressesToFocusCommits authored or committed by email addresses listed here will be the ONLY commits considered in the check.no{"allowedEmailAddressesList": []}
includeGithubActorIf set to true, commits by the user who triggered this workflow will be included in the check. Default is true.notrue
includeActionsUserIf set to true, commits by the 'actions-user' Github Actions account will be included in the check. Default is false.nofalse
exportToFileSet to true if you want the result of this Action to be stored as a JSON file in your repository's Artifact section.nofalse
namedescription
has-new-commits-within-timeTrue or false, depending on if commits have been detected with a timestamp within the specified timeframe.
number-of-commits-within-timeWhole number of commits detected that are within the specified timeframe.
total-commitsWhole number of commits detected on the repository/branch overall, even the ones not within the specified timeframe.