Commit Graph
3140 Commits
Author SHA1 Message Date
Paul MelnikowandGitHub ace66f457d Refactor auth config checks within tests (#3694)
Ref #3652 #3393
2019-07-11 18:11:34 -04:00
Paul MelnikowandGitHub e2608a6570 Refactor GitHub OAuth credential handling (#3693)
Continues the work of #3652.
2019-07-11 18:04:53 -04:00
Paul MelnikowandGitHub 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
Paul MelnikowandGitHub b2e5aa9208 Cache raster redirects longer (#3690)
Haven't seen error reports on these, so let's cache these a bit longer to reduce our server load.
2019-07-11 16:57:21 -04:00
Pierre-Yves BandGitHub 7bdda90c0f Documentation for OSS Lifecycle (#3689) 2019-07-11 21:23:57 +01:00
chris48sandGitHub 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'BrienandPierre-Yves B 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 ShashankandCaleb Cartwright 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 MelnikowandGitHub 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
dependabot-preview[bot]andchris48s 3324a4a162 Build(deps-dev): bump @babel/plugin-proposal-object-rest-spread (#3670)
Bumps [@babel/plugin-proposal-object-rest-spread](https://github.com/babel/babel) from 7.4.4 to 7.5.1.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.4.4...v7.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-09 19:49:25 +01:00
dependabot-preview[bot]andchris48s ba560fe540 Build(deps-dev): bump danger from 8.0.0 to 9.0.3 (#3673)
Bumps [danger](https://github.com/danger/danger-js) from 8.0.0 to 9.0.3.
- [Release notes](https://github.com/danger/danger-js/releases)
- [Changelog](https://github.com/danger/danger-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/danger/danger-js/compare/8.0.0...9.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-09 19:41:27 +01:00
dependabot-preview[bot]andchris48s 96b7726148 Build(deps-dev): bump gatsby from 2.9.4 to 2.13.8 (#3680)
Bumps [gatsby](https://github.com/gatsbyjs/gatsby) from 2.9.4 to 2.13.8.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/compare/gatsby@2.9.4...gatsby@2.13.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-09 19:35:04 +01:00
dependabot-preview[bot]andCaleb Cartwright c08c28ebd9 Build(deps-dev): bump @babel/preset-env from 7.4.5 to 7.5.2 (#3682)
Bumps [@babel/preset-env](https://github.com/babel/babel) from 7.4.5 to 7.5.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.4.5...v7.5.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-09 04:56:09 -05:00
dependabot-preview[bot]andCaleb Cartwright c023ceda14 Build(deps-dev): bump styled-components from 4.3.1 to 4.3.2 (#3676)
Bumps [styled-components](https://github.com/styled-components/styled-components) from 4.3.1 to 4.3.2.
- [Release notes](https://github.com/styled-components/styled-components/releases)
- [Changelog](https://github.com/styled-components/styled-components/blob/master/CHANGELOG.md)
- [Commits](https://github.com/styled-components/styled-components/compare/v4.3.1...v4.3.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-08 21:12:56 -05:00
dependabot-preview[bot]andMarcin Mielnicki 29fc9161e2 Build(deps-dev): bump cypress from 3.3.1 to 3.3.2 (#3678)
Bumps [cypress](https://github.com/cypress-io/cypress) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Commits](https://github.com/cypress-io/cypress/compare/v3.3.1...v3.3.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-08 21:24:07 +02:00
Pierre-Yves BandGitHub 8c4cb41b6d New [Gerrit] badge (#3667) 2019-07-08 19:21:57 +01:00
Paul MelnikowandGitHub 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]andPaul Melnikow 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
dependabot-preview[bot]andPaul Melnikow a47d9a9db3 Build(deps-dev): bump eslint-plugin-promise from 4.1.1 to 4.2.1 (#3674)
Bumps [eslint-plugin-promise](https://github.com/xjamundx/eslint-plugin-promise) from 4.1.1 to 4.2.1.
- [Release notes](https://github.com/xjamundx/eslint-plugin-promise/releases)
- [Changelog](https://github.com/xjamundx/eslint-plugin-promise/blob/master/CHANGELOG.md)
- [Commits](https://github.com/xjamundx/eslint-plugin-promise/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-08 11:52:19 -04:00
dependabot-preview[bot]andPaul Melnikow e9521dd58f Build(deps-dev): bump babel-preset-gatsby from 0.2.0 to 0.2.1 (#3672)
Bumps babel-preset-gatsby from 0.2.0 to 0.2.1.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-08 11:45:30 -04:00
Paul MelnikowandGitHub aa135d370f Auto-annotate live and mock tests (#3661)
Close #2555
2019-07-07 17:06:01 -04:00
Paul MelnikowandGitHub 3bf97a6a12 Per node support policy, drop tests for Node 11 (#3665) 2019-07-07 16:59:27 -04:00
Paul MelnikowandGitHub 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 MelnikowandGitHub 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 MelnikowandGitHub eec904c262 Fix raster redirect and drop the legacy static .png route (#3659) 2019-07-07 11:49:21 -04:00
Paul MelnikowandGitHub 66c7f13e38 Drop gif + png, and redirect png to raster.shields.io (#3644)
1. Remove rasterization support from the server. This responsibility is delegated to a raster server which proxies the SVG badges and renders them.
2. When a raster server URL is configured, 301 redirect all .png badges to the identical URL on the raster server.
    `https://img.shields.io/npm/v/express.png?style=flat-square` ↪️`https://raster.shields.io/npm/v/express.png?style=flat-square`
3. For configured redirects, redirect to the canonical URL on the raster server.
    `https://img.shields.io/vso/build/totodem/8cf3ec0e-d0c2-4fcd-8206-ad204f254a96/2.png?style=flat-square`
    ↪️`https://img.shields.io/azure-devops/build/totodem/8cf3ec0e-d0c2-4fcd-8206-ad204f254a96/2.png?style=flat-square`
4. Redirect the "legacy badge old version" to the appropriate URL on the raster server.
5. When no raster server is configured (e.g. PRs), render an SVG containing **404 | raster badges not available** for all `.png` badges. (Note that the raster server can be self-hosted; however, this is deferred to a later PR.)
5. Drop support for jpg and gif which are very infrequently used (see #3112). Render an SVG containing **410 | jpg no longer available**.
7. ~~Remove raster dependencies.~~ Remove the raster cache (which is only used in the CLI, and therefore pointless).
8. Move the LRUCache code out of the npm package.
8. A wee bit of refactoring in `server.js`.

Ref #3112
Close #3631
2019-07-06 16:41:46 -04:00
Pierre-Yves BandGitHub c6ef885b75 Footer update (#3655)
* Reworded footer

* Added metrics link
2019-07-06 17:14:13 +01:00
Paul MelnikowandGitHub 093d9cd368 Minor refactor: expose custom promisify function from legacy request handler (#3650)
Cherry-picked from #3410; should simplify reworking it.
2019-07-05 21:26:05 -04:00
Paul MelnikowandGitHub 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 MelnikowandGitHub c817e69775 Minor refactor in [azuredevopstests] (#3651)
Cherry-picked from #3410; should simplify reworking it.
2019-07-05 16:52:17 -04:00
Paul MelnikowandGitHub 5d06503844 Update Zeit members list (#3646) 2019-07-05 14:51:57 -04:00
Paul MelnikowandGitHub f693ef019d Document raster server production hosting (#3643)
Ref #3631
2019-07-05 13:54:05 -04:00
DanialandGitHub 8f11291b98 Fix for-the-badge spacing, uppercase left, right instead of text[] variables (#3640) 2019-07-05 11:59:02 +12:00
Pierre-Yves BandGitHub 77b4551716 Support other [Bugzilla] instances (#3633) 2019-07-04 22:57:51 +01:00
Paul MelnikowandGitHub d3261be1db Docker: Don't installl Cypress (#3634)
Noticed this in the Docker Hub build log:
https://cloud.docker.com/u/shieldsio/repository/registry-1.docker.io/shieldsio/shields/builds/de14f15e-0f10-4842-9ad2-42b8558bc2ff

Ref #3558
2019-07-02 21:17:10 -04:00
chris48sandPaul Melnikow 0d3266a0ad JSDoc comments for service test runner (#3630) 2019-07-02 12:41:28 -04:00
dependabot-preview[bot]andPaul Melnikow ec17c4d67e Build(deps-dev): bump js-yaml-loader from 1.2.0 to 1.2.2 (#3628)
* Build(deps-dev): bump js-yaml-loader from 1.2.0 to 1.2.2

Bumps [js-yaml-loader](https://github.com/wwilsman/js-yaml-loader) from 1.2.0 to 1.2.2.
- [Release notes](https://github.com/wwilsman/js-yaml-loader/releases)
- [Commits](https://github.com/wwilsman/js-yaml-loader/compare/v1.2.0...v1.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* clarify how service defs are loaded
2019-07-01 18:39:31 -04:00
chris48sandPaul Melnikow f29da0abdd JSDoc comments for token pool (#3632) 2019-07-01 17:55:08 -04:00
Caleb CartwrightandGitHub 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
dependabot-preview[bot]andchris48s 0cf00d963d Build(deps-dev): bump gatsby-plugin-remove-trailing-slashes (#3629)
Bumps [gatsby-plugin-remove-trailing-slashes](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-remove-trailing-slashes) from 2.0.11 to 2.1.0.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-remove-trailing-slashes/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/commits/gatsby-plugin-remove-trailing-slashes@2.1.0/packages/gatsby-plugin-remove-trailing-slashes)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-01 19:47:22 +01:00
dependabot-preview[bot]andchris48s e20e1c5064 Build(deps-dev): bump gatsby-plugin-catch-links from 2.0.15 to 2.1.0 (#3626)
Bumps [gatsby-plugin-catch-links](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-catch-links) from 2.0.15 to 2.1.0.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-catch-links/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/commits/gatsby-plugin-catch-links@2.1.0/packages/gatsby-plugin-catch-links)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-01 19:26:27 +01:00
dependabot-preview[bot]andchris48s 8cba5b18a5 Build(deps-dev): bump react-modal from 3.8.1 to 3.8.2 (#3623)
Bumps [react-modal](https://github.com/reactjs/react-modal) from 3.8.1 to 3.8.2.
- [Release notes](https://github.com/reactjs/react-modal/releases)
- [Changelog](https://github.com/reactjs/react-modal/blob/master/CHANGELOG.md)
- [Commits](https://github.com/reactjs/react-modal/compare/v3.8.1...v3.8.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-01 19:18:17 +01:00
dependabot-preview[bot]andchris48s 412ecddfec Build(deps-dev): bump eslint-plugin-react-hooks from 1.6.0 to 1.6.1 (#3627)
Bumps [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/HEAD/packages/eslint-plugin-react-hooks)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-01 19:04:36 +01:00
dependabot-preview[bot]andchris48s 7aaf42ba1b Build(deps-dev): bump eslint-config-prettier from 5.0.0 to 6.0.0 (#3625)
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v5.0.0...v6.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-01 18:56:58 +01:00
dependabot-preview[bot]andchris48s 7e2726cd9e Build(deps-dev): bump concurrently from 4.1.0 to 4.1.1 (#3624)
Bumps [concurrently](https://github.com/kimmobrunfeldt/concurrently) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/kimmobrunfeldt/concurrently/releases)
- [Commits](https://github.com/kimmobrunfeldt/concurrently/compare/v4.1.0...v4.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-01 18:44:26 +01:00
dependabot-preview[bot]andchris48s 9f9e949f85 Build(deps-dev): bump eslint-plugin-react from 7.13.0 to 7.14.2 (#3621)
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.13.0 to 7.14.2.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.13.0...v7.14.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-01 18:37:53 +01:00
dependabot-preview[bot]andCaleb Cartwright acd3dedbb7 Build(deps-dev): bump eslint-plugin-sort-class-members (#3620)
Bumps [eslint-plugin-sort-class-members](https://github.com/bryanrsmith/eslint-plugin-sort-class-members) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/bryanrsmith/eslint-plugin-sort-class-members/releases)
- [Commits](https://github.com/bryanrsmith/eslint-plugin-sort-class-members/compare/v1.4.0...v1.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-01 12:26:08 -05:00
dependabot-preview[bot]andPaul Melnikow f71c47edcd Build(deps): bump simple-icons from 1.9.28 to 1.10.0 (#3622)
Bumps [simple-icons](https://github.com/simple-icons/simple-icons) from 1.9.28 to 1.10.0.
- [Release notes](https://github.com/simple-icons/simple-icons/releases)
- [Commits](https://github.com/simple-icons/simple-icons/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-01 11:39:20 -04:00
Paul MelnikowandGitHub 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
Paul MelnikowandGitHub 6c21d86194 Bump icedfrisby and icedfrisby-nock (#3615) 2019-06-28 14:04:03 -04:00