gh-manager-cli 1.10.1 → 1.10.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.10.2](https://github.com/wiiiimm/gh-manager-cli/compare/v1.10.1...v1.10.2) (2025-09-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * handle GitHub API 422 status for sync-upstream as potential success ([9a13e8a](https://github.com/wiiiimm/gh-manager-cli/commit/9a13e8a76d4ed09eb7af18b5b8de9e0f2d4c978f))
7
+
1
8
  ## [1.10.1](https://github.com/wiiiimm/gh-manager-cli/compare/v1.10.0...v1.10.1) (2025-09-01)
2
9
 
3
10
 
@@ -668,6 +668,19 @@ async function syncForkWithUpstream(token, owner, repo, branch = "main") {
668
668
  const body = await res.json();
669
669
  return body;
670
670
  }
671
+ if (res.status === 422) {
672
+ try {
673
+ const body = await res.json();
674
+ if (body && body.message && body.message.includes("There was a problem updating the branch")) {
675
+ return {
676
+ message: "Sync completed (with warnings)",
677
+ merge_type: "merge",
678
+ base_branch: branch
679
+ };
680
+ }
681
+ } catch {
682
+ }
683
+ }
671
684
  let msg = `Fork sync failed (status ${res.status})`;
672
685
  try {
673
686
  const body = await res.json();
@@ -17,7 +17,7 @@ import {
17
17
  updateCacheAfterArchive,
18
18
  updateCacheAfterDelete,
19
19
  updateCacheWithRepository
20
- } from "./chunk-X5PZ5T27.js";
20
+ } from "./chunk-KOZ6QCTU.js";
21
21
  export {
22
22
  archiveRepositoryById,
23
23
  deleteRepositoryRest,
package/dist/index.js CHANGED
@@ -17,14 +17,14 @@ import {
17
17
  updateCacheAfterArchive,
18
18
  updateCacheAfterDelete,
19
19
  updateCacheWithRepository
20
- } from "./chunk-X5PZ5T27.js";
20
+ } from "./chunk-KOZ6QCTU.js";
21
21
 
22
22
  // package.json
23
23
  var require_package = __commonJS({
24
24
  "package.json"(exports, module) {
25
25
  module.exports = {
26
26
  name: "gh-manager-cli",
27
- version: "1.10.1",
27
+ version: "1.10.2",
28
28
  private: false,
29
29
  description: "Interactive CLI to manage your GitHub repos (personal) with Ink",
30
30
  license: "MIT",
@@ -280,7 +280,7 @@ function OrgSwitcher({ token, currentContext, onSelect, onClose }) {
280
280
  const loadOrgs = async () => {
281
281
  try {
282
282
  setLoading(true);
283
- const client = await import("./github-OM6QOCRV.js").then((m) => m.makeClient(token));
283
+ const client = await import("./github-HC6GZCKR.js").then((m) => m.makeClient(token));
284
284
  const orgs = await fetchViewerOrganizations(client);
285
285
  setOrganizations(orgs);
286
286
  if (!isPersonalContext) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gh-manager-cli",
3
- "version": "1.10.1",
3
+ "version": "1.10.2",
4
4
  "private": false,
5
5
  "description": "Interactive CLI to manage your GitHub repos (personal) with Ink",
6
6
  "license": "MIT",