Last active
August 29, 2015 13:59
-
-
Save pborreli/10560895 to your computer and use it in GitHub Desktop.
Anyone know how I can run some analytics on GitHub repos? Looking to count # of PR’s merged/closed by me this month
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
COUNT(payload_pull_request_number) as counter, payload_pull_request_merged as merged | |
FROM [githubarchive:github.timeline] | |
WHERE type="PullRequestEvent" | |
AND actor = 'parkr' | |
AND payload_action = 'closed' | |
AND repository_name = 'jekyll' | |
AND PARSE_UTC_USEC(created_at) >= PARSE_UTC_USEC('2014-04-01 00:00:00') | |
GROUP BY merged; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
counter | merged | |
---|---|---|
5 | false | |
16 | true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://bigquery.cloud.google.com/