Commit Trends Plugin
Commit Trends plugin displays the number of commits in the current or specified projects for a period of a time.
Parameters:
Table title: Data-collection parameters:
Parameter
Description
repositoryId
Optional parameter specifies the comma-separated IDs of those repositories to collect commits from. If missing, then data for all repositories of the current project are displayed.
projectId
Optional parameter that specifies the project where the repositories are displayed from. This is ignored if the repositoryId parameter is specified.
period
Optional parameter (defaults to ‘Past 7 days’). Specifies the chart/reporting period in terms of the number of last/past calendar days, weeks, months, quarters, or years. The period is always relative to the current date and can be either the current day/week/month/quarter/year (e.g., ‘This month’) or spans the specified number of days/weeks/months/quarters/years, either directly before (e.g., ‘Past 7 days’) or including (ending with) the current day/week/month/quarter/year (e.g., ‘Last 6 weeks’).
grouping
Optional parameter (defaults to ‘daily’). Specifies how the data is aggregated within the period. For example, when the ‘weekly’ grouping is selected, it means that issues created over any week during the period are added up, and this total number is displayed for the whole week.
Table title: Appearance parameters:
Parameter
Description
display
Optional parameter, defaults to ‘chart’. Specifies whether the chart image and the data table are displayed.
title
Optional parameter, the title text displayed above the chart/data-table.
tooltip
Optional parameter, the tooltip information displayed as a little tooltip when the mouse hovers over the chart image.
width
Optional, the width of the chart in pixels. Defaults to 400 pixels.
height
Optional, the height of the chart in pixels. Defaults to 200 pixels.
cssClass
Optional, CSS class to apply to the box that encloses the chart and the table.
cssStyle
Optional, CSS style to modify the appearance of the box that encloses the chart and the table.
Samples:
[{CommitTrends}]
Shows the commits of the past 30 days.
[{CommitTrends repositoryId='4,5' period='This year' grouping='Weekly' title='This years commits weekly' display='both'}]
Shows this year's commit in a chart and also a data-table.
Was this helpful?