stats_punch_cards
Creates, updates, deletes, gets or lists a stats_punch_cards resource.
Overview
| Name | stats_punch_cards |
| Type | Resource |
| Id | github.repos.stats_punch_cards |
Fields
The following fields are returned by SELECT queries:
- get_punch_card_stats
For example, [2, 14, 25] indicates that there were 25 total commits, during the 2:00pm hour on Tuesdays. All times are based on the time zone of individual commits.
| Name | Datatype | Description |
|---|
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_punch_card_stats | select | owner, repo | Each array contains the day number, hour number, and number of commits: * 0-6: Sunday - Saturday* 0-23: Hour of day* Number of commits For example, [2, 14, 25] indicates that there were 25 total commits, during the 2:00pm hour on Tuesdays. All times are based on the time zone of individual commits. |
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_punch_card_stats
Each array contains the day number, hour number, and number of commits:
* 0-6: Sunday - Saturday
* 0-23: Hour of day
* Number of commits
For example, [2, 14, 25] indicates that there were 25 total commits, during the 2:00pm hour on Tuesdays. All times are based on the time zone of individual commits.
SELECT
*
FROM github.repos.stats_punch_cards
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
;