@simplysf/simply-gitlab 0.7.0 → 0.8.0
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/README.md +91 -26
- package/docs/guides/scripting.md +3 -2
- package/docs/guides/write-safety.md +10 -8
- package/lib/commands/gitlab/mr/merge.d.ts +21 -0
- package/lib/commands/gitlab/mr/merge.js +81 -0
- package/lib/commands/gitlab/mr/merge.js.map +1 -0
- package/lib/commands/gitlab/mr/view.js +2 -0
- package/lib/commands/gitlab/mr/view.js.map +1 -1
- package/lib/shared/base-command.d.ts +5 -5
- package/lib/shared/base-command.js +5 -5
- package/oclif.manifest.json +371 -215
- package/package.json +3 -3
package/oclif.manifest.json
CHANGED
|
@@ -1875,6 +1875,162 @@
|
|
|
1875
1875
|
"list:mr:gitlab"
|
|
1876
1876
|
]
|
|
1877
1877
|
},
|
|
1878
|
+
"gitlab:mr:merge": {
|
|
1879
|
+
"aliases": [],
|
|
1880
|
+
"args": {},
|
|
1881
|
+
"description": "Merging cannot be undone by any other command, so this one refuses to send anything without --confirm. Without it, it prints the request it would send and exits 1.\n\nPass --sha with the head you reviewed (the \"Head\" line of mr view): GitLab then refuses if anything was pushed since. --auto-merge merges once checks pass, and on a project with merge trains it joins the train. --skip-merge-train uses GitLab's experimental \"merge immediately without restarting the merge train\", which merges changes the train has not tested against the merge requests queued ahead of it; it requires --sha.\n\nWhen GitLab refuses with a bare 405, the merge request is read back and the reason is named.",
|
|
1882
|
+
"examples": [
|
|
1883
|
+
"<%= config.bin %> <%= command.id %> --project group/project --mr 42 --sha <head-sha> --confirm",
|
|
1884
|
+
"<%= config.bin %> <%= command.id %> --project group/project --mr 42 --auto-merge --confirm",
|
|
1885
|
+
"<%= config.bin %> <%= command.id %> --project group/project --mr 42 --skip-merge-train --sha <head-sha> --confirm",
|
|
1886
|
+
"<%= config.bin %> <%= command.id %> --project group/project --mr 42 --squash --dry-run"
|
|
1887
|
+
],
|
|
1888
|
+
"flags": {
|
|
1889
|
+
"json": {
|
|
1890
|
+
"description": "Format output as json.",
|
|
1891
|
+
"helpGroup": "GLOBAL",
|
|
1892
|
+
"name": "json",
|
|
1893
|
+
"allowNo": false,
|
|
1894
|
+
"type": "boolean"
|
|
1895
|
+
},
|
|
1896
|
+
"env-file": {
|
|
1897
|
+
"char": "e",
|
|
1898
|
+
"description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
|
|
1899
|
+
"helpGroup": "CONNECTION",
|
|
1900
|
+
"name": "env-file",
|
|
1901
|
+
"summary": "Path to a .env file holding connection settings.",
|
|
1902
|
+
"hasDynamicHelp": false,
|
|
1903
|
+
"multiple": false,
|
|
1904
|
+
"type": "option"
|
|
1905
|
+
},
|
|
1906
|
+
"gitlab-url": {
|
|
1907
|
+
"env": "GITLAB_URL",
|
|
1908
|
+
"helpGroup": "CONNECTION",
|
|
1909
|
+
"name": "gitlab-url",
|
|
1910
|
+
"summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
|
|
1911
|
+
"hasDynamicHelp": false,
|
|
1912
|
+
"multiple": false,
|
|
1913
|
+
"type": "option"
|
|
1914
|
+
},
|
|
1915
|
+
"gitlab-token": {
|
|
1916
|
+
"env": "GITLAB_TOKEN",
|
|
1917
|
+
"helpGroup": "CONNECTION",
|
|
1918
|
+
"name": "gitlab-token",
|
|
1919
|
+
"summary": "Personal, project, or group access token.",
|
|
1920
|
+
"hasDynamicHelp": false,
|
|
1921
|
+
"multiple": false,
|
|
1922
|
+
"type": "option"
|
|
1923
|
+
},
|
|
1924
|
+
"project": {
|
|
1925
|
+
"char": "p",
|
|
1926
|
+
"env": "GITLAB_PROJECT",
|
|
1927
|
+
"name": "project",
|
|
1928
|
+
"required": true,
|
|
1929
|
+
"summary": "Project id, or its full path such as group/subgroup/project.",
|
|
1930
|
+
"hasDynamicHelp": false,
|
|
1931
|
+
"multiple": false,
|
|
1932
|
+
"type": "option"
|
|
1933
|
+
},
|
|
1934
|
+
"dry-run": {
|
|
1935
|
+
"name": "dry-run",
|
|
1936
|
+
"summary": "Print the request that would be sent and exit without sending it.",
|
|
1937
|
+
"allowNo": false,
|
|
1938
|
+
"type": "boolean"
|
|
1939
|
+
},
|
|
1940
|
+
"mr": {
|
|
1941
|
+
"name": "mr",
|
|
1942
|
+
"required": true,
|
|
1943
|
+
"summary": "Merge request iid.",
|
|
1944
|
+
"hasDynamicHelp": false,
|
|
1945
|
+
"multiple": false,
|
|
1946
|
+
"type": "option"
|
|
1947
|
+
},
|
|
1948
|
+
"sha": {
|
|
1949
|
+
"name": "sha",
|
|
1950
|
+
"summary": "Full sha of the source branch head you reviewed. Recommended; required with --skip-merge-train.",
|
|
1951
|
+
"hasDynamicHelp": false,
|
|
1952
|
+
"multiple": false,
|
|
1953
|
+
"type": "option"
|
|
1954
|
+
},
|
|
1955
|
+
"auto-merge": {
|
|
1956
|
+
"exclusive": [
|
|
1957
|
+
"skip-merge-train"
|
|
1958
|
+
],
|
|
1959
|
+
"name": "auto-merge",
|
|
1960
|
+
"summary": "Merge when checks pass. On a project with merge trains, this joins the train.",
|
|
1961
|
+
"allowNo": false,
|
|
1962
|
+
"type": "boolean"
|
|
1963
|
+
},
|
|
1964
|
+
"skip-merge-train": {
|
|
1965
|
+
"exclusive": [
|
|
1966
|
+
"auto-merge"
|
|
1967
|
+
],
|
|
1968
|
+
"name": "skip-merge-train",
|
|
1969
|
+
"summary": "Merge now without restarting the merge train. Experimental in GitLab.",
|
|
1970
|
+
"allowNo": false,
|
|
1971
|
+
"type": "boolean"
|
|
1972
|
+
},
|
|
1973
|
+
"squash": {
|
|
1974
|
+
"name": "squash",
|
|
1975
|
+
"summary": "Squash the commits into one.",
|
|
1976
|
+
"allowNo": true,
|
|
1977
|
+
"type": "boolean"
|
|
1978
|
+
},
|
|
1979
|
+
"remove-source-branch": {
|
|
1980
|
+
"name": "remove-source-branch",
|
|
1981
|
+
"summary": "Delete the source branch after merging.",
|
|
1982
|
+
"allowNo": true,
|
|
1983
|
+
"type": "boolean"
|
|
1984
|
+
},
|
|
1985
|
+
"merge-commit-message": {
|
|
1986
|
+
"name": "merge-commit-message",
|
|
1987
|
+
"summary": "Custom merge commit message.",
|
|
1988
|
+
"hasDynamicHelp": false,
|
|
1989
|
+
"multiple": false,
|
|
1990
|
+
"type": "option"
|
|
1991
|
+
},
|
|
1992
|
+
"squash-commit-message": {
|
|
1993
|
+
"name": "squash-commit-message",
|
|
1994
|
+
"summary": "Custom squash commit message.",
|
|
1995
|
+
"hasDynamicHelp": false,
|
|
1996
|
+
"multiple": false,
|
|
1997
|
+
"type": "option"
|
|
1998
|
+
},
|
|
1999
|
+
"confirm": {
|
|
2000
|
+
"name": "confirm",
|
|
2001
|
+
"summary": "Send the merge. Without it, nothing is sent.",
|
|
2002
|
+
"allowNo": false,
|
|
2003
|
+
"type": "boolean"
|
|
2004
|
+
}
|
|
2005
|
+
},
|
|
2006
|
+
"hasDynamicHelp": false,
|
|
2007
|
+
"hiddenAliases": [],
|
|
2008
|
+
"id": "gitlab:mr:merge",
|
|
2009
|
+
"pluginAlias": "@simplysf/simply-gitlab",
|
|
2010
|
+
"pluginName": "@simplysf/simply-gitlab",
|
|
2011
|
+
"pluginType": "core",
|
|
2012
|
+
"strict": true,
|
|
2013
|
+
"summary": "Merge a merge request, or add it to the merge train.",
|
|
2014
|
+
"enableJsonFlag": true,
|
|
2015
|
+
"isWrite": true,
|
|
2016
|
+
"isESM": true,
|
|
2017
|
+
"relativePath": [
|
|
2018
|
+
"lib",
|
|
2019
|
+
"commands",
|
|
2020
|
+
"gitlab",
|
|
2021
|
+
"mr",
|
|
2022
|
+
"merge.js"
|
|
2023
|
+
],
|
|
2024
|
+
"aliasPermutations": [],
|
|
2025
|
+
"permutations": [
|
|
2026
|
+
"gitlab:mr:merge",
|
|
2027
|
+
"mr:gitlab:merge",
|
|
2028
|
+
"mr:merge:gitlab",
|
|
2029
|
+
"gitlab:merge:mr",
|
|
2030
|
+
"merge:gitlab:mr",
|
|
2031
|
+
"merge:mr:gitlab"
|
|
2032
|
+
]
|
|
2033
|
+
},
|
|
1878
2034
|
"gitlab:mr:update": {
|
|
1879
2035
|
"aliases": [],
|
|
1880
2036
|
"args": {},
|
|
@@ -2621,13 +2777,13 @@
|
|
|
2621
2777
|
"list:release:gitlab"
|
|
2622
2778
|
]
|
|
2623
2779
|
},
|
|
2624
|
-
"gitlab:
|
|
2780
|
+
"gitlab:ci:environment:list": {
|
|
2625
2781
|
"aliases": [],
|
|
2626
2782
|
"args": {},
|
|
2627
|
-
"description": "
|
|
2783
|
+
"description": "Environments are what CI deploys to and what review apps create. Both available and stopped ones are listed; --state narrows to one. Use --json for the last deployment on each, which is the field worth having when you are answering \"what is running where\".",
|
|
2628
2784
|
"examples": [
|
|
2629
2785
|
"<%= config.bin %> <%= command.id %> --project group/project",
|
|
2630
|
-
"<%= config.bin %> <%= command.id %> --project group/project --
|
|
2786
|
+
"<%= config.bin %> <%= command.id %> --project group/project --state available --search prod"
|
|
2631
2787
|
],
|
|
2632
2788
|
"flags": {
|
|
2633
2789
|
"json": {
|
|
@@ -2677,51 +2833,46 @@
|
|
|
2677
2833
|
},
|
|
2678
2834
|
"limit": {
|
|
2679
2835
|
"name": "limit",
|
|
2680
|
-
"summary": "Maximum number of
|
|
2836
|
+
"summary": "Maximum number of environments to return across all pages.",
|
|
2681
2837
|
"default": 20,
|
|
2682
2838
|
"hasDynamicHelp": false,
|
|
2683
2839
|
"multiple": false,
|
|
2684
2840
|
"type": "option"
|
|
2685
2841
|
},
|
|
2686
|
-
"
|
|
2687
|
-
"name": "
|
|
2688
|
-
"summary": "Return
|
|
2842
|
+
"name": {
|
|
2843
|
+
"name": "name",
|
|
2844
|
+
"summary": "Return the environment with exactly this name.",
|
|
2689
2845
|
"hasDynamicHelp": false,
|
|
2690
2846
|
"multiple": false,
|
|
2691
2847
|
"type": "option"
|
|
2692
2848
|
},
|
|
2693
|
-
"
|
|
2694
|
-
"name": "
|
|
2695
|
-
"summary": "
|
|
2849
|
+
"search": {
|
|
2850
|
+
"name": "search",
|
|
2851
|
+
"summary": "Return environments whose name contains this term.",
|
|
2696
2852
|
"hasDynamicHelp": false,
|
|
2697
2853
|
"multiple": false,
|
|
2698
|
-
"options": [
|
|
2699
|
-
"name",
|
|
2700
|
-
"updated",
|
|
2701
|
-
"version"
|
|
2702
|
-
],
|
|
2703
2854
|
"type": "option"
|
|
2704
2855
|
},
|
|
2705
|
-
"
|
|
2706
|
-
"name": "
|
|
2707
|
-
"summary": "
|
|
2856
|
+
"state": {
|
|
2857
|
+
"name": "state",
|
|
2858
|
+
"summary": "Environment state.",
|
|
2708
2859
|
"hasDynamicHelp": false,
|
|
2709
2860
|
"multiple": false,
|
|
2710
2861
|
"options": [
|
|
2711
|
-
"
|
|
2712
|
-
"
|
|
2862
|
+
"available",
|
|
2863
|
+
"stopped"
|
|
2713
2864
|
],
|
|
2714
2865
|
"type": "option"
|
|
2715
2866
|
}
|
|
2716
2867
|
},
|
|
2717
2868
|
"hasDynamicHelp": false,
|
|
2718
2869
|
"hiddenAliases": [],
|
|
2719
|
-
"id": "gitlab:
|
|
2870
|
+
"id": "gitlab:ci:environment:list",
|
|
2720
2871
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
2721
2872
|
"pluginName": "@simplysf/simply-gitlab",
|
|
2722
2873
|
"pluginType": "core",
|
|
2723
2874
|
"strict": true,
|
|
2724
|
-
"summary": "List
|
|
2875
|
+
"summary": "List a project deployment environments.",
|
|
2725
2876
|
"enableJsonFlag": true,
|
|
2726
2877
|
"isWrite": false,
|
|
2727
2878
|
"isESM": true,
|
|
@@ -2729,26 +2880,45 @@
|
|
|
2729
2880
|
"lib",
|
|
2730
2881
|
"commands",
|
|
2731
2882
|
"gitlab",
|
|
2732
|
-
"
|
|
2883
|
+
"ci",
|
|
2884
|
+
"environment",
|
|
2733
2885
|
"list.js"
|
|
2734
2886
|
],
|
|
2735
2887
|
"aliasPermutations": [],
|
|
2736
2888
|
"permutations": [
|
|
2737
|
-
"gitlab:
|
|
2738
|
-
"
|
|
2739
|
-
"
|
|
2740
|
-
"
|
|
2741
|
-
"
|
|
2742
|
-
"
|
|
2889
|
+
"gitlab:ci:environment:list",
|
|
2890
|
+
"ci:gitlab:environment:list",
|
|
2891
|
+
"ci:environment:gitlab:list",
|
|
2892
|
+
"ci:environment:list:gitlab",
|
|
2893
|
+
"gitlab:environment:ci:list",
|
|
2894
|
+
"environment:gitlab:ci:list",
|
|
2895
|
+
"environment:ci:gitlab:list",
|
|
2896
|
+
"environment:ci:list:gitlab",
|
|
2897
|
+
"gitlab:environment:list:ci",
|
|
2898
|
+
"environment:gitlab:list:ci",
|
|
2899
|
+
"environment:list:gitlab:ci",
|
|
2900
|
+
"environment:list:ci:gitlab",
|
|
2901
|
+
"gitlab:ci:list:environment",
|
|
2902
|
+
"ci:gitlab:list:environment",
|
|
2903
|
+
"ci:list:gitlab:environment",
|
|
2904
|
+
"ci:list:environment:gitlab",
|
|
2905
|
+
"gitlab:list:ci:environment",
|
|
2906
|
+
"list:gitlab:ci:environment",
|
|
2907
|
+
"list:ci:gitlab:environment",
|
|
2908
|
+
"list:ci:environment:gitlab",
|
|
2909
|
+
"gitlab:list:environment:ci",
|
|
2910
|
+
"list:gitlab:environment:ci",
|
|
2911
|
+
"list:environment:gitlab:ci",
|
|
2912
|
+
"list:environment:ci:gitlab"
|
|
2743
2913
|
]
|
|
2744
2914
|
},
|
|
2745
|
-
"gitlab:
|
|
2915
|
+
"gitlab:tag:list": {
|
|
2746
2916
|
"aliases": [],
|
|
2747
2917
|
"args": {},
|
|
2748
|
-
"description": "
|
|
2918
|
+
"description": "Tags come back newest first by the commit date they point at. That is the commit date, not the tag creation date, so a tag cut today on an old commit sorts by the old commit — use --order-by name if you need a deterministic order instead.",
|
|
2749
2919
|
"examples": [
|
|
2750
|
-
"<%= config.bin %> <%= command.id %> --project group/project
|
|
2751
|
-
"<%= config.bin %> <%= command.id %> --project group/project --
|
|
2920
|
+
"<%= config.bin %> <%= command.id %> --project group/project",
|
|
2921
|
+
"<%= config.bin %> <%= command.id %> --project group/project --search v1. --limit 50"
|
|
2752
2922
|
],
|
|
2753
2923
|
"flags": {
|
|
2754
2924
|
"json": {
|
|
@@ -2798,39 +2968,51 @@
|
|
|
2798
2968
|
},
|
|
2799
2969
|
"limit": {
|
|
2800
2970
|
"name": "limit",
|
|
2801
|
-
"summary": "Maximum number of
|
|
2971
|
+
"summary": "Maximum number of tags to return across all pages.",
|
|
2802
2972
|
"default": 20,
|
|
2803
2973
|
"hasDynamicHelp": false,
|
|
2804
2974
|
"multiple": false,
|
|
2805
2975
|
"type": "option"
|
|
2806
2976
|
},
|
|
2807
|
-
"
|
|
2808
|
-
"name": "
|
|
2809
|
-
"summary": "
|
|
2977
|
+
"search": {
|
|
2978
|
+
"name": "search",
|
|
2979
|
+
"summary": "Return only tags whose name contains this term.",
|
|
2810
2980
|
"hasDynamicHelp": false,
|
|
2811
|
-
"multiple":
|
|
2981
|
+
"multiple": false,
|
|
2982
|
+
"type": "option"
|
|
2983
|
+
},
|
|
2984
|
+
"order-by": {
|
|
2985
|
+
"name": "order-by",
|
|
2986
|
+
"summary": "Field to sort by.",
|
|
2987
|
+
"hasDynamicHelp": false,
|
|
2988
|
+
"multiple": false,
|
|
2812
2989
|
"options": [
|
|
2813
|
-
"
|
|
2814
|
-
"
|
|
2815
|
-
"
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2990
|
+
"name",
|
|
2991
|
+
"updated",
|
|
2992
|
+
"version"
|
|
2993
|
+
],
|
|
2994
|
+
"type": "option"
|
|
2995
|
+
},
|
|
2996
|
+
"sort": {
|
|
2997
|
+
"name": "sort",
|
|
2998
|
+
"summary": "Sort direction.",
|
|
2999
|
+
"hasDynamicHelp": false,
|
|
3000
|
+
"multiple": false,
|
|
3001
|
+
"options": [
|
|
3002
|
+
"asc",
|
|
3003
|
+
"desc"
|
|
2822
3004
|
],
|
|
2823
3005
|
"type": "option"
|
|
2824
3006
|
}
|
|
2825
3007
|
},
|
|
2826
3008
|
"hasDynamicHelp": false,
|
|
2827
3009
|
"hiddenAliases": [],
|
|
2828
|
-
"id": "gitlab:
|
|
3010
|
+
"id": "gitlab:tag:list",
|
|
2829
3011
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
2830
3012
|
"pluginName": "@simplysf/simply-gitlab",
|
|
2831
3013
|
"pluginType": "core",
|
|
2832
3014
|
"strict": true,
|
|
2833
|
-
"summary": "List
|
|
3015
|
+
"summary": "List repository tags.",
|
|
2834
3016
|
"enableJsonFlag": true,
|
|
2835
3017
|
"isWrite": false,
|
|
2836
3018
|
"isESM": true,
|
|
@@ -2838,45 +3020,26 @@
|
|
|
2838
3020
|
"lib",
|
|
2839
3021
|
"commands",
|
|
2840
3022
|
"gitlab",
|
|
2841
|
-
"
|
|
2842
|
-
"job",
|
|
3023
|
+
"tag",
|
|
2843
3024
|
"list.js"
|
|
2844
3025
|
],
|
|
2845
3026
|
"aliasPermutations": [],
|
|
2846
3027
|
"permutations": [
|
|
2847
|
-
"gitlab:
|
|
2848
|
-
"
|
|
2849
|
-
"
|
|
2850
|
-
"
|
|
2851
|
-
"gitlab:
|
|
2852
|
-
"
|
|
2853
|
-
"job:ci:gitlab:list",
|
|
2854
|
-
"job:ci:list:gitlab",
|
|
2855
|
-
"gitlab:job:list:ci",
|
|
2856
|
-
"job:gitlab:list:ci",
|
|
2857
|
-
"job:list:gitlab:ci",
|
|
2858
|
-
"job:list:ci:gitlab",
|
|
2859
|
-
"gitlab:ci:list:job",
|
|
2860
|
-
"ci:gitlab:list:job",
|
|
2861
|
-
"ci:list:gitlab:job",
|
|
2862
|
-
"ci:list:job:gitlab",
|
|
2863
|
-
"gitlab:list:ci:job",
|
|
2864
|
-
"list:gitlab:ci:job",
|
|
2865
|
-
"list:ci:gitlab:job",
|
|
2866
|
-
"list:ci:job:gitlab",
|
|
2867
|
-
"gitlab:list:job:ci",
|
|
2868
|
-
"list:gitlab:job:ci",
|
|
2869
|
-
"list:job:gitlab:ci",
|
|
2870
|
-
"list:job:ci:gitlab"
|
|
3028
|
+
"gitlab:tag:list",
|
|
3029
|
+
"tag:gitlab:list",
|
|
3030
|
+
"tag:list:gitlab",
|
|
3031
|
+
"gitlab:list:tag",
|
|
3032
|
+
"list:gitlab:tag",
|
|
3033
|
+
"list:tag:gitlab"
|
|
2871
3034
|
]
|
|
2872
3035
|
},
|
|
2873
|
-
"gitlab:ci:
|
|
3036
|
+
"gitlab:ci:variable:list": {
|
|
2874
3037
|
"aliases": [],
|
|
2875
3038
|
"args": {},
|
|
2876
|
-
"description": "
|
|
3039
|
+
"description": "Variable values are hidden by default, including under --json. GitLab returns every value in clear text on this endpoint — the \"masked\" attribute only hides a value in job logs, not from the API — and those values are deploy keys and production credentials.\n\nPass --reveal to print them. Doing so puts live secrets on stdout, into your shell history if you redirect it, and into the context of anything reading this output, so it is a deliberate step rather than the default.",
|
|
2877
3040
|
"examples": [
|
|
2878
|
-
"<%= config.bin %> <%= command.id %> --project group/project
|
|
2879
|
-
"<%= config.bin %> <%= command.id %> --project group/project --
|
|
3041
|
+
"<%= config.bin %> <%= command.id %> --project group/project",
|
|
3042
|
+
"<%= config.bin %> <%= command.id %> --project group/project --reveal"
|
|
2880
3043
|
],
|
|
2881
3044
|
"flags": {
|
|
2882
3045
|
"json": {
|
|
@@ -2924,31 +3087,30 @@
|
|
|
2924
3087
|
"multiple": false,
|
|
2925
3088
|
"type": "option"
|
|
2926
3089
|
},
|
|
2927
|
-
"
|
|
2928
|
-
"name": "
|
|
2929
|
-
"
|
|
2930
|
-
"
|
|
3090
|
+
"limit": {
|
|
3091
|
+
"name": "limit",
|
|
3092
|
+
"summary": "Maximum number of variables to return across all pages.",
|
|
3093
|
+
"default": 50,
|
|
2931
3094
|
"hasDynamicHelp": false,
|
|
2932
3095
|
"multiple": false,
|
|
2933
3096
|
"type": "option"
|
|
2934
3097
|
},
|
|
2935
|
-
"
|
|
2936
|
-
"
|
|
2937
|
-
"
|
|
2938
|
-
"
|
|
2939
|
-
"
|
|
2940
|
-
"
|
|
2941
|
-
"type": "option"
|
|
3098
|
+
"reveal": {
|
|
3099
|
+
"description": "Off by default. Every value on this endpoint is a live secret, so revealing them is worth a moment of thought about where this output is going.",
|
|
3100
|
+
"name": "reveal",
|
|
3101
|
+
"summary": "Print the variable values in clear text.",
|
|
3102
|
+
"allowNo": false,
|
|
3103
|
+
"type": "boolean"
|
|
2942
3104
|
}
|
|
2943
3105
|
},
|
|
2944
3106
|
"hasDynamicHelp": false,
|
|
2945
3107
|
"hiddenAliases": [],
|
|
2946
|
-
"id": "gitlab:ci:
|
|
3108
|
+
"id": "gitlab:ci:variable:list",
|
|
2947
3109
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
2948
3110
|
"pluginName": "@simplysf/simply-gitlab",
|
|
2949
3111
|
"pluginType": "core",
|
|
2950
3112
|
"strict": true,
|
|
2951
|
-
"summary": "
|
|
3113
|
+
"summary": "List a project CI/CD variables.",
|
|
2952
3114
|
"enableJsonFlag": true,
|
|
2953
3115
|
"isWrite": false,
|
|
2954
3116
|
"isESM": true,
|
|
@@ -2957,44 +3119,44 @@
|
|
|
2957
3119
|
"commands",
|
|
2958
3120
|
"gitlab",
|
|
2959
3121
|
"ci",
|
|
2960
|
-
"
|
|
2961
|
-
"
|
|
3122
|
+
"variable",
|
|
3123
|
+
"list.js"
|
|
2962
3124
|
],
|
|
2963
3125
|
"aliasPermutations": [],
|
|
2964
3126
|
"permutations": [
|
|
2965
|
-
"gitlab:ci:
|
|
2966
|
-
"ci:gitlab:
|
|
2967
|
-
"ci:
|
|
2968
|
-
"ci:
|
|
2969
|
-
"gitlab:
|
|
2970
|
-
"
|
|
2971
|
-
"
|
|
2972
|
-
"
|
|
2973
|
-
"gitlab:
|
|
2974
|
-
"
|
|
2975
|
-
"
|
|
2976
|
-
"
|
|
2977
|
-
"gitlab:ci:
|
|
2978
|
-
"ci:gitlab:
|
|
2979
|
-
"ci:
|
|
2980
|
-
"ci:
|
|
2981
|
-
"gitlab:
|
|
2982
|
-
"
|
|
2983
|
-
"
|
|
2984
|
-
"
|
|
2985
|
-
"gitlab:
|
|
2986
|
-
"
|
|
2987
|
-
"
|
|
2988
|
-
"
|
|
3127
|
+
"gitlab:ci:variable:list",
|
|
3128
|
+
"ci:gitlab:variable:list",
|
|
3129
|
+
"ci:variable:gitlab:list",
|
|
3130
|
+
"ci:variable:list:gitlab",
|
|
3131
|
+
"gitlab:variable:ci:list",
|
|
3132
|
+
"variable:gitlab:ci:list",
|
|
3133
|
+
"variable:ci:gitlab:list",
|
|
3134
|
+
"variable:ci:list:gitlab",
|
|
3135
|
+
"gitlab:variable:list:ci",
|
|
3136
|
+
"variable:gitlab:list:ci",
|
|
3137
|
+
"variable:list:gitlab:ci",
|
|
3138
|
+
"variable:list:ci:gitlab",
|
|
3139
|
+
"gitlab:ci:list:variable",
|
|
3140
|
+
"ci:gitlab:list:variable",
|
|
3141
|
+
"ci:list:gitlab:variable",
|
|
3142
|
+
"ci:list:variable:gitlab",
|
|
3143
|
+
"gitlab:list:ci:variable",
|
|
3144
|
+
"list:gitlab:ci:variable",
|
|
3145
|
+
"list:ci:gitlab:variable",
|
|
3146
|
+
"list:ci:variable:gitlab",
|
|
3147
|
+
"gitlab:list:variable:ci",
|
|
3148
|
+
"list:gitlab:variable:ci",
|
|
3149
|
+
"list:variable:gitlab:ci",
|
|
3150
|
+
"list:variable:ci:gitlab"
|
|
2989
3151
|
]
|
|
2990
3152
|
},
|
|
2991
|
-
"gitlab:ci:
|
|
3153
|
+
"gitlab:ci:job:list": {
|
|
2992
3154
|
"aliases": [],
|
|
2993
3155
|
"args": {},
|
|
2994
|
-
"description": "
|
|
3156
|
+
"description": "Jobs across every pipeline, newest first. --scope is repeatable and the scopes are ORed, so --scope failed --scope running is \"either\". The ID column is what ci job log takes.",
|
|
2995
3157
|
"examples": [
|
|
2996
|
-
"<%= config.bin %> <%= command.id %> --project group/project",
|
|
2997
|
-
"<%= config.bin %> <%= command.id %> --project group/project --
|
|
3158
|
+
"<%= config.bin %> <%= command.id %> --project group/project --scope failed --limit 10",
|
|
3159
|
+
"<%= config.bin %> <%= command.id %> --project group/project --scope running --scope pending"
|
|
2998
3160
|
],
|
|
2999
3161
|
"flags": {
|
|
3000
3162
|
"json": {
|
|
@@ -3044,28 +3206,39 @@
|
|
|
3044
3206
|
},
|
|
3045
3207
|
"limit": {
|
|
3046
3208
|
"name": "limit",
|
|
3047
|
-
"summary": "Maximum number of
|
|
3048
|
-
"default":
|
|
3209
|
+
"summary": "Maximum number of jobs to return across all pages.",
|
|
3210
|
+
"default": 20,
|
|
3049
3211
|
"hasDynamicHelp": false,
|
|
3050
3212
|
"multiple": false,
|
|
3051
3213
|
"type": "option"
|
|
3052
3214
|
},
|
|
3053
|
-
"
|
|
3054
|
-
"
|
|
3055
|
-
"
|
|
3056
|
-
"
|
|
3057
|
-
"
|
|
3058
|
-
"
|
|
3215
|
+
"scope": {
|
|
3216
|
+
"name": "scope",
|
|
3217
|
+
"summary": "Job states to include. Repeatable.",
|
|
3218
|
+
"hasDynamicHelp": false,
|
|
3219
|
+
"multiple": true,
|
|
3220
|
+
"options": [
|
|
3221
|
+
"created",
|
|
3222
|
+
"pending",
|
|
3223
|
+
"running",
|
|
3224
|
+
"failed",
|
|
3225
|
+
"success",
|
|
3226
|
+
"canceled",
|
|
3227
|
+
"skipped",
|
|
3228
|
+
"waiting_for_resource",
|
|
3229
|
+
"manual"
|
|
3230
|
+
],
|
|
3231
|
+
"type": "option"
|
|
3059
3232
|
}
|
|
3060
3233
|
},
|
|
3061
3234
|
"hasDynamicHelp": false,
|
|
3062
3235
|
"hiddenAliases": [],
|
|
3063
|
-
"id": "gitlab:ci:
|
|
3236
|
+
"id": "gitlab:ci:job:list",
|
|
3064
3237
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
3065
3238
|
"pluginName": "@simplysf/simply-gitlab",
|
|
3066
3239
|
"pluginType": "core",
|
|
3067
3240
|
"strict": true,
|
|
3068
|
-
"summary": "List a project
|
|
3241
|
+
"summary": "List CI jobs for a project.",
|
|
3069
3242
|
"enableJsonFlag": true,
|
|
3070
3243
|
"isWrite": false,
|
|
3071
3244
|
"isESM": true,
|
|
@@ -3074,44 +3247,44 @@
|
|
|
3074
3247
|
"commands",
|
|
3075
3248
|
"gitlab",
|
|
3076
3249
|
"ci",
|
|
3077
|
-
"
|
|
3250
|
+
"job",
|
|
3078
3251
|
"list.js"
|
|
3079
3252
|
],
|
|
3080
3253
|
"aliasPermutations": [],
|
|
3081
3254
|
"permutations": [
|
|
3082
|
-
"gitlab:ci:
|
|
3083
|
-
"ci:gitlab:
|
|
3084
|
-
"ci:
|
|
3085
|
-
"ci:
|
|
3086
|
-
"gitlab:
|
|
3087
|
-
"
|
|
3088
|
-
"
|
|
3089
|
-
"
|
|
3090
|
-
"gitlab:
|
|
3091
|
-
"
|
|
3092
|
-
"
|
|
3093
|
-
"
|
|
3094
|
-
"gitlab:ci:list:
|
|
3095
|
-
"ci:gitlab:list:
|
|
3096
|
-
"ci:list:gitlab:
|
|
3097
|
-
"ci:list:
|
|
3098
|
-
"gitlab:list:ci:
|
|
3099
|
-
"list:gitlab:ci:
|
|
3100
|
-
"list:ci:gitlab:
|
|
3101
|
-
"list:ci:
|
|
3102
|
-
"gitlab:list:
|
|
3103
|
-
"list:gitlab:
|
|
3104
|
-
"list:
|
|
3105
|
-
"list:
|
|
3255
|
+
"gitlab:ci:job:list",
|
|
3256
|
+
"ci:gitlab:job:list",
|
|
3257
|
+
"ci:job:gitlab:list",
|
|
3258
|
+
"ci:job:list:gitlab",
|
|
3259
|
+
"gitlab:job:ci:list",
|
|
3260
|
+
"job:gitlab:ci:list",
|
|
3261
|
+
"job:ci:gitlab:list",
|
|
3262
|
+
"job:ci:list:gitlab",
|
|
3263
|
+
"gitlab:job:list:ci",
|
|
3264
|
+
"job:gitlab:list:ci",
|
|
3265
|
+
"job:list:gitlab:ci",
|
|
3266
|
+
"job:list:ci:gitlab",
|
|
3267
|
+
"gitlab:ci:list:job",
|
|
3268
|
+
"ci:gitlab:list:job",
|
|
3269
|
+
"ci:list:gitlab:job",
|
|
3270
|
+
"ci:list:job:gitlab",
|
|
3271
|
+
"gitlab:list:ci:job",
|
|
3272
|
+
"list:gitlab:ci:job",
|
|
3273
|
+
"list:ci:gitlab:job",
|
|
3274
|
+
"list:ci:job:gitlab",
|
|
3275
|
+
"gitlab:list:job:ci",
|
|
3276
|
+
"list:gitlab:job:ci",
|
|
3277
|
+
"list:job:gitlab:ci",
|
|
3278
|
+
"list:job:ci:gitlab"
|
|
3106
3279
|
]
|
|
3107
3280
|
},
|
|
3108
|
-
"gitlab:ci:
|
|
3281
|
+
"gitlab:ci:job:log": {
|
|
3109
3282
|
"aliases": [],
|
|
3110
3283
|
"args": {},
|
|
3111
|
-
"description": "
|
|
3284
|
+
"description": "A job trace regularly runs to tens of megabytes, and what matters about a failed job is at the end, so only the last 200 lines are printed. --tail changes that number and --tail 0 prints the whole thing.\n\nThe trace is written by whatever the job ran, which means it is arbitrary text from an untrusted source. Control characters are stripped before it is printed, so the coloured output a runner emits arrives here plain.",
|
|
3112
3285
|
"examples": [
|
|
3113
|
-
"<%= config.bin %> <%= command.id %> --project group/project",
|
|
3114
|
-
"<%= config.bin %> <%= command.id %> --project group/project --
|
|
3286
|
+
"<%= config.bin %> <%= command.id %> --project group/project --job 12345",
|
|
3287
|
+
"<%= config.bin %> <%= command.id %> --project group/project --job 12345 --tail 0"
|
|
3115
3288
|
],
|
|
3116
3289
|
"flags": {
|
|
3117
3290
|
"json": {
|
|
@@ -3159,48 +3332,31 @@
|
|
|
3159
3332
|
"multiple": false,
|
|
3160
3333
|
"type": "option"
|
|
3161
3334
|
},
|
|
3162
|
-
"
|
|
3163
|
-
"name": "
|
|
3164
|
-
"
|
|
3165
|
-
"
|
|
3166
|
-
"hasDynamicHelp": false,
|
|
3167
|
-
"multiple": false,
|
|
3168
|
-
"type": "option"
|
|
3169
|
-
},
|
|
3170
|
-
"name": {
|
|
3171
|
-
"name": "name",
|
|
3172
|
-
"summary": "Return the environment with exactly this name.",
|
|
3173
|
-
"hasDynamicHelp": false,
|
|
3174
|
-
"multiple": false,
|
|
3175
|
-
"type": "option"
|
|
3176
|
-
},
|
|
3177
|
-
"search": {
|
|
3178
|
-
"name": "search",
|
|
3179
|
-
"summary": "Return environments whose name contains this term.",
|
|
3335
|
+
"job": {
|
|
3336
|
+
"name": "job",
|
|
3337
|
+
"required": true,
|
|
3338
|
+
"summary": "Job id, as listed by ci job list.",
|
|
3180
3339
|
"hasDynamicHelp": false,
|
|
3181
3340
|
"multiple": false,
|
|
3182
3341
|
"type": "option"
|
|
3183
3342
|
},
|
|
3184
|
-
"
|
|
3185
|
-
"name": "
|
|
3186
|
-
"summary": "
|
|
3343
|
+
"tail": {
|
|
3344
|
+
"name": "tail",
|
|
3345
|
+
"summary": "Print only the last N lines. 0 prints the whole trace.",
|
|
3346
|
+
"default": 200,
|
|
3187
3347
|
"hasDynamicHelp": false,
|
|
3188
3348
|
"multiple": false,
|
|
3189
|
-
"options": [
|
|
3190
|
-
"available",
|
|
3191
|
-
"stopped"
|
|
3192
|
-
],
|
|
3193
3349
|
"type": "option"
|
|
3194
3350
|
}
|
|
3195
3351
|
},
|
|
3196
3352
|
"hasDynamicHelp": false,
|
|
3197
3353
|
"hiddenAliases": [],
|
|
3198
|
-
"id": "gitlab:ci:
|
|
3354
|
+
"id": "gitlab:ci:job:log",
|
|
3199
3355
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
3200
3356
|
"pluginName": "@simplysf/simply-gitlab",
|
|
3201
3357
|
"pluginType": "core",
|
|
3202
3358
|
"strict": true,
|
|
3203
|
-
"summary": "
|
|
3359
|
+
"summary": "Print a job log.",
|
|
3204
3360
|
"enableJsonFlag": true,
|
|
3205
3361
|
"isWrite": false,
|
|
3206
3362
|
"isESM": true,
|
|
@@ -3209,37 +3365,37 @@
|
|
|
3209
3365
|
"commands",
|
|
3210
3366
|
"gitlab",
|
|
3211
3367
|
"ci",
|
|
3212
|
-
"
|
|
3213
|
-
"
|
|
3368
|
+
"job",
|
|
3369
|
+
"log.js"
|
|
3214
3370
|
],
|
|
3215
3371
|
"aliasPermutations": [],
|
|
3216
3372
|
"permutations": [
|
|
3217
|
-
"gitlab:ci:
|
|
3218
|
-
"ci:gitlab:
|
|
3219
|
-
"ci:
|
|
3220
|
-
"ci:
|
|
3221
|
-
"gitlab:
|
|
3222
|
-
"
|
|
3223
|
-
"
|
|
3224
|
-
"
|
|
3225
|
-
"gitlab:
|
|
3226
|
-
"
|
|
3227
|
-
"
|
|
3228
|
-
"
|
|
3229
|
-
"gitlab:ci:
|
|
3230
|
-
"ci:gitlab:
|
|
3231
|
-
"ci:
|
|
3232
|
-
"ci:
|
|
3233
|
-
"gitlab:
|
|
3234
|
-
"
|
|
3235
|
-
"
|
|
3236
|
-
"
|
|
3237
|
-
"gitlab:
|
|
3238
|
-
"
|
|
3239
|
-
"
|
|
3240
|
-
"
|
|
3373
|
+
"gitlab:ci:job:log",
|
|
3374
|
+
"ci:gitlab:job:log",
|
|
3375
|
+
"ci:job:gitlab:log",
|
|
3376
|
+
"ci:job:log:gitlab",
|
|
3377
|
+
"gitlab:job:ci:log",
|
|
3378
|
+
"job:gitlab:ci:log",
|
|
3379
|
+
"job:ci:gitlab:log",
|
|
3380
|
+
"job:ci:log:gitlab",
|
|
3381
|
+
"gitlab:job:log:ci",
|
|
3382
|
+
"job:gitlab:log:ci",
|
|
3383
|
+
"job:log:gitlab:ci",
|
|
3384
|
+
"job:log:ci:gitlab",
|
|
3385
|
+
"gitlab:ci:log:job",
|
|
3386
|
+
"ci:gitlab:log:job",
|
|
3387
|
+
"ci:log:gitlab:job",
|
|
3388
|
+
"ci:log:job:gitlab",
|
|
3389
|
+
"gitlab:log:ci:job",
|
|
3390
|
+
"log:gitlab:ci:job",
|
|
3391
|
+
"log:ci:gitlab:job",
|
|
3392
|
+
"log:ci:job:gitlab",
|
|
3393
|
+
"gitlab:log:job:ci",
|
|
3394
|
+
"log:gitlab:job:ci",
|
|
3395
|
+
"log:job:gitlab:ci",
|
|
3396
|
+
"log:job:ci:gitlab"
|
|
3241
3397
|
]
|
|
3242
3398
|
}
|
|
3243
3399
|
},
|
|
3244
|
-
"version": "0.
|
|
3400
|
+
"version": "0.8.0"
|
|
3245
3401
|
}
|