Add BaseGraphqlService, support [github] V4 API (#3763)
* add base class for Graphql APIs * add GithubAuthV4Service + updates to GH token pool * update github forks to use GithubAuthV4Service * rename GithubAuthService to GithubAuthV3Service
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
const Joi = require('@hapi/joi')
|
||||
const countBy = require('lodash.countby')
|
||||
const { GithubAuthService } = require('./github-auth-service')
|
||||
const { GithubAuthV3Service } = require('./github-auth-service')
|
||||
const { fetchIssue } = require('./github-common-fetch')
|
||||
const { documentation, errorMessagesFor } = require('./github-helpers')
|
||||
|
||||
@@ -19,7 +19,7 @@ const schema = Joi.object({
|
||||
|
||||
const keywords = ['pullrequest', 'detail']
|
||||
|
||||
module.exports = class GithubPullRequestCheckState extends GithubAuthService {
|
||||
module.exports = class GithubPullRequestCheckState extends GithubAuthV3Service {
|
||||
static get category() {
|
||||
return 'build'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user