Paul Melnikow
cfbd2c30df
SVG by default ( #3717 )
...
Make cleaner badge URLs by omitting the `.svg` extension.
Closes #2674
2019-07-24 12:57:39 -05:00
Caleb Cartwright
21a67b9511
chore: fix teamcity example badge listings ( #3759 )
...
Refs https://github.com/badges/shields/pull/3717#discussion_r305633151
2019-07-22 19:19:26 -05:00
Paul Melnikow
28b8836595
Unify the ESLint config ( #3743 )
...
Adding TypeScript to the frontend and a `.d.ts` file to `core` (see #3742 ) has multiplied out the different combinations of lint rules. ESLint has support for file-pattern-based overrides, which we've used in some places, but we've also maintained a separate eslintrc for `frontend/`.
This merges the config together, with the strategy of putting all the rules at the top level except where they conflict, and applying settings to exactly the files where they should apply.
This introduces a few new errors in the server but they are true positives – hoisting and lowercase class names – things we don't really need to be doing).
2019-07-22 15:06:38 -05:00
Pierre-Yves B
345c26f72d
Handle packages with no released versions in [PackagistVersion] ( #3746 )
2019-07-20 17:52:53 +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
3bce0b0eee
Capitalize Open Collective in badge listing ( #3734 )
2019-07-15 22:27:16 +01:00
Paul Melnikow
b493fbf70e
Add warnings alongside deprecated URL patterns ( #3715 )
...
Ref #3714
2019-07-14 19:14:19 -04:00
Paul Melnikow
6a2f384860
Update [Sonar] routes: metric first, and server in the query string ( #3696 )
...
This is the preferred way we’re handling server URLs: in the query string.
While we still have a mix of these, I’ve argued this way is better for these reasons:
1. It allows us to make the URLs a bit more standardized across services.
2. It makes the routes unambiguous.
3. It requires less code.
While it introduces a URL-encoding requirement on the parameter, I think these tradeoffs are worth it.
2019-07-14 17:06:14 -04:00
Caleb Cartwright
bd8b1ead59
tests: remove service tests for dropped static png routes ( #3712 )
2019-07-13 17:40:17 +01:00
Jan Škrášek
39d47a10b4
service/packagist: normalize stability suffixes ( #3699 )
2019-07-13 11:02:43 -05:00
Pierre-Yves B
9576ba8fc3
Split [Conda] tests ( #3711 )
2019-07-13 10:55:41 -05:00
Pierre-Yves B
102db63d46
Split [pypi] tests ( #3704 )
...
* Split [pypi] tests
* Changed filenames to match previous class names
2019-07-13 10:45:58 -05: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
Pierre-Yves B
5fb429a1ef
Split [Jetbrains] tests ( #3702 )
...
* Split [Jetbrains] tests
* Removed inaccessible/invalid tests
2019-07-12 22:59:21 +01:00
Pierre-Yves B
69862549a8
Split [LGTM] tests ( #3703 )
2019-07-12 22:22:56 +01:00
Pierre-Yves B
12db962e50
Split [Bitbucket] tests ( #3701 )
2019-07-12 21:09:29 +01: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
Pierre-Yves B
0a276f692f
Colorize [OSSLifecycle] badge ( #3695 )
...
* Updated examples
* Ran Prettier again
2019-07-11 23:28:21 +01:00
Paul Melnikow
ace66f457d
Refactor auth config checks within tests ( #3694 )
...
Ref #3652 #3393
2019-07-11 18:11:34 -04:00
Paul Melnikow
e2608a6570
Refactor GitHub OAuth credential handling ( #3693 )
...
Continues the work of #3652 .
2019-07-11 18:04:53 -04:00
Paul Melnikow
930a7219b0
Refactor [bitbucket] secrets ( #3691 )
...
Continues the work of #3652 .
Since Bitbucket is the only service to use two sets of credentials like this, it seems to make the most sense to build a very local solution.
2019-07-11 17:56:51 -04:00
Pierre-Yves B
7bdda90c0f
Documentation for OSS Lifecycle ( #3689 )
2019-07-11 21:23:57 +01:00
chris48s
38cdc0033f
adopt JSDoc, eslint-plugin-jsdoc ( #3645 )
...
eslint-plugin-jsdoc:
- install eslint-plugin-jsdoc
- config file
- fix lint/style errors
JSDoc:
- add JSDoc as a dev dependency
- get everything rendering nicely with JSDoc
- config, build command + ignores
2019-07-11 20:14:47 +01:00
Duane O'Brien
ad7023bcbe
Make the osslifecycle badge company-agnostic ( #3618 )
...
* Make the osslifecycle badge company-agnostic
Removes references to Netflix in the example titles of the osslifecycle badge
To make the badge more generic and easier to use by companies besides Netflix, the examples should remove Netflix from the title.
* Adding Netflix back in as a keyword, to make the badge easily searchable for people who remember it with the old title.
2019-07-11 19:08:43 +01:00
Chintalagiri Shashank
a9d0f0d323
Updates *GPL licenses to new SPDX ids and adds additional aliases, run service tests for [apm aur bowerlicense cocoapodslicense cpanlicense cran crates ctan dublicense eclipsemarketplacelicense githublicense hexpm npmlicense packagistlicense pypilicense] ( #3686 )
...
* Updated GPL, LGPL, and AGPL licence IDs to the SPEX 3.5 specification.
* Add GPL, LGPL, and AGPL aliases in the format in which they are used in Python classifiers.
2019-07-10 15:38:00 -05:00
Paul Melnikow
ce0ddf93fc
Inject secrets into the services ( #3652 )
...
This is a reworking of #3410 based on some feedback @calebcartwright left on that PR.
The goals of injecting the secrets are threefold:
1. Simplify testing
2. Be consistent with all of the other config (which is injected)
3. Encapsulate the sensitive auth-related code in one place so it can be studied and tested thoroughly
- Rather than add more code to BaseService to handle authorization logic, it delegates that to an AuthHelper class.
- When the server starts, it fetches the credentials from `config` and injects them into `BaseService.register()` which passes them to `invoke()`.
- In `invoke()` the service's auth configuration is checked (`static get auth()`, much like `static get route()`).
- If the auth config is present, an AuthHelper instance is created and attached to the new instance.
- Then within the service, the password, basic auth config, or bearer authentication can be accessed via e.g. `this.authHelper.basicAuth` and passed to `this._requestJson()` and friends.
- Everything is being done very explicitly, so it should be very clear where and how the configured secrets are being used.
- Testing different configurations of services can now be done by injecting the config into `invoke()` in `.spec` files instead of mocking global state in the service tests as was done before. See the new Jira spec files for a good example of this.
Ref #3393
2019-07-09 23:14:36 -04:00
Pierre-Yves B
8c4cb41b6d
New [Gerrit] badge ( #3667 )
2019-07-08 19:21:57 +01:00
Paul Melnikow
738d4c78bc
Ensure Joi is imported as @hapi/joi [cirrus] ( #3681 )
...
* Ensure Joi is imported as @hapi/joi [cirrus]
I noticed this import failed in #3675 . Maybe we've finally dropped the last copy of the old joi?
* Ignore dangerfile
2019-07-08 13:09:31 -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
aa135d370f
Auto-annotate live and mock tests ( #3661 )
...
Close #2555
2019-07-07 17:06:01 -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
9346548850
Refactor [BitbucketPullRequest] ( #3649 )
...
This encapsulates the fetch methods slightly better. Cherry-picked from #3410 , which needs to be reworked. This change should simplify dropping in the new auth method when that happens.
2019-07-05 17:40:43 -04:00
Paul Melnikow
c817e69775
Minor refactor in [azuredevopstests] ( #3651 )
...
Cherry-picked from #3410 ; should simplify reworking it.
2019-07-05 16:52:17 -04:00
Pierre-Yves B
77b4551716
Support other [Bugzilla] instances ( #3633 )
2019-07-04 22:57:51 +01:00
Caleb Cartwright
ea865436a1
add [Sonar] badges for various test metrics ( #3571 )
...
* feat: add SonarTests badges
* chore: remove commented out line
* refactor: update SonarTestsSummary to override transform
2019-07-01 15:46:51 -05: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
Caleb Cartwright
c312eae3e3
feat: add CodeFactor grade badge ( #3588 )
2019-06-22 09:13:34 -05: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
Caleb Cartwright
fe76a55e2c
tests: fix some jenkins service tests ( #3590 )
2019-06-20 08:59:55 -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
Caleb Cartwright
c9917c0176
feat: add scoped package support for jsdeliver npm hits ( #3570 )
2019-06-16 19:21:48 +01:00
Caleb Cartwright
6fb6cfaa40
tests: fix Azure DevOps build test ( #3569 )
2019-06-16 19:16:37 +01:00
Reece Dunham
0808a70d6d
Added [Cirrus] CI badge support ( #3502 )
...
* add base (needs tweaking)
* more work
* updates / more work
* fix minor thing
* handle
* add test
* Fix
* get rid of svg scraper
* Fixed Cirrus badge
Use JSON endpoint
* Rename cirrus.test.js to cirrus.tester.js
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update cirrus.service.js
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.tester.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.tester.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.tester.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.tester.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/cirrus/cirrus.service.js
Co-Authored-By: Fedor Korotkov <fedor.korotkov@gmail.com >
2019-06-15 14:30:47 -05:00
chris48s
703371dd78
fix [wordpress] /v redirect ( closes #3564 ) ( #3565 )
2019-06-13 16:48:38 +01:00
Caleb Cartwright
d37caea7aa
fix(BitbucketIssues): switch to v2 API from deprecated v1 API ( #3563 )
2019-06-12 17:27:17 -05:00
Caleb Cartwright
c80cc0c4fd
tests: fix EclipseMarketplaceLicense test ( #3542 )
2019-06-10 09:54:10 -05:00
Caleb Cartwright
15b8e62739
chore: fix hapi import in jitpackdownloads ( #3543 )
2019-06-10 09:39:25 -05:00
Caleb Cartwright
3fec21a028
restore [JitpackDownloads] badge ( #3533 )
...
* feat: restore JitpackDownloads badge
* chore: use interval name in jitpackdownloads
2019-06-09 16:44:44 -05:00
Pierre-Yves B
e9f24af878
EPL-2.0 license ( #3539 )
2019-06-09 18:14:01 +01:00