1
0
mirror of https://github.com/badges/shields.git synced 2025-04-18 19:44:04 +03:00

Switch all shields.io links to https (#6935)

This commit is contained in:
Pierre-Yves B 2021-08-22 17:20:59 +01:00 committed by GitHub
parent 779c1ffaad
commit 8fd54b1b8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 16 additions and 16 deletions

View File

@ -73,7 +73,7 @@ This repo hosts:
[Make your own badges!][custom badges]
(Quick example: `https://img.shields.io/badge/left-right-f39f37`)
[custom badges]: http://shields.io/#your-badge
[custom badges]: https://shields.io/#your-badge
### Quickstart

View File

@ -4,7 +4,7 @@
"keywords": ["badge", "github", "svg", "status"],
"website": "https://shields.io/",
"repository": "https://github.com/badges/shields",
"logo": "http://shields.io/favicon.png",
"logo": "https://shields.io/favicon.png",
"env": {
"CYPRESS_INSTALL_BINARY": {
"description": "Disable the cypress binary installation",

View File

@ -21,7 +21,7 @@
"bugs": {
"url": "https://github.com/badges/shields/issues"
},
"homepage": "http://shields.io",
"homepage": "https://shields.io",
"bin": {
"badge": "lib/badge-cli.js"
},

View File

@ -87,7 +87,7 @@ describe('Influx metrics', function () {
})
it('should send metrics', async function () {
const scope = nock('http://shields-metrics.io/', {
const scope = nock('https://shields-metrics.io/', {
reqheaders: {
'Content-Type': 'application/x-www-form-urlencoded',
},
@ -101,7 +101,7 @@ describe('Influx metrics', function () {
.reply(200)
process.env.INSTANCE_ID = 'instance2'
influxMetrics = new InfluxMetrics(metricInstance, {
url: 'http://shields-metrics.io/metrics',
url: 'https://shields-metrics.io/metrics',
timeoutMillseconds: 100,
intervalSeconds: 0.001,
username: 'metrics-username',
@ -132,7 +132,7 @@ describe('Influx metrics', function () {
})
const influxMetrics = new InfluxMetrics(metricInstance, {
url: 'http://shields-metrics.io/metrics',
url: 'https://shields-metrics.io/metrics',
timeoutMillseconds: 50,
intervalSeconds: 0,
username: 'metrics-username',
@ -149,14 +149,14 @@ describe('Influx metrics', function () {
.and(
sinon.match.has(
'message',
'Cannot push metrics. Cause: RequestError: Nock: Disallowed net connect for "shields-metrics.io:80/metrics"'
'Cannot push metrics. Cause: RequestError: Nock: Disallowed net connect for "shields-metrics.io:443/metrics"'
)
)
)
})
it('should log error responses', async function () {
nock('http://shields-metrics.io/').persist().post('/metrics').reply(400)
nock('https://shields-metrics.io/').persist().post('/metrics').reply(400)
await influxMetrics.sendMetrics()
@ -166,7 +166,7 @@ describe('Influx metrics', function () {
.and(
sinon.match.has(
'message',
'Cannot push metrics. http://shields-metrics.io/metrics responded with status code 400'
'Cannot push metrics. https://shields-metrics.io/metrics responded with status code 400'
)
)
)

View File

@ -102,7 +102,7 @@ hosted on [Zeit Now][]. It's managed in the
Both the badge server and frontend are served from Heroku.
After merging a commit to master, heroku should create a staging deploy. Check this has deployed correctly in the `shields-staging` pipeline and review http://shields-staging.herokuapp.com/
After merging a commit to master, heroku should create a staging deploy. Check this has deployed correctly in the `shields-staging` pipeline and review https://shields-staging.herokuapp.com/
If we're happy with it, "promote to production". This will deploy what's on staging to the `shields-production-eu` and `shields-production-us` pieplines.

View File

@ -139,7 +139,7 @@ function StyleTable({ style }: { style: string }): JSX.Element {
<td>
<Badges
badges={badges}
baseUrl="http://img.shields.io"
baseUrl="https://img.shields.io"
style={style}
/>
</td>

View File

@ -3,7 +3,7 @@
"version": "0.0.0",
"description": "Shields.io frontend",
"private": true,
"homepage": "http://shields.io",
"homepage": "https://shields.io",
"license": "CC0-1.0",
"repository": {
"type": "git",

View File

@ -10,7 +10,7 @@
"image",
"shields.io"
],
"homepage": "http://shields.io",
"homepage": "https://shields.io",
"bugs": {
"url": "https://github.com/badges/shields/issues",
"email": "thaddee.tyl@gmail.com"

View File

@ -12,12 +12,12 @@ t.create('status of https://shields.io')
.expectBadge({ label: 'website', message: 'up', color: 'brightgreen' })
t.create('status of nonexistent domain')
.get('/website.json?url=http://shields.io.io')
.get('/website.json?url=https://shields.io.io')
.timeout(15000)
.expectBadge({ label: 'website', message: 'down', color: 'red' })
t.create('status when network is off')
.get('/website.json?url=http://shields.io')
.get('/website.json?url=https://shields.io')
.networkOff()
.expectBadge({ label: 'website', message: 'down', color: 'red' })

View File

@ -29,4 +29,4 @@ As you can see below, without increasing the footprint of these badges, I've tri
![Badge design](proportions.png)
This badge design corresponds to an old and now deprecated version which has since been replaced by beautiful and scalable SVG versions that can be found on [shields.io](http://shields.io)
This badge design corresponds to an old and now deprecated version which has since been replaced by beautiful and scalable SVG versions that can be found on [shields.io](https://shields.io)