(github-badge) simplify schemes

pull/291/head
Amio 2019-06-21 22:38:12 +08:00
rodzic c1b693e6d9
commit 1c28ca7a0f
1 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -60,13 +60,13 @@ export const handlers: Handlers = {
'/github/:topic<issues|open-issues|closed-issues>/:owner/:repo': repoStats,
'/github/:topic<label-issues>/:owner/:repo/:label/:states?<open|closed>': repoStats,
'/github/:topic<commits|last-commit>/:owner/:repo/:ref?': repoStats,
'/github/:topic<release>/:owner/:repo/:channel?': release,
'/github/:topic<dt|assets-dl>/:owner/:repo/:scope?': downloads, // `dt` is deprecated
'/github/:topic<status>/:owner/:repo/:ref/:context+': status,
'/github/:topic<status>/:owner/:repo/:ref?': status,
'/github/:topic<contributors>/:owner/:repo': contributors,
'/github/:topic<dependents-repo>/:owner/:repo': dependents('REPOSITORY'),
'/github/:topic<dependents-pkg>/:owner/:repo': dependents('PACKAGE'),
'/github/release/:owner/:repo/:channel?': release,
'/github/status/:owner/:repo/:ref/:context+': status,
'/github/status/:owner/:repo/:ref?': status,
'/github/contributors/:owner/:repo': contributors,
'/github/dependents-repo/:owner/:repo': dependents('REPOSITORY'),
'/github/dependents-pkg/:owner/:repo': dependents('PACKAGE'),
}
const pickGithubToken = () => {