stats_commit_activity
Creates, updates, deletes, gets or lists a stats_commit_activity resource.
Overview
| Name | stats_commit_activity |
| Type | Resource |
| Id | github.repos.stats_commit_activity |
Fields
The following fields are returned by SELECT queries:
- get_commit_activity_stats
Response
| Name | Datatype | Description |
|---|---|---|
days | array | |
total | integer | |
week | integer |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_commit_activity_stats | select | owner, repo | Returns 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.
| Name | Datatype | Description |
|---|---|---|
owner | string | The account owner of the repository. The name is not case sensitive. |
repo | string | The name of the repository without the .git extension. The name is not case sensitive. |
SELECT examples
- get_commit_activity_stats
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
;