Skip to main content

stats_participation

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

Overview

Namestats_participation
TypeResource
Idgithub.repos.stats_participation

Fields

The following fields are returned by SELECT queries:

The array order is oldest week (index 0) to most recent week.

NameDatatypeDescription
allarray
ownerarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_participation_statsselectowner, repoReturns the total commit counts for the owner and total commit counts in all. all is everyone combined, including the owner in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract owner from all.

The array order is oldest week (index 0) to most recent week.

The most recent week is seven days ago at UTC midnight to today at UTC midnight.

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 total commit counts for the owner and total commit counts in all. all is everyone combined, including the owner in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract owner from all.

The array order is oldest week (index 0) to most recent week.

The most recent week is seven days ago at UTC midnight to today at UTC midnight.

SELECT
all,
owner
FROM github.repos.stats_participation
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
;