Browse Source

live-fns: (github) remove collaborators

Collaborators requires owner's token.
refactor-github
Amio 6 years ago
parent
commit
f009538725
  1. 1
      libs/index.md
  2. 4
      libs/live-fns/github.js

1
libs/index.md

@ -102,7 +102,6 @@ Available query params:
['open PRs', '/github/open-prs/micromatch/micromatch'],
['closed PRs', '/github/closed-prs/micromatch/micromatch'],
['merged PRs', '/github/merged-prs/micromatch/micromatch'],
['collaborators', '/github/collaborators/micromatch/micromatch'],
['contributors', '/github/contributors/micromatch/micromatch'],
['commits', '/github/commits/micromatch/micromatch'],
['branches', '/github/branches/micromatch/micromatch'],

4
libs/live-fns/github.js

@ -19,7 +19,6 @@ module.exports = async (topic, ...args) => {
case 'open-prs':
case 'closed-prs':
case 'merged-prs':
case 'collaborators':
case 'commits':
case 'branches':
case 'releases':
@ -142,9 +141,6 @@ const stats = async (topic, user, repo, ...args) => {
case 'merged-prs':
query = `pullRequests(states:[MERGED]) { totalCount }`
break
case 'collaborators':
query = `collaborators { totalCount }`
break
case 'commits':
query = `
branch: ref(qualifiedName: "${args[0] || 'master'}") {

Loading…
Cancel
Save