github_repo_statistics 2.2.3 → 2.2.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ce292aaf165e89ec9736a466602c19d0dbd0a0c1c768065fccba7001ae9d482
|
4
|
+
data.tar.gz: e2c4e34f085c3c344c6eee343adca5fb332a7506fc84975527862a87af425fb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 315e2b1c3e4db9e2e2a8efb0ef8075ae4a0451883d6d1af16f1248c9f7a71b398d2a0babf275ac5513e06009fa6e8e9cae8f755684161dace81b1f9fcbd9483c
|
7
|
+
data.tar.gz: b13a36364a94436763ca06715aec7579ae4b01decc97a1af0f4044ef07f301d2f63765ad348396222bc617f0f7c960af9a3c291adbe59656179186b38c358759
|
@@ -13,6 +13,9 @@ class ForceMergeReport
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def report
|
16
|
+
require "json"
|
17
|
+
JSON.parse(ENV['BQ_CREDENTIALS'])
|
18
|
+
|
16
19
|
client = Octokit::Client.new(access_token: @token)
|
17
20
|
client.auto_paginate = true
|
18
21
|
|
@@ -85,10 +88,10 @@ class ForceMergeReport
|
|
85
88
|
if ENV['BQ_CREDENTIALS']
|
86
89
|
require "google/cloud/bigquery"
|
87
90
|
require "json"
|
88
|
-
|
91
|
+
creds = JSON.parse(ENV['BQ_CREDENTIALS'])
|
89
92
|
bigquery = Google::Cloud::Bigquery.new(
|
90
93
|
project_id: "hellofresh-android",
|
91
|
-
credentials:
|
94
|
+
credentials: creds
|
92
95
|
)
|
93
96
|
dataset = bigquery.dataset "github_data"
|
94
97
|
|