chris48s
75ee413178
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
2019-07-29 21:42:03 +01:00
Pierre-Yves B
3dbe655611
Display one decimal for metrics smaller than 10 ( #3735 )
...
* Display one decimal for metrics smaller than 10
* Update test validators
* Run Prettier
* Update GitHub regexes
2019-07-17 20:00:29 +01:00
Paul Melnikow
65afff40d4
Fix up Redis config ( #3705 )
...
- Move to private
- Fix validation
- Don't log the URL
Ref #3332
2019-07-12 19:12:49 -04:00
Paul Melnikow
46ac947e9b
Refactor auth config checks in another test ( #3698 )
...
This is one more like #3694 .
Ref #3652 #3393
2019-07-11 20:00:20 -04:00
Paul Melnikow
e2608a6570
Refactor GitHub OAuth credential handling ( #3693 )
...
Continues the work of #3652 .
2019-07-11 18:04:53 -04:00
dependabot-preview[bot]
294aa1e1df
Build(deps-dev): bump eslint-plugin-import from 2.17.3 to 2.18.0; autofixes ( #3671 )
...
* Build(deps-dev): bump eslint-plugin-import from 2.17.3 to 2.18.0
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import ) from 2.17.3 to 2.18.0.
- [Release notes](https://github.com/benmosher/eslint-plugin-import/releases )
- [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md )
- [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.17.3...v2.18.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* Autofixes
2019-07-08 12:13:46 -04:00
Paul Melnikow
9b3db0774b
Deprecate shields-server.com domain ( #3666 )
...
Now that these s0.server.shields.io entries are set up through the main DNS on Cloudflare, we don't need the shields-server.com domain anymore. One less thing to maintain.
2019-07-07 16:37:42 -04:00
Paul Melnikow
9b6a51b61e
Convert a format to pattern in [githubpackagejson] ( #3660 )
...
This now relies on the order in which these are registered, though that seems okay. Exporting them as an array guarantees that.
Ref #3329
2019-07-07 12:41:30 -04:00
Paul Melnikow
0f19806c58
Bump nock from 11.0.0.beta-14 to 11.0.0.beta-20 ( #3616 )
...
* Bump icedfrisby and icedfrisby-nock
* Bump nock from 11.0.0.beta-14 to 11.0.0.beta-20
Hoping the changes from #3615 will fix the issues that appeared at https://github.com/badges/shields/pull/3552#issuecomment-504610847
* Fix apm tests
* Fix githubcommitstatus
2019-06-28 15:50:17 -04:00
dependabot-preview[bot]
95b6e48bff
Build(deps-dev): bump nock from 11.0.0-beta.14 to 11.0.0-beta.19 ( #3552 )
...
* Build(deps-dev): bump nock from 11.0.0-beta.14 to 11.0.0-beta.19
Bumps [nock](https://github.com/nock/nock ) from 11.0.0-beta.14 to 11.0.0-beta.19.
- [Release notes](https://github.com/nock/nock/releases )
- [Changelog](https://github.com/nock/nock/blob/beta/CHANGELOG.md )
- [Commits](https://github.com/nock/nock/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* Fix one test
* Update for breaking change in nock api
* Always use got without retries in tests
2019-06-21 10:45:34 -04:00
dependabot-preview[bot]
d732b937c9
Build(deps-dev): bump prettier from 1.17.1 to 1.18.2 ( #3580 )
...
* Build(deps-dev): bump prettier from 1.17.1 to 1.18.2
Bumps [prettier](https://github.com/prettier/prettier ) from 1.17.1 to 1.18.2.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/1.17.1...1.18.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* chore: prettier
2019-06-17 19:15:44 -05:00
chris48s
8621fe42d7
Upgrade Joi ( #3505 )
...
* upgrade joi
* find & replace ALL THE THINGS
* update related deps
2019-06-02 21:59:55 +01:00
chris48s
65dba94fa8
Stop calling variables "which"; affects [chocolatey codeclimate conda crates debug gem github mozillaobservatory nuget powershellgallery pub resharper vaadindirectory] ( #3495 )
...
* which --> variant
* which --> alias
* which --> format
* improve param names in codeclimate
* improve param names in github-issue-detail
* update github-issue-detail unit tests
2019-05-28 23:00:12 +01:00
Caleb Cartwright
37030b92a0
tests(GitHubReleaseDate): fix service tests ( #3477 )
2019-05-23 19:31:49 +01:00
Paul Melnikow
786bac21ce
Convert remaining uses of node-fetch to got ( #3417 )
2019-05-06 10:10:07 +01:00
Pierre-Yves B
0a0b5b3f03
Added support for branches in "commits since" GitHub badge ( #3411 )
2019-05-05 10:47:07 -04:00
Pierre-Yves B
9a869e24ba
Added link test expectations ( #3376 )
2019-04-29 18:52:58 +01:00
Paul Melnikow
a0492c5283
Remove unused callback-based error helpers ( #3371 )
2019-04-29 13:35:57 -04:00
chris48s
5f29f6a175
case-insentitive asset name compare in [githubdownloads] ( #3377 )
...
closes #3364
2019-04-29 15:05:27 +01:00
Pierre-Yves B
499fb8dbaf
Fixed color of GitHub forks badge ( #3366 )
2019-04-27 13:48:47 -04:00
Paul Melnikow
2215693557
Rewrite [GithubTag] ( #3360 )
...
Ref #2863
2019-04-25 11:23:16 -04:00
Paul Melnikow
f8aeb56129
Unify order of more services ( #3358 )
...
Ref #3353
2019-04-24 15:08:26 -04:00
Paul Melnikow
ca22d01606
Rewrite [GithubDownloads] ( #3351 )
...
For consistency with other download badges, I changed some formatting:
- **downloads | 24k total** -> **downloads | 24k**
- **downloads | 3k** -> **downloads@latest | 3k**
- **downloads | 3k v0.29.0** -> **downloads@v0.29 .0 | 3k**
Ref #2863
2019-04-22 22:55:31 -04:00
Paul Melnikow
f13326dddf
Rewrite [githubcommitssince]; also test [githubrelease] ( #3350 )
2019-04-22 18:54:58 -05:00
Paul Melnikow
b069dbbaad
Use route patterns in [snap-ci nsp gratipay githubmanifest codacy cauditor bithound] ( #3327 )
...
Ref #3329
2019-04-18 18:15:48 -05:00
Tesla_Ice_Zhang
e12e625141
Add pull request merge/open/closed badge ( #3295 )
2019-04-14 09:57:26 -05:00
Paul Melnikow
ab95e8415f
Rewrite [GitHubForks] ( #3299 )
2019-04-13 20:12:31 -04:00
Pierre-Yves B
25f8541e5b
JSON format modernisation and _shields_test removal ( #3272 )
...
* Modernised JSON format and removed _shields_test style
* Added logoWidth and labelColor fields to JSON response
* Reinstated and updated comment
* Extended expectBadge to accept Joi schemas for all fields
2019-04-07 18:57:55 +01:00
Denis Duliçi
48e454c63d
Fixed GitHub release downloads, run [GithubDownloads] ( #3256 )
...
* fixed github release downloads
* npm run prettier code push.
* master package-lock.json file
2019-04-03 17:28:48 -05:00
Caleb Cartwright
7f24e93671
refactor [GithubIssueDetail] ( #3259 )
...
* refactor(GithubIssueDetail): ported to new service model
* refactor(GithubIssueDetail): updates based on PR discussions
* refactor(GithubIssueDetail): minor updates and additional tests
* refactor(GithubIssueDetail): minor updates to render functions per PR disc.
2019-04-03 11:59:49 -05:00
Caleb Cartwright
4b81f824d9
refactor(GithubIssues) ( #3263 )
2019-04-03 10:26:03 -05:00
chris48s
96d416068c
rewrite Github Languages, split into [githubcodesize githublanguagecount githubtoplanguage] ( #3225 )
2019-03-25 20:54:58 -04:00
chris48s
4f5268aa0f
refactor [githubreleasedate] ( #3206 )
2019-03-18 17:36:17 -05:00
chris48s
6e203d2455
refactor [githubreposize] ( #3205 )
2019-03-16 12:43:52 -05:00
chris48s
2b29c226e0
refactor [githublastcommit] ( #3199 )
2019-03-13 00:17:39 -04:00
chris48s
9496b6d84c
refactor [githubsize] ( #3198 )
2019-03-12 18:51:46 +00:00
Paul Melnikow
3733de6232
Rewrite GitHub commit status ( #3186 )
...
* WIP
* Parse the error response
* Clarify
* Restore one test
* Add a schema
2019-03-10 18:43:37 -05:00
Paul Melnikow
3baf0a8037
Rewrite [GithubCommitActivity] ( #3183 )
2019-03-08 18:39:11 -06:00
Caleb Cartwright
c52ea44450
fix: GH followers example style ( #3158 )
2019-03-04 23:07:13 -05:00
Caleb Cartwright
33786fa891
refactor [GitHubFollowers] ( #3157 )
2019-03-04 22:49:55 -05:00
Caleb Cartwright
726830f067
Add ability to transform query params in redirct service, run [Endpoint GitHubReleaseRedirect SensioLabs VSO] ( #3125 )
...
* feat(redirector): added transformQueryParams to redirector
* refactor: renamed to transformPath in redirector
* Rename targetUrl to targetPath
Co-Authored-By: calebcartwright <calebcartwright@users.noreply.github.com >
* feat(redirector): handle param conflicts
2019-03-04 18:11:37 -06:00
Caleb Cartwright
f6e061f150
Refactor [GitHubWatchers] ( #3136 )
2019-03-02 22:19:11 +00:00
Paul Melnikow
97358c1399
Rewrite [GitHubStars] ( #3119 )
...
* Refactor [GithubStars]
* Add test of link array
2019-02-28 18:18:32 -06:00
Pierre-Yves B
1f29c22d3d
Migrated most service tests to use new expectBadge ( #3122 )
2019-02-28 21:43:23 +00:00
Paul Melnikow
fafb22efee
Move "good" badge helpers from lib/ to services/ ( #3101 )
...
This moves a few helpers from `lib/` to `services/`:
build-status.js
build-status.spec.js
color-formatters.js
color-formatters.spec.js
contributor-count.js
licenses.js
licenses.spec.js
php-version.js
php-version.spec.js
text-formatters.js
text-formatters.spec.js
version.js
version.spec.js
And one from `lib/` to `core/`:
unhandled-rejection.spec.js
The diff is long, but the changes are straightforward.
Ref #2832
2019-02-27 20:47:46 -05:00
Paul Melnikow
e4fe8c0c5f
Rewrite [GithubSearch] ( #3099 )
2019-02-25 15:24:41 -05:00
Paul Melnikow
9fa9785568
Rewrite [GithubRelease] ( #3098 )
2019-02-25 14:33:52 -05:00
Paul Melnikow
f831fba4d4
Rewrite [GitHubLicense] ( #3095 )
2019-02-24 16:04:24 -05:00
Paul Melnikow
4bd16f93e8
Sort imports and requires ( #3056 )
...
This will definitely save time, and ensure more uniformity.
It moves the `createServiceTester()` calls to a different place from where I'd like them, though I'm happy to have them checked by the linter.
Closes #2701
2019-02-21 22:14:40 -05:00
Paul Melnikow
33aefcfaf8
Minor cleanup related to colorB -> color ( #3066 )
...
As `color` is now the canonical, it makes sense to update some of these tests to say `colorB` instead.
Ref #3012
2019-02-20 23:34:22 -05:00