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:
@@ -4,7 +4,7 @@ const moment = require('moment')
|
||||
const Joi = require('@hapi/joi')
|
||||
const { age } = require('../color-formatters')
|
||||
const { formatDate } = require('../text-formatters')
|
||||
const { GithubAuthService } = require('./github-auth-service')
|
||||
const { GithubAuthV3Service } = require('./github-auth-service')
|
||||
const { documentation, errorMessagesFor } = require('./github-helpers')
|
||||
|
||||
const schema = Joi.alternatives(
|
||||
@@ -20,7 +20,7 @@ const schema = Joi.alternatives(
|
||||
.min(1)
|
||||
)
|
||||
|
||||
module.exports = class GithubReleaseDate extends GithubAuthService {
|
||||
module.exports = class GithubReleaseDate extends GithubAuthV3Service {
|
||||
static get category() {
|
||||
return 'activity'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user