Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t.sh

Commit

The g1t CLI's table of API operations matches the API as it stands after the mirroring removal: the ten mirror endpoints are gone from it, so g1t api no longer lists or calls them.

syntaqxcommitted Parentecdb707Browse files
1 file+0−1530/1 viewed
+0−153
26432643 ],
26442644 },
26452645 Operation {
2646− id: "add_mirror_remote",
2647− method: "POST",
2648− path: "/repos/{owner}/{name}/mirror/remotes",
2649− tag: "Mirroring",
2650− summary: "Add a remote",
2651− scope: Some("repo:admin"),
2652− params: &[
2653− Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] },
2654− Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] },
2655− ],
2656− body: &[
2657− Field { name: "provider", kind: "string", required: true, values: &["g1t", "git"] },
2658− Field { name: "role", kind: "string", required: true, values: &["follower", "leader"] },
2659− Field { name: "token", kind: "string", required: true, values: &[] },
2660− Field { name: "url", kind: "string", required: true, values: &[] },
2661− Field { name: "username", kind: "string", required: false, values: &[] },
2662− ],
2663− },
2664− Operation {
2665− id: "get_hand_back_plan",
2666− method: "GET",
2667− path: "/repos/{owner}/{name}/mirror/hand-back",
2668− tag: "Mirroring",
2669− summary: "Get the hand-back plan",
2670− scope: Some("repo:admin"),
2671− params: &[
2672− Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] },
2673− Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] },
2674− ],
2675− body: &[],
2676− },
2677− Operation {
2678− id: "get_mirror",
2679− method: "GET",
2680− path: "/repos/{owner}/{name}/mirror",
2681− tag: "Mirroring",
2682− summary: "Get a repository's mirroring",
2683− scope: Some("repo:read"),
2684− params: &[
2685− Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] },
2686− Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] },
2687− ],
2688− body: &[],
2689− },
2690− Operation {
2691− id: "hand_back_mirror",
2692− method: "POST",
2693− path: "/repos/{owner}/{name}/mirror/hand-back",
2694− tag: "Mirroring",
2695− summary: "Hand a takeover back",
2696− scope: Some("repo:admin"),
2697− params: &[
2698− Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] },
2699− Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] },
2700− ],
2701− body: &[
2702− Field { name: "decisions", kind: "object", required: false, values: &[] },
2703− ],
2704− },
2705− Operation {
2706− id: "move_mirror_to_g1t",
2707− method: "POST",
2708− path: "/repos/{owner}/{name}/mirror/move-to-g1t",
2709− tag: "Mirroring",
2710− summary: "Move a mirror to g1t",
2711− scope: Some("repo:admin"),
2712− params: &[
2713− Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] },
2714− Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] },
2715− ],
2716− body: &[
2717− Field { name: "keep_remote_updated", kind: "boolean", required: false, values: &[] },
2718− ],
2719− },
2720− Operation {
2721− id: "remove_mirror_remote",
2722− method: "DELETE",
2723− path: "/repos/{owner}/{name}/mirror/remotes/{id}",
2724− tag: "Mirroring",
2725− summary: "Remove a remote",
2726− scope: Some("repo:admin"),
2727− params: &[
2728− Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] },
2729− Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] },
2730− Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] },
2731− ],
2732− body: &[],
2733− },
2734− Operation {
2735− id: "set_ci_failover",
2736− method: "POST",
2737− path: "/repos/{owner}/{name}/mirror/ci",
2738− tag: "Mirroring",
2739− summary: "Start or end CI failover",
2740− scope: Some("repo:admin"),
2741− params: &[
2742− Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] },
2743− Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] },
2744− ],
2745− body: &[
2746− Field { name: "on", kind: "boolean", required: true, values: &[] },
2747− ],
2748− },
2749− Operation {
2750− id: "sync_mirror",
2751− method: "POST",
2752− path: "/repos/{owner}/{name}/mirror/sync",
2753− tag: "Mirroring",
2754− summary: "Sync a repository's remotes",
2755− scope: Some("code:write"),
2756− params: &[
2757− Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] },
2758− Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] },
2759− ],
2760− body: &[],
2761− },
2762− Operation {
2763− id: "take_over_mirror",
2764− method: "POST",
2765− path: "/repos/{owner}/{name}/mirror/take-over",
2766− tag: "Mirroring",
2767− summary: "Take over a mirror",
2768− scope: Some("repo:admin"),
2769− params: &[
2770− Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] },
2771− Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] },
2772− ],
2773− body: &[],
2774− },
2775− Operation {
2776− id: "update_mirror_remote",
2777− method: "PATCH",
2778− path: "/repos/{owner}/{name}/mirror/remotes/{id}",
2779− tag: "Mirroring",
2780− summary: "Update a remote's settings",
2781− scope: Some("repo:admin"),
2782− params: &[
2783− Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] },
2784− Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] },
2785− Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] },
2786− ],
2787− body: &[
2788− Field { name: "github_workflows", kind: "boolean", required: false, values: &[] },
2789− Field { name: "hand_back", kind: "string", required: false, values: &["when_clean", "ask"] },
2790− Field { name: "hold_deploys", kind: "boolean", required: false, values: &[] },
2791− Field { name: "keep_ci_warm", kind: "boolean", required: false, values: &[] },
2792− Field { name: "notify", kind: "string", required: false, values: &["banner", "inbox"] },
2793− Field { name: "remote_pushes", kind: "string", required: false, values: &["adopt", "overwrite"] },
2794− Field { name: "report_checks", kind: "boolean", required: false, values: &[] },
2795− Field { name: "take_over_after", kind: "integer", required: false, values: &[] },
2796− ],
2797− },
2798− Operation {
27992646 id: "delete_issue_subscription",
28002647 method: "DELETE",
28012648 path: "/repos/{owner}/{name}/issues/{number}/subscription",

Comments

Sign in to comment.