@hanzo/build 0.2.94 → 0.2.96
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/lib/api/github.js +9 -2
- package/lib/forge.js +1 -1
- package/package.json +1 -1
package/lib/api/github.js
CHANGED
|
@@ -169,8 +169,15 @@ export function accounts(g) {
|
|
|
169
169
|
return { name, count, blocked: unread.has(name) && count === 0 };
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
/**
|
|
173
|
-
|
|
172
|
+
/**
|
|
173
|
+
* How many of the platform's pages a full read takes at most: a hundred rows
|
|
174
|
+
* each, so the twenty thousand one view holds (apps/provider github_index.go
|
|
175
|
+
* maxViewRepos). The listing is most-recently-pushed first, so a smaller bound
|
|
176
|
+
* drops whole accounts whose newest push is older than the rest: twenty pages
|
|
177
|
+
* left out a person's own account behind their organizations' 2,000 newer
|
|
178
|
+
* repositories, whatever they granted it on GitHub.
|
|
179
|
+
*/
|
|
180
|
+
const PAGES = 200;
|
|
174
181
|
/**
|
|
175
182
|
* Every repository the GitHub connection grants, every page, with whether the
|
|
176
183
|
* forge already has it: a link that has landed (GET /v1/sync, its `native`
|
package/lib/forge.js
CHANGED
|
@@ -266,7 +266,7 @@ function GitHubLink({ onSync }) {
|
|
|
266
266
|
? own
|
|
267
267
|
? t('Disconnect your GitHub from Hanzo?')
|
|
268
268
|
: t('Disconnect @{login}? Hanzo’s GitHub App is removed from it too, unless another organization uses it.', { login: c.login })
|
|
269
|
-
: note || (c.connected ? t('Choose repositories to mirror; each stays in step with GitHub.') : t('One step on GitHub, then pick the repositories to sync.')) })] }), c.connected && asking ? (_jsxs(XStack, { gap: "$2", children: [_jsx(Button, { size: "sm", variant: "outline", disabled: busy, onPress: () => setAsking(false), children: t('Cancel') }), _jsx(Button, { size: "sm", variant: "primary", disabled: busy, onPress: () => void drop(), children: busy ? t('Disconnecting…') : t('
|
|
269
|
+
: note || (c.connected ? t('Choose repositories to mirror; each stays in step with GitHub.') : t('One step on GitHub, then pick the repositories to sync.')) })] }), c.connected && asking ? (_jsxs(XStack, { gap: "$2", children: [_jsx(Button, { size: "sm", variant: "outline", disabled: busy, onPress: () => setAsking(false), children: t('Cancel') }), _jsx(Button, { size: "sm", variant: "primary", disabled: busy, onPress: () => void drop(), children: busy ? t('Disconnecting…') : t('Confirm disconnect') })] })) : c.connected ? (_jsxs(XStack, { gap: "$2", children: [_jsxs(Button, { size: "sm", variant: "outline", onPress: onSync, children: [_jsx(RefreshCw, { size: 14 }), t('Sync repositories')] }), leave ? (_jsx(Button, { size: "sm", variant: "outline", disabled: busy, onPress: () => setAsking(true), children: t('Disconnect') })) : null] })) : (_jsxs(Button, { size: "sm", variant: "primary", disabled: busy, onPress: () => void link(), children: [_jsx(Github, { size: 14 }), busy ? t('Opening GitHub…') : t('Connect GitHub')] }))] }));
|
|
270
270
|
}
|
|
271
271
|
/** The menus' words, marked (`phrase`) and drawn through `t`; GitHub and Hanzo are names, drawn as given. */
|
|
272
272
|
const KINDS = { all: phrase('Issues and pull requests'), issue: phrase('Issues'), pr: phrase('Pull requests') };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/build",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.96",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"description": "Hanzo Build — say what you want, watch it built, deployed and running. The builder as a component, mounted by the Hanzo app at hanzo.ai.",
|