File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,10 @@ import { fileSync } from "tmp";
14
14
// 実行例
15
15
// GITHUB_TOKEN=... GOOGLE_APPLICATION_CREDENTIALS=/path/to/keyfile.json yarn --silent ts-node script/import-teams.ts
16
16
17
+ // どのgithub organizationsのデータを取得するか
18
+ const GITHUB_ORG_NAME = "hatena" ;
17
19
const GITHUB_GRAPHQL_ENDPOINT = "https://api.github.com/graphql" ;
20
+ // BigQueryのプロジェクトID
18
21
const GCP_PROJECT_ID = "pull-request-analysis-sample" ;
19
22
20
23
( async function main ( ) : Promise < void > {
@@ -92,7 +95,7 @@ async function fetchTeamsWithRepositories(graphqlClient: GraphQLClient): Promise
92
95
async function fetchAllTeamsByQuery ( graphqlClient : GraphQLClient ) : Promise < TeamNode [ ] > {
93
96
const query = gql `
94
97
query($after: String) {
95
- organization(login: "hatena ") {
98
+ organization(login: "${ GITHUB_ORG_NAME } ") {
96
99
teams(first: 10, after: $after) {
97
100
nodes {
98
101
name
You can’t perform that action at this time.
0 commit comments