()
| 5 | const gql = require("graphql-tag") |
| 6 | |
| 7 | function getApolloClient() { |
| 8 | return new ApolloClient({ |
| 9 | link: new HttpLink({ |
| 10 | uri: "https://api.github.com/graphql", |
| 11 | fetch, |
| 12 | headers: { |
| 13 | Authorization: `bearer ${process.env.GITHUB_ACCESS_TOKEN}`, |
| 14 | }, |
| 15 | }), |
| 16 | cache: new InMemoryCache(), |
| 17 | }) |
| 18 | } |
| 19 | |
| 20 | module.exports = { |
| 21 | getGitHubTool: function ({ owner, name }) { |