Skip to main content

stats_commit_activity

Creates, updates, deletes, gets or lists a stats_commit_activity resource.

Overview

Namestats_commit_activity
TypeResource
Idgithub.repos.stats_commit_activity

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
daysarray
totalinteger
weekinteger

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_commit_activity_statsselectowner, repoReturns the last year of commit activity grouped by week. The days array is a group of commits per day, starting on Sunday.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ownerstringThe account owner of the repository. The name is not case sensitive.
repostringThe name of the repository without the .git extension. The name is not case sensitive.

SELECT examples

Returns the last year of commit activity grouped by week. The days array is a group of commits per day, starting on Sunday.

SELECT
days,
total,
week
FROM github.repos.stats_commit_activity
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
;