Skip to content

add commit count expression for Git context - #730

Open
crazy-max wants to merge 2 commits into
docker:masterfrom
crazy-max:git-commit-count
Open

crazy-max wants to merge 2 commits into
docker:masterfrom
crazy-max:git-commit-count

Conversation

@crazy-max

@crazy-max crazy-max commented Sep 15, 2026

Copy link
Copy Markdown
Member

needs #729
follow-up docker/actions-toolkit#1315
fixes #218

Add {{commit_count}} to generate tags, labels, and annotations from the number of commits reachable from HEAD in the selected Git checkout. Requires context: git or context: git:<path>. Shallow checkouts count only available history; use fetch-depth: 0 for the complete count.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max
crazy-max requested a review from a team September 15, 2026 11:44
@crazy-max
crazy-max marked this pull request as ready for review September 15, 2026 11:44
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.

Number of revs

1 participant