@kud/gh-cockpit 0.4.26 → 0.4.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -4
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { useState, useEffect } from 'react';
|
|
|
6
6
|
import { useInput, Box, Text } from 'ink';
|
|
7
7
|
import { useTabs, Tabs, useListCursor, colors, ScrollView } from '@kud/ink-ui';
|
|
8
8
|
import { fetchHealth, fetchPrComments } from '@kud/gh';
|
|
9
|
+
import { sizeOf, filesOf } from '@kud/gh-workflow';
|
|
9
10
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
10
11
|
import { readFileSync, mkdirSync, writeFileSync } from 'fs';
|
|
11
12
|
import { homedir } from 'os';
|
|
@@ -97,13 +98,10 @@ var fetchBody = async (kind, repo, number) => {
|
|
|
97
98
|
return null;
|
|
98
99
|
}
|
|
99
100
|
};
|
|
100
|
-
|
|
101
|
-
// src/views/pr-summary.ts
|
|
102
101
|
var DIVIDER = " \xB7 ";
|
|
103
|
-
var sizeOf = (data) => data.additions === void 0 || data.deletions === void 0 ? null : `+${data.additions} -${data.deletions}`;
|
|
104
102
|
var summaryOf = (item, data, cols) => {
|
|
105
103
|
const size = data ? sizeOf(data) : null;
|
|
106
|
-
const files = data
|
|
104
|
+
const files = data ? filesOf(data) : null;
|
|
107
105
|
const base = data?.baseRefName;
|
|
108
106
|
const author = item.author ? item.author : null;
|
|
109
107
|
const opened = item.age ? `opened ${item.age} ago` : null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kud/gh-cockpit",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.28",
|
|
4
4
|
"description": "A configurable GitHub cockpit for the terminal — your PRs, reviews and issues in one Ink TUI, grouped by whose move it is.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"react": ">=19"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@kud/gh": "0.
|
|
57
|
-
"@kud/gh-ink": "0.
|
|
56
|
+
"@kud/gh": "0.16.0",
|
|
57
|
+
"@kud/gh-ink": "0.50.1",
|
|
58
58
|
"@kud/ink-ui": "0.25.0",
|
|
59
59
|
"zx": "8.8.5",
|
|
60
|
-
"@kud/gh-workflow": "0.
|
|
60
|
+
"@kud/gh-workflow": "0.7.1"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/node": "22.20.1",
|