Skip to content

Commit

Permalink
chore: merge main into prerelease branch (#2915)
Browse files Browse the repository at this point in the history
  • Loading branch information
k80bowman authored Jul 9, 2024
2 parents 26c5e0a + 0d504ec commit a44218a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Tests

on:
push
[push, workflow_dispatch]

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"debug": "4.3.4",
"edit-string": "^1.1.6",
"execa": "5.1.1",
"filesize": "^4.0.0",
"filesize": "^10.1.2",
"foreman": "^3.0.1",
"fs-extra": "7.0.1",
"github-url-to-object": "^4.0.4",
Expand Down
14 changes: 7 additions & 7 deletions packages/cli/src/commands/apps/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Command, flags} from '@heroku-cli/command'
import * as Heroku from '@heroku-cli/schema'
import * as util from 'util'
import * as _ from 'lodash'
const filesize = require('filesize')
import {filesize} from 'filesize'
const {countBy, snakeCase} = _

function formatDate(date: Date) {
Expand Down Expand Up @@ -61,7 +61,7 @@ function print(info: Heroku.App, addons: Heroku.AddOn[], collaborators: Heroku.C
if (info.app.archived_at) data['Archived At'] = formatDate(new Date(info.app.archived_at))
if (info.app.cron_finished_at) data['Cron Finished At'] = formatDate(new Date(info.app.cron_finished_at))
if (info.app.cron_next_run) data['Cron Next Run'] = formatDate(new Date(info.app.cron_next_run))
if (info.app.database_size) data['Database Size'] = filesize(info.app.database_size, {round: 0})
if (info.app.database_size) data['Database Size'] = filesize(info.app.database_size, {standard: 'jedec', round: 0})
if (info.app.create_status !== 'complete') data['Create Status'] = info.app.create_status
if (info.app.space) data.Space = info.app.space.name
if (info.app.space && info.app.internal_routing) data['Internal Routing'] = info.app.internal_routing
Expand All @@ -70,8 +70,8 @@ function print(info: Heroku.App, addons: Heroku.AddOn[], collaborators: Heroku.C
data['Auto Cert Mgmt'] = info.app.acm
data['Git URL'] = info.app.git_url
data['Web URL'] = info.app.web_url
data['Repo Size'] = filesize(info.app.repo_size, {round: 0})
data['Slug Size'] = filesize(info.app.slug_size, {round: 0})
data['Repo Size'] = filesize(info.app.repo_size, {standard: 'jedec', round: 0})
data['Slug Size'] = filesize(info.app.slug_size, {standard: 'jedec', round: 0})
data.Owner = info.app.owner.email
data.Region = info.app.region.name
data.Dynos = countBy(info.dynos, 'type')
Expand Down Expand Up @@ -152,14 +152,14 @@ repo_size=5000000
if (info.app.archived_at) print('archived_at', formatDate(new Date(info.app.archived_at)))
if (info.app.cron_finished_at) print('cron_finished_at', formatDate(new Date(info.app.cron_finished_at)))
if (info.app.cron_next_run) print('cron_next_run', formatDate(new Date(info.app.cron_next_run)))
if (info.app.database_size) print('database_size', filesize(info.app.database_size, {round: 0}))
if (info.app.database_size) print('database_size', filesize(info.app.database_size, {standard: 'jedec', round: 0}))
if (info.app.create_status !== 'complete') print('create_status', info.app.create_status)
if (info.pipeline_coupling) print('pipeline', `${info.pipeline_coupling.pipeline.name}:${info.pipeline_coupling.stage}`)

print('git_url', info.app.git_url)
print('web_url', info.app.web_url)
print('repo_size', filesize(info.app.repo_size, {round: 0}))
print('slug_size', filesize(info.app.slug_size, {round: 0}))
print('repo_size', filesize(info.app.repo_size, {standard: 'jedec', round: 0}))
print('slug_size', filesize(info.app.slug_size, {standard: 'jedec', round: 0}))
print('owner', info.app.owner.email)
print('region', info.app.region.name)
print('dynos', util.inspect(countBy(info.dynos, 'type')))
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9245,10 +9245,10 @@ __metadata:
languageName: node
linkType: hard

"filesize@npm:^4.0.0":
version: 4.0.0
resolution: "filesize@npm:4.0.0"
checksum: 712e4527240e40cf02d25007f2fe540b9f4b70f3fb57b25fa4eadf645ccfcc09d74f13228c6291ac02730af2ada181e430e416c4ab9ac6fef5a1fa7ec1ff9d1f
"filesize@npm:^10.1.2":
version: 10.1.2
resolution: "filesize@npm:10.1.2"
checksum: 584cd30415e27e19effd27da7178b7b95dbab065d7b954a5cd763318db55afc12f36077aeea3c22c94849d66d0c82ea48e644c66d339f224e8e928e666aa3e4a
languageName: node
linkType: hard

Expand Down Expand Up @@ -10634,7 +10634,7 @@ __metadata:
debug: 4.3.4
edit-string: ^1.1.6
execa: 5.1.1
filesize: ^4.0.0
filesize: ^10.1.2
foreman: ^3.0.1
fs-extra: 7.0.1
github-url-to-object: ^4.0.4
Expand Down

0 comments on commit a44218a

Please sign in to comment.