@simplysf/simply-gitlab 0.6.3 → 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 +665 -509
- package/package.json +3 -3
package/oclif.manifest.json
CHANGED
|
@@ -1546,16 +1546,13 @@
|
|
|
1546
1546
|
"view:file:gitlab"
|
|
1547
1547
|
]
|
|
1548
1548
|
},
|
|
1549
|
-
"gitlab:
|
|
1549
|
+
"gitlab:mr:create": {
|
|
1550
1550
|
"aliases": [],
|
|
1551
1551
|
"args": {},
|
|
1552
|
-
"description": "
|
|
1552
|
+
"description": "Both branches must already exist on the project. --draft prefixes the title with \"Draft: \", which is how GitLab itself marks a draft; there is no separate field for it.\n\nAssignees and reviewers are numeric user ids, not usernames — GitLab accepts only ids here. --body or --body-file supplies raw JSON for anything the flags do not cover, such as approval rules. Use --dry-run to see exactly what would be sent.",
|
|
1553
1553
|
"examples": [
|
|
1554
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1555
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1556
|
-
"<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps --template service-skeleton --template-group platform/templates",
|
|
1557
|
-
"<%= config.bin %> <%= command.id %> --path new-service --template-project platform/templates/service-skeleton --dry-run",
|
|
1558
|
-
"<%= config.bin %> <%= command.id %> --name new-service --template-project platform/templates/service-skeleton --template-group platform/templates"
|
|
1554
|
+
"<%= config.bin %> <%= command.id %> --project group/project --source-branch feature --target-branch main --title \"feat: the thing\"",
|
|
1555
|
+
"<%= config.bin %> <%= command.id %> --project group/project --source-branch feature --target-branch main --title wip --draft --squash"
|
|
1559
1556
|
],
|
|
1560
1557
|
"flags": {
|
|
1561
1558
|
"json": {
|
|
@@ -1593,96 +1590,92 @@
|
|
|
1593
1590
|
"multiple": false,
|
|
1594
1591
|
"type": "option"
|
|
1595
1592
|
},
|
|
1593
|
+
"project": {
|
|
1594
|
+
"char": "p",
|
|
1595
|
+
"env": "GITLAB_PROJECT",
|
|
1596
|
+
"name": "project",
|
|
1597
|
+
"required": true,
|
|
1598
|
+
"summary": "Project id, or its full path such as group/subgroup/project.",
|
|
1599
|
+
"hasDynamicHelp": false,
|
|
1600
|
+
"multiple": false,
|
|
1601
|
+
"type": "option"
|
|
1602
|
+
},
|
|
1596
1603
|
"dry-run": {
|
|
1597
1604
|
"name": "dry-run",
|
|
1598
1605
|
"summary": "Print the request that would be sent and exit without sending it.",
|
|
1599
1606
|
"allowNo": false,
|
|
1600
1607
|
"type": "boolean"
|
|
1601
1608
|
},
|
|
1602
|
-
"
|
|
1603
|
-
"name": "
|
|
1604
|
-
"summary": "
|
|
1609
|
+
"source-branch": {
|
|
1610
|
+
"name": "source-branch",
|
|
1611
|
+
"summary": "Branch holding the changes.",
|
|
1605
1612
|
"hasDynamicHelp": false,
|
|
1606
1613
|
"multiple": false,
|
|
1607
1614
|
"type": "option"
|
|
1608
1615
|
},
|
|
1609
|
-
"
|
|
1610
|
-
"name": "
|
|
1611
|
-
"summary": "
|
|
1616
|
+
"target-branch": {
|
|
1617
|
+
"name": "target-branch",
|
|
1618
|
+
"summary": "Branch the changes are proposed for.",
|
|
1612
1619
|
"hasDynamicHelp": false,
|
|
1613
1620
|
"multiple": false,
|
|
1614
1621
|
"type": "option"
|
|
1615
1622
|
},
|
|
1616
|
-
"
|
|
1617
|
-
"
|
|
1618
|
-
"
|
|
1619
|
-
"summary": "Group or user namespace to create the project in, by id or full path.",
|
|
1623
|
+
"title": {
|
|
1624
|
+
"name": "title",
|
|
1625
|
+
"summary": "Merge request title.",
|
|
1620
1626
|
"hasDynamicHelp": false,
|
|
1621
1627
|
"multiple": false,
|
|
1622
1628
|
"type": "option"
|
|
1623
1629
|
},
|
|
1624
1630
|
"description": {
|
|
1625
1631
|
"name": "description",
|
|
1626
|
-
"summary": "
|
|
1632
|
+
"summary": "Merge request description, as Markdown.",
|
|
1627
1633
|
"hasDynamicHelp": false,
|
|
1628
1634
|
"multiple": false,
|
|
1629
1635
|
"type": "option"
|
|
1630
1636
|
},
|
|
1631
|
-
"
|
|
1632
|
-
"name": "
|
|
1633
|
-
"summary": "
|
|
1634
|
-
"
|
|
1635
|
-
"
|
|
1636
|
-
"options": [
|
|
1637
|
-
"private",
|
|
1638
|
-
"internal",
|
|
1639
|
-
"public"
|
|
1640
|
-
],
|
|
1641
|
-
"type": "option"
|
|
1637
|
+
"draft": {
|
|
1638
|
+
"name": "draft",
|
|
1639
|
+
"summary": "Open it as a draft.",
|
|
1640
|
+
"allowNo": false,
|
|
1641
|
+
"type": "boolean"
|
|
1642
1642
|
},
|
|
1643
|
-
"
|
|
1644
|
-
"name": "
|
|
1645
|
-
"summary": "
|
|
1646
|
-
"
|
|
1647
|
-
"
|
|
1648
|
-
"type": "option"
|
|
1643
|
+
"squash": {
|
|
1644
|
+
"name": "squash",
|
|
1645
|
+
"summary": "Squash the commits when it merges.",
|
|
1646
|
+
"allowNo": false,
|
|
1647
|
+
"type": "boolean"
|
|
1649
1648
|
},
|
|
1650
|
-
"
|
|
1651
|
-
"name": "
|
|
1652
|
-
"summary": "
|
|
1649
|
+
"remove-source-branch": {
|
|
1650
|
+
"name": "remove-source-branch",
|
|
1651
|
+
"summary": "Delete the source branch on merge.",
|
|
1653
1652
|
"allowNo": false,
|
|
1654
1653
|
"type": "boolean"
|
|
1655
1654
|
},
|
|
1656
|
-
"
|
|
1657
|
-
"name": "
|
|
1658
|
-
"summary": "
|
|
1655
|
+
"assignee-id": {
|
|
1656
|
+
"name": "assignee-id",
|
|
1657
|
+
"summary": "User id to assign. Repeatable.",
|
|
1659
1658
|
"hasDynamicHelp": false,
|
|
1660
|
-
"multiple":
|
|
1659
|
+
"multiple": true,
|
|
1661
1660
|
"type": "option"
|
|
1662
1661
|
},
|
|
1663
|
-
"
|
|
1664
|
-
"name": "
|
|
1665
|
-
"summary": "
|
|
1662
|
+
"reviewer-id": {
|
|
1663
|
+
"name": "reviewer-id",
|
|
1664
|
+
"summary": "User id to request review from. Repeatable.",
|
|
1666
1665
|
"hasDynamicHelp": false,
|
|
1667
|
-
"multiple":
|
|
1666
|
+
"multiple": true,
|
|
1668
1667
|
"type": "option"
|
|
1669
1668
|
},
|
|
1670
|
-
"
|
|
1671
|
-
"name": "
|
|
1672
|
-
"summary": "
|
|
1673
|
-
"allowNo": false,
|
|
1674
|
-
"type": "boolean"
|
|
1675
|
-
},
|
|
1676
|
-
"template-group": {
|
|
1677
|
-
"name": "template-group",
|
|
1678
|
-
"summary": "Group whose custom project templates --template or --template-project names, by id or full path.",
|
|
1669
|
+
"labels": {
|
|
1670
|
+
"name": "labels",
|
|
1671
|
+
"summary": "Comma-separated labels to apply.",
|
|
1679
1672
|
"hasDynamicHelp": false,
|
|
1680
1673
|
"multiple": false,
|
|
1681
1674
|
"type": "option"
|
|
1682
1675
|
},
|
|
1683
|
-
"
|
|
1684
|
-
"name": "
|
|
1685
|
-
"summary": "
|
|
1676
|
+
"milestone-id": {
|
|
1677
|
+
"name": "milestone-id",
|
|
1678
|
+
"summary": "Milestone id to attach.",
|
|
1686
1679
|
"hasDynamicHelp": false,
|
|
1687
1680
|
"multiple": false,
|
|
1688
1681
|
"type": "option"
|
|
@@ -1707,12 +1700,12 @@
|
|
|
1707
1700
|
},
|
|
1708
1701
|
"hasDynamicHelp": false,
|
|
1709
1702
|
"hiddenAliases": [],
|
|
1710
|
-
"id": "gitlab:
|
|
1703
|
+
"id": "gitlab:mr:create",
|
|
1711
1704
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
1712
1705
|
"pluginName": "@simplysf/simply-gitlab",
|
|
1713
1706
|
"pluginType": "core",
|
|
1714
1707
|
"strict": true,
|
|
1715
|
-
"summary": "
|
|
1708
|
+
"summary": "Open a merge request.",
|
|
1716
1709
|
"enableJsonFlag": true,
|
|
1717
1710
|
"isWrite": true,
|
|
1718
1711
|
"isESM": true,
|
|
@@ -1720,27 +1713,27 @@
|
|
|
1720
1713
|
"lib",
|
|
1721
1714
|
"commands",
|
|
1722
1715
|
"gitlab",
|
|
1723
|
-
"
|
|
1716
|
+
"mr",
|
|
1724
1717
|
"create.js"
|
|
1725
1718
|
],
|
|
1726
1719
|
"aliasPermutations": [],
|
|
1727
1720
|
"permutations": [
|
|
1728
|
-
"gitlab:
|
|
1729
|
-
"
|
|
1730
|
-
"
|
|
1731
|
-
"gitlab:create:
|
|
1732
|
-
"create:gitlab:
|
|
1733
|
-
"create:
|
|
1721
|
+
"gitlab:mr:create",
|
|
1722
|
+
"mr:gitlab:create",
|
|
1723
|
+
"mr:create:gitlab",
|
|
1724
|
+
"gitlab:create:mr",
|
|
1725
|
+
"create:gitlab:mr",
|
|
1726
|
+
"create:mr:gitlab"
|
|
1734
1727
|
]
|
|
1735
1728
|
},
|
|
1736
|
-
"gitlab:
|
|
1729
|
+
"gitlab:mr:list": {
|
|
1737
1730
|
"aliases": [],
|
|
1738
1731
|
"args": {},
|
|
1739
|
-
"description": "
|
|
1732
|
+
"description": "Defaults to open merge requests, which is what a list is nearly always for; pass --state all to include closed and merged ones. The IID column is the number to pass to the other mr commands — it is per-project, and is not the \"id\" field in the JSON payload.",
|
|
1740
1733
|
"examples": [
|
|
1741
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1742
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1743
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1734
|
+
"<%= config.bin %> <%= command.id %> --project group/project",
|
|
1735
|
+
"<%= config.bin %> <%= command.id %> --project group/project --state merged --target-branch main --limit 10",
|
|
1736
|
+
"<%= config.bin %> <%= command.id %> --project group/project --author-username someone --json"
|
|
1744
1737
|
],
|
|
1745
1738
|
"flags": {
|
|
1746
1739
|
"json": {
|
|
@@ -1778,48 +1771,90 @@
|
|
|
1778
1771
|
"multiple": false,
|
|
1779
1772
|
"type": "option"
|
|
1780
1773
|
},
|
|
1774
|
+
"project": {
|
|
1775
|
+
"char": "p",
|
|
1776
|
+
"env": "GITLAB_PROJECT",
|
|
1777
|
+
"name": "project",
|
|
1778
|
+
"required": true,
|
|
1779
|
+
"summary": "Project id, or its full path such as group/subgroup/project.",
|
|
1780
|
+
"hasDynamicHelp": false,
|
|
1781
|
+
"multiple": false,
|
|
1782
|
+
"type": "option"
|
|
1783
|
+
},
|
|
1781
1784
|
"limit": {
|
|
1782
1785
|
"name": "limit",
|
|
1783
|
-
"summary": "Maximum number of
|
|
1786
|
+
"summary": "Maximum number of merge requests to return across all pages.",
|
|
1784
1787
|
"default": 20,
|
|
1785
1788
|
"hasDynamicHelp": false,
|
|
1786
1789
|
"multiple": false,
|
|
1787
1790
|
"type": "option"
|
|
1788
1791
|
},
|
|
1789
|
-
"
|
|
1790
|
-
"name": "
|
|
1791
|
-
"summary": "
|
|
1792
|
+
"state": {
|
|
1793
|
+
"name": "state",
|
|
1794
|
+
"summary": "Merge request state to return.",
|
|
1795
|
+
"default": "opened",
|
|
1792
1796
|
"hasDynamicHelp": false,
|
|
1793
1797
|
"multiple": false,
|
|
1798
|
+
"options": [
|
|
1799
|
+
"opened",
|
|
1800
|
+
"closed",
|
|
1801
|
+
"locked",
|
|
1802
|
+
"merged",
|
|
1803
|
+
"all"
|
|
1804
|
+
],
|
|
1794
1805
|
"type": "option"
|
|
1795
1806
|
},
|
|
1796
|
-
"
|
|
1797
|
-
"name": "
|
|
1798
|
-
"summary": "Only
|
|
1799
|
-
"
|
|
1800
|
-
"
|
|
1807
|
+
"source-branch": {
|
|
1808
|
+
"name": "source-branch",
|
|
1809
|
+
"summary": "Only merge requests from this source branch.",
|
|
1810
|
+
"hasDynamicHelp": false,
|
|
1811
|
+
"multiple": false,
|
|
1812
|
+
"type": "option"
|
|
1801
1813
|
},
|
|
1802
|
-
"
|
|
1803
|
-
"name": "
|
|
1804
|
-
"summary": "Only
|
|
1805
|
-
"
|
|
1806
|
-
"
|
|
1814
|
+
"target-branch": {
|
|
1815
|
+
"name": "target-branch",
|
|
1816
|
+
"summary": "Only merge requests into this target branch.",
|
|
1817
|
+
"hasDynamicHelp": false,
|
|
1818
|
+
"multiple": false,
|
|
1819
|
+
"type": "option"
|
|
1807
1820
|
},
|
|
1808
|
-
"
|
|
1809
|
-
"name": "
|
|
1810
|
-
"summary": "
|
|
1811
|
-
"
|
|
1812
|
-
"
|
|
1821
|
+
"author-username": {
|
|
1822
|
+
"name": "author-username",
|
|
1823
|
+
"summary": "Only merge requests opened by this username.",
|
|
1824
|
+
"hasDynamicHelp": false,
|
|
1825
|
+
"multiple": false,
|
|
1826
|
+
"type": "option"
|
|
1827
|
+
},
|
|
1828
|
+
"reviewer-username": {
|
|
1829
|
+
"name": "reviewer-username",
|
|
1830
|
+
"summary": "Only merge requests this username is reviewing.",
|
|
1831
|
+
"hasDynamicHelp": false,
|
|
1832
|
+
"multiple": false,
|
|
1833
|
+
"type": "option"
|
|
1834
|
+
},
|
|
1835
|
+
"labels": {
|
|
1836
|
+
"name": "labels",
|
|
1837
|
+
"summary": "Comma-separated labels every result must carry.",
|
|
1838
|
+
"hasDynamicHelp": false,
|
|
1839
|
+
"multiple": false,
|
|
1840
|
+
"type": "option"
|
|
1841
|
+
},
|
|
1842
|
+
"search": {
|
|
1843
|
+
"name": "search",
|
|
1844
|
+
"summary": "Match against the title and description.",
|
|
1845
|
+
"hasDynamicHelp": false,
|
|
1846
|
+
"multiple": false,
|
|
1847
|
+
"type": "option"
|
|
1813
1848
|
}
|
|
1814
1849
|
},
|
|
1815
1850
|
"hasDynamicHelp": false,
|
|
1816
1851
|
"hiddenAliases": [],
|
|
1817
|
-
"id": "gitlab:
|
|
1852
|
+
"id": "gitlab:mr:list",
|
|
1818
1853
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
1819
1854
|
"pluginName": "@simplysf/simply-gitlab",
|
|
1820
1855
|
"pluginType": "core",
|
|
1821
1856
|
"strict": true,
|
|
1822
|
-
"summary": "List
|
|
1857
|
+
"summary": "List merge requests for a project.",
|
|
1823
1858
|
"enableJsonFlag": true,
|
|
1824
1859
|
"isWrite": false,
|
|
1825
1860
|
"isESM": true,
|
|
@@ -1827,26 +1862,28 @@
|
|
|
1827
1862
|
"lib",
|
|
1828
1863
|
"commands",
|
|
1829
1864
|
"gitlab",
|
|
1830
|
-
"
|
|
1865
|
+
"mr",
|
|
1831
1866
|
"list.js"
|
|
1832
1867
|
],
|
|
1833
1868
|
"aliasPermutations": [],
|
|
1834
1869
|
"permutations": [
|
|
1835
|
-
"gitlab:
|
|
1836
|
-
"
|
|
1837
|
-
"
|
|
1838
|
-
"gitlab:list:
|
|
1839
|
-
"list:gitlab:
|
|
1840
|
-
"list:
|
|
1870
|
+
"gitlab:mr:list",
|
|
1871
|
+
"mr:gitlab:list",
|
|
1872
|
+
"mr:list:gitlab",
|
|
1873
|
+
"gitlab:list:mr",
|
|
1874
|
+
"list:gitlab:mr",
|
|
1875
|
+
"list:mr:gitlab"
|
|
1841
1876
|
]
|
|
1842
1877
|
},
|
|
1843
|
-
"gitlab:
|
|
1878
|
+
"gitlab:mr:merge": {
|
|
1844
1879
|
"aliases": [],
|
|
1845
1880
|
"args": {},
|
|
1846
|
-
"description": "
|
|
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.",
|
|
1847
1882
|
"examples": [
|
|
1848
|
-
"<%= config.bin %> <%= command.id %> --project group/project",
|
|
1849
|
-
"<%= config.bin %> <%= command.id %> --project
|
|
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"
|
|
1850
1887
|
],
|
|
1851
1888
|
"flags": {
|
|
1852
1889
|
"json": {
|
|
@@ -1893,43 +1930,115 @@
|
|
|
1893
1930
|
"hasDynamicHelp": false,
|
|
1894
1931
|
"multiple": false,
|
|
1895
1932
|
"type": "option"
|
|
1896
|
-
}
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
"
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
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"
|
|
1915
2023
|
],
|
|
1916
2024
|
"aliasPermutations": [],
|
|
1917
2025
|
"permutations": [
|
|
1918
|
-
"gitlab:
|
|
1919
|
-
"
|
|
1920
|
-
"
|
|
1921
|
-
"gitlab:
|
|
1922
|
-
"
|
|
1923
|
-
"
|
|
2026
|
+
"gitlab:mr:merge",
|
|
2027
|
+
"mr:gitlab:merge",
|
|
2028
|
+
"mr:merge:gitlab",
|
|
2029
|
+
"gitlab:merge:mr",
|
|
2030
|
+
"merge:gitlab:mr",
|
|
2031
|
+
"merge:mr:gitlab"
|
|
1924
2032
|
]
|
|
1925
2033
|
},
|
|
1926
|
-
"gitlab:mr:
|
|
2034
|
+
"gitlab:mr:update": {
|
|
1927
2035
|
"aliases": [],
|
|
1928
2036
|
"args": {},
|
|
1929
|
-
"description": "
|
|
2037
|
+
"description": "Only the attributes you name are changed, with one exception worth knowing: --labels replaces the whole label set rather than adding to it.\n\nNaming nothing to change is refused rather than sent, because GitLab answers an empty update with a cheerful 200 and an unchanged merge request. --state close and --state reopen do what the buttons of those names do; neither merges anything.",
|
|
1930
2038
|
"examples": [
|
|
1931
|
-
"<%= config.bin %> <%= command.id %> --project group/project --
|
|
1932
|
-
"<%= config.bin %> <%= command.id %> --project group/project --
|
|
2039
|
+
"<%= config.bin %> <%= command.id %> --project group/project --mr 42 --title \"feat: renamed\"",
|
|
2040
|
+
"<%= config.bin %> <%= command.id %> --project group/project --mr 42 --state close",
|
|
2041
|
+
"<%= config.bin %> <%= command.id %> --project group/project --mr 42 --labels backend,urgent --dry-run"
|
|
1933
2042
|
],
|
|
1934
2043
|
"flags": {
|
|
1935
2044
|
"json": {
|
|
@@ -1983,69 +2092,75 @@
|
|
|
1983
2092
|
"allowNo": false,
|
|
1984
2093
|
"type": "boolean"
|
|
1985
2094
|
},
|
|
1986
|
-
"
|
|
1987
|
-
"name": "
|
|
1988
|
-
"
|
|
1989
|
-
"
|
|
1990
|
-
"multiple": false,
|
|
1991
|
-
"type": "option"
|
|
1992
|
-
},
|
|
1993
|
-
"target-branch": {
|
|
1994
|
-
"name": "target-branch",
|
|
1995
|
-
"summary": "Branch the changes are proposed for.",
|
|
2095
|
+
"mr": {
|
|
2096
|
+
"name": "mr",
|
|
2097
|
+
"required": true,
|
|
2098
|
+
"summary": "Merge request iid.",
|
|
1996
2099
|
"hasDynamicHelp": false,
|
|
1997
2100
|
"multiple": false,
|
|
1998
2101
|
"type": "option"
|
|
1999
2102
|
},
|
|
2000
2103
|
"title": {
|
|
2001
2104
|
"name": "title",
|
|
2002
|
-
"summary": "
|
|
2105
|
+
"summary": "New title.",
|
|
2003
2106
|
"hasDynamicHelp": false,
|
|
2004
2107
|
"multiple": false,
|
|
2005
2108
|
"type": "option"
|
|
2006
2109
|
},
|
|
2007
2110
|
"description": {
|
|
2008
2111
|
"name": "description",
|
|
2009
|
-
"summary": "
|
|
2112
|
+
"summary": "New description, as Markdown.",
|
|
2010
2113
|
"hasDynamicHelp": false,
|
|
2011
2114
|
"multiple": false,
|
|
2012
2115
|
"type": "option"
|
|
2013
2116
|
},
|
|
2014
|
-
"
|
|
2015
|
-
"name": "
|
|
2016
|
-
"summary": "
|
|
2017
|
-
"
|
|
2018
|
-
"
|
|
2117
|
+
"target-branch": {
|
|
2118
|
+
"name": "target-branch",
|
|
2119
|
+
"summary": "New target branch.",
|
|
2120
|
+
"hasDynamicHelp": false,
|
|
2121
|
+
"multiple": false,
|
|
2122
|
+
"type": "option"
|
|
2123
|
+
},
|
|
2124
|
+
"state": {
|
|
2125
|
+
"name": "state",
|
|
2126
|
+
"summary": "Close or reopen the merge request.",
|
|
2127
|
+
"hasDynamicHelp": false,
|
|
2128
|
+
"multiple": false,
|
|
2129
|
+
"options": [
|
|
2130
|
+
"close",
|
|
2131
|
+
"reopen"
|
|
2132
|
+
],
|
|
2133
|
+
"type": "option"
|
|
2019
2134
|
},
|
|
2020
2135
|
"squash": {
|
|
2021
2136
|
"name": "squash",
|
|
2022
2137
|
"summary": "Squash the commits when it merges.",
|
|
2023
|
-
"allowNo":
|
|
2138
|
+
"allowNo": true,
|
|
2024
2139
|
"type": "boolean"
|
|
2025
2140
|
},
|
|
2026
2141
|
"remove-source-branch": {
|
|
2027
2142
|
"name": "remove-source-branch",
|
|
2028
2143
|
"summary": "Delete the source branch on merge.",
|
|
2029
|
-
"allowNo":
|
|
2144
|
+
"allowNo": true,
|
|
2030
2145
|
"type": "boolean"
|
|
2031
2146
|
},
|
|
2032
2147
|
"assignee-id": {
|
|
2033
2148
|
"name": "assignee-id",
|
|
2034
|
-
"summary": "User id to assign. Repeatable.",
|
|
2149
|
+
"summary": "User id to assign, replacing the set. Repeatable.",
|
|
2035
2150
|
"hasDynamicHelp": false,
|
|
2036
2151
|
"multiple": true,
|
|
2037
2152
|
"type": "option"
|
|
2038
2153
|
},
|
|
2039
2154
|
"reviewer-id": {
|
|
2040
2155
|
"name": "reviewer-id",
|
|
2041
|
-
"summary": "User id to
|
|
2156
|
+
"summary": "User id to review, replacing the set. Repeatable.",
|
|
2042
2157
|
"hasDynamicHelp": false,
|
|
2043
2158
|
"multiple": true,
|
|
2044
2159
|
"type": "option"
|
|
2045
2160
|
},
|
|
2046
2161
|
"labels": {
|
|
2047
2162
|
"name": "labels",
|
|
2048
|
-
"summary": "Comma-separated labels
|
|
2163
|
+
"summary": "Comma-separated labels, replacing the existing set.",
|
|
2049
2164
|
"hasDynamicHelp": false,
|
|
2050
2165
|
"multiple": false,
|
|
2051
2166
|
"type": "option"
|
|
@@ -2077,12 +2192,12 @@
|
|
|
2077
2192
|
},
|
|
2078
2193
|
"hasDynamicHelp": false,
|
|
2079
2194
|
"hiddenAliases": [],
|
|
2080
|
-
"id": "gitlab:mr:
|
|
2195
|
+
"id": "gitlab:mr:update",
|
|
2081
2196
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
2082
2197
|
"pluginName": "@simplysf/simply-gitlab",
|
|
2083
2198
|
"pluginType": "core",
|
|
2084
2199
|
"strict": true,
|
|
2085
|
-
"summary": "
|
|
2200
|
+
"summary": "Change an existing merge request.",
|
|
2086
2201
|
"enableJsonFlag": true,
|
|
2087
2202
|
"isWrite": true,
|
|
2088
2203
|
"isESM": true,
|
|
@@ -2091,26 +2206,25 @@
|
|
|
2091
2206
|
"commands",
|
|
2092
2207
|
"gitlab",
|
|
2093
2208
|
"mr",
|
|
2094
|
-
"
|
|
2209
|
+
"update.js"
|
|
2095
2210
|
],
|
|
2096
2211
|
"aliasPermutations": [],
|
|
2097
2212
|
"permutations": [
|
|
2098
|
-
"gitlab:mr:
|
|
2099
|
-
"mr:gitlab:
|
|
2100
|
-
"mr:
|
|
2101
|
-
"gitlab:
|
|
2102
|
-
"
|
|
2103
|
-
"
|
|
2213
|
+
"gitlab:mr:update",
|
|
2214
|
+
"mr:gitlab:update",
|
|
2215
|
+
"mr:update:gitlab",
|
|
2216
|
+
"gitlab:update:mr",
|
|
2217
|
+
"update:gitlab:mr",
|
|
2218
|
+
"update:mr:gitlab"
|
|
2104
2219
|
]
|
|
2105
2220
|
},
|
|
2106
|
-
"gitlab:mr:
|
|
2221
|
+
"gitlab:mr:view": {
|
|
2107
2222
|
"aliases": [],
|
|
2108
2223
|
"args": {},
|
|
2109
|
-
"description": "
|
|
2224
|
+
"description": "Takes the project-scoped iid — the number in the merge request URL — not the instance-wide id. Use --json for the full payload, which carries the pipeline status, approvals, and diff refs the summary below leaves out.",
|
|
2110
2225
|
"examples": [
|
|
2111
|
-
"<%= config.bin %> <%= command.id %> --project group/project",
|
|
2112
|
-
"<%= config.bin %> <%= command.id %> --project group/project --
|
|
2113
|
-
"<%= config.bin %> <%= command.id %> --project group/project --author-username someone --json"
|
|
2226
|
+
"<%= config.bin %> <%= command.id %> --project group/project --mr 42",
|
|
2227
|
+
"<%= config.bin %> <%= command.id %> --project group/project --mr 42 --json"
|
|
2114
2228
|
],
|
|
2115
2229
|
"flags": {
|
|
2116
2230
|
"json": {
|
|
@@ -2158,67 +2272,10 @@
|
|
|
2158
2272
|
"multiple": false,
|
|
2159
2273
|
"type": "option"
|
|
2160
2274
|
},
|
|
2161
|
-
"
|
|
2162
|
-
"name": "
|
|
2163
|
-
"
|
|
2164
|
-
"
|
|
2165
|
-
"hasDynamicHelp": false,
|
|
2166
|
-
"multiple": false,
|
|
2167
|
-
"type": "option"
|
|
2168
|
-
},
|
|
2169
|
-
"state": {
|
|
2170
|
-
"name": "state",
|
|
2171
|
-
"summary": "Merge request state to return.",
|
|
2172
|
-
"default": "opened",
|
|
2173
|
-
"hasDynamicHelp": false,
|
|
2174
|
-
"multiple": false,
|
|
2175
|
-
"options": [
|
|
2176
|
-
"opened",
|
|
2177
|
-
"closed",
|
|
2178
|
-
"locked",
|
|
2179
|
-
"merged",
|
|
2180
|
-
"all"
|
|
2181
|
-
],
|
|
2182
|
-
"type": "option"
|
|
2183
|
-
},
|
|
2184
|
-
"source-branch": {
|
|
2185
|
-
"name": "source-branch",
|
|
2186
|
-
"summary": "Only merge requests from this source branch.",
|
|
2187
|
-
"hasDynamicHelp": false,
|
|
2188
|
-
"multiple": false,
|
|
2189
|
-
"type": "option"
|
|
2190
|
-
},
|
|
2191
|
-
"target-branch": {
|
|
2192
|
-
"name": "target-branch",
|
|
2193
|
-
"summary": "Only merge requests into this target branch.",
|
|
2194
|
-
"hasDynamicHelp": false,
|
|
2195
|
-
"multiple": false,
|
|
2196
|
-
"type": "option"
|
|
2197
|
-
},
|
|
2198
|
-
"author-username": {
|
|
2199
|
-
"name": "author-username",
|
|
2200
|
-
"summary": "Only merge requests opened by this username.",
|
|
2201
|
-
"hasDynamicHelp": false,
|
|
2202
|
-
"multiple": false,
|
|
2203
|
-
"type": "option"
|
|
2204
|
-
},
|
|
2205
|
-
"reviewer-username": {
|
|
2206
|
-
"name": "reviewer-username",
|
|
2207
|
-
"summary": "Only merge requests this username is reviewing.",
|
|
2208
|
-
"hasDynamicHelp": false,
|
|
2209
|
-
"multiple": false,
|
|
2210
|
-
"type": "option"
|
|
2211
|
-
},
|
|
2212
|
-
"labels": {
|
|
2213
|
-
"name": "labels",
|
|
2214
|
-
"summary": "Comma-separated labels every result must carry.",
|
|
2215
|
-
"hasDynamicHelp": false,
|
|
2216
|
-
"multiple": false,
|
|
2217
|
-
"type": "option"
|
|
2218
|
-
},
|
|
2219
|
-
"search": {
|
|
2220
|
-
"name": "search",
|
|
2221
|
-
"summary": "Match against the title and description.",
|
|
2275
|
+
"mr": {
|
|
2276
|
+
"name": "mr",
|
|
2277
|
+
"required": true,
|
|
2278
|
+
"summary": "Merge request iid.",
|
|
2222
2279
|
"hasDynamicHelp": false,
|
|
2223
2280
|
"multiple": false,
|
|
2224
2281
|
"type": "option"
|
|
@@ -2226,12 +2283,12 @@
|
|
|
2226
2283
|
},
|
|
2227
2284
|
"hasDynamicHelp": false,
|
|
2228
2285
|
"hiddenAliases": [],
|
|
2229
|
-
"id": "gitlab:mr:
|
|
2286
|
+
"id": "gitlab:mr:view",
|
|
2230
2287
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
2231
2288
|
"pluginName": "@simplysf/simply-gitlab",
|
|
2232
2289
|
"pluginType": "core",
|
|
2233
2290
|
"strict": true,
|
|
2234
|
-
"summary": "
|
|
2291
|
+
"summary": "Show one merge request.",
|
|
2235
2292
|
"enableJsonFlag": true,
|
|
2236
2293
|
"isWrite": false,
|
|
2237
2294
|
"isESM": true,
|
|
@@ -2240,26 +2297,28 @@
|
|
|
2240
2297
|
"commands",
|
|
2241
2298
|
"gitlab",
|
|
2242
2299
|
"mr",
|
|
2243
|
-
"
|
|
2300
|
+
"view.js"
|
|
2244
2301
|
],
|
|
2245
2302
|
"aliasPermutations": [],
|
|
2246
2303
|
"permutations": [
|
|
2247
|
-
"gitlab:mr:
|
|
2248
|
-
"mr:gitlab:
|
|
2249
|
-
"mr:
|
|
2250
|
-
"gitlab:
|
|
2251
|
-
"
|
|
2252
|
-
"
|
|
2304
|
+
"gitlab:mr:view",
|
|
2305
|
+
"mr:gitlab:view",
|
|
2306
|
+
"mr:view:gitlab",
|
|
2307
|
+
"gitlab:view:mr",
|
|
2308
|
+
"view:gitlab:mr",
|
|
2309
|
+
"view:mr:gitlab"
|
|
2253
2310
|
]
|
|
2254
2311
|
},
|
|
2255
|
-
"gitlab:
|
|
2312
|
+
"gitlab:project:create": {
|
|
2256
2313
|
"aliases": [],
|
|
2257
2314
|
"args": {},
|
|
2258
|
-
"description": "
|
|
2315
|
+
"description": "Creates the project in --namespace, or in the namespace of the token owner when none is given. Give it --name or --path; GitLab derives whichever one is missing.\n\n--template names one of the built-in templates GitLab ships, such as express or rails. To create from a custom template instead, add --custom-template for one the instance administrator registered, --template-group for one in a group, or use --template-project to name the template project itself by id or path — which GitLab prefers, because a name can be ambiguous. Add --template-group to --template-project when the template belongs to a group rather than the instance. Custom templates need a Premium or Ultimate instance.\n\nA template is applied asynchronously: this command returns as soon as the project record exists, with an import status of \"scheduled\", and the files arrive a few seconds later. Check \"project view\" until its import_status reads \"finished\" before writing to the repository. --dry-run prints the exact request body; a namespace or template given as a path is still looked up, so the printed ids are the ones that would be sent.",
|
|
2259
2316
|
"examples": [
|
|
2260
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2261
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2262
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2317
|
+
"<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps",
|
|
2318
|
+
"<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps --template express --visibility internal",
|
|
2319
|
+
"<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps --template service-skeleton --template-group platform/templates",
|
|
2320
|
+
"<%= config.bin %> <%= command.id %> --path new-service --template-project platform/templates/service-skeleton --dry-run",
|
|
2321
|
+
"<%= config.bin %> <%= command.id %> --name new-service --template-project platform/templates/service-skeleton --template-group platform/templates"
|
|
2263
2322
|
],
|
|
2264
2323
|
"flags": {
|
|
2265
2324
|
"json": {
|
|
@@ -2297,98 +2356,96 @@
|
|
|
2297
2356
|
"multiple": false,
|
|
2298
2357
|
"type": "option"
|
|
2299
2358
|
},
|
|
2300
|
-
"project": {
|
|
2301
|
-
"char": "p",
|
|
2302
|
-
"env": "GITLAB_PROJECT",
|
|
2303
|
-
"name": "project",
|
|
2304
|
-
"required": true,
|
|
2305
|
-
"summary": "Project id, or its full path such as group/subgroup/project.",
|
|
2306
|
-
"hasDynamicHelp": false,
|
|
2307
|
-
"multiple": false,
|
|
2308
|
-
"type": "option"
|
|
2309
|
-
},
|
|
2310
2359
|
"dry-run": {
|
|
2311
2360
|
"name": "dry-run",
|
|
2312
2361
|
"summary": "Print the request that would be sent and exit without sending it.",
|
|
2313
2362
|
"allowNo": false,
|
|
2314
2363
|
"type": "boolean"
|
|
2315
2364
|
},
|
|
2316
|
-
"
|
|
2317
|
-
"name": "
|
|
2318
|
-
"
|
|
2319
|
-
"summary": "Merge request iid.",
|
|
2365
|
+
"name": {
|
|
2366
|
+
"name": "name",
|
|
2367
|
+
"summary": "Project name. The path is derived from it when --path is not given.",
|
|
2320
2368
|
"hasDynamicHelp": false,
|
|
2321
2369
|
"multiple": false,
|
|
2322
2370
|
"type": "option"
|
|
2323
2371
|
},
|
|
2324
|
-
"
|
|
2325
|
-
"name": "
|
|
2326
|
-
"summary": "
|
|
2372
|
+
"path": {
|
|
2373
|
+
"name": "path",
|
|
2374
|
+
"summary": "Repository path, the URL slug. The name is derived from it when --name is not given.",
|
|
2327
2375
|
"hasDynamicHelp": false,
|
|
2328
2376
|
"multiple": false,
|
|
2329
2377
|
"type": "option"
|
|
2330
2378
|
},
|
|
2331
|
-
"
|
|
2332
|
-
"
|
|
2333
|
-
"
|
|
2379
|
+
"namespace": {
|
|
2380
|
+
"description": "Defaults to the namespace of the token owner.",
|
|
2381
|
+
"name": "namespace",
|
|
2382
|
+
"summary": "Group or user namespace to create the project in, by id or full path.",
|
|
2334
2383
|
"hasDynamicHelp": false,
|
|
2335
2384
|
"multiple": false,
|
|
2336
2385
|
"type": "option"
|
|
2337
2386
|
},
|
|
2338
|
-
"
|
|
2339
|
-
"name": "
|
|
2340
|
-
"summary": "
|
|
2387
|
+
"description": {
|
|
2388
|
+
"name": "description",
|
|
2389
|
+
"summary": "Project description.",
|
|
2341
2390
|
"hasDynamicHelp": false,
|
|
2342
2391
|
"multiple": false,
|
|
2343
2392
|
"type": "option"
|
|
2344
2393
|
},
|
|
2345
|
-
"
|
|
2346
|
-
"name": "
|
|
2347
|
-
"summary": "
|
|
2394
|
+
"visibility": {
|
|
2395
|
+
"name": "visibility",
|
|
2396
|
+
"summary": "Who can see the project.",
|
|
2348
2397
|
"hasDynamicHelp": false,
|
|
2349
2398
|
"multiple": false,
|
|
2350
2399
|
"options": [
|
|
2351
|
-
"
|
|
2352
|
-
"
|
|
2400
|
+
"private",
|
|
2401
|
+
"internal",
|
|
2402
|
+
"public"
|
|
2353
2403
|
],
|
|
2354
2404
|
"type": "option"
|
|
2355
2405
|
},
|
|
2356
|
-
"
|
|
2357
|
-
"name": "
|
|
2358
|
-
"summary": "
|
|
2359
|
-
"
|
|
2360
|
-
"
|
|
2406
|
+
"default-branch": {
|
|
2407
|
+
"name": "default-branch",
|
|
2408
|
+
"summary": "Name of the default branch.",
|
|
2409
|
+
"hasDynamicHelp": false,
|
|
2410
|
+
"multiple": false,
|
|
2411
|
+
"type": "option"
|
|
2361
2412
|
},
|
|
2362
|
-
"
|
|
2363
|
-
"name": "
|
|
2364
|
-
"summary": "
|
|
2365
|
-
"allowNo":
|
|
2413
|
+
"initialize-with-readme": {
|
|
2414
|
+
"name": "initialize-with-readme",
|
|
2415
|
+
"summary": "Create a first commit holding a README, so the repository is not empty.",
|
|
2416
|
+
"allowNo": false,
|
|
2366
2417
|
"type": "boolean"
|
|
2367
2418
|
},
|
|
2368
|
-
"
|
|
2369
|
-
"name": "
|
|
2370
|
-
"summary": "
|
|
2419
|
+
"topics": {
|
|
2420
|
+
"name": "topics",
|
|
2421
|
+
"summary": "Comma-separated topics to label the project with.",
|
|
2371
2422
|
"hasDynamicHelp": false,
|
|
2372
|
-
"multiple":
|
|
2423
|
+
"multiple": false,
|
|
2373
2424
|
"type": "option"
|
|
2374
2425
|
},
|
|
2375
|
-
"
|
|
2376
|
-
"name": "
|
|
2377
|
-
"summary": "
|
|
2426
|
+
"template": {
|
|
2427
|
+
"name": "template",
|
|
2428
|
+
"summary": "Template to create from: a built-in name, or with --custom-template or --template-group a custom one.",
|
|
2378
2429
|
"hasDynamicHelp": false,
|
|
2379
|
-
"multiple":
|
|
2430
|
+
"multiple": false,
|
|
2380
2431
|
"type": "option"
|
|
2381
2432
|
},
|
|
2382
|
-
"
|
|
2383
|
-
"name": "
|
|
2384
|
-
"summary": "
|
|
2433
|
+
"custom-template": {
|
|
2434
|
+
"name": "custom-template",
|
|
2435
|
+
"summary": "Look --template up among the instance's custom project templates rather than the built-in ones.",
|
|
2436
|
+
"allowNo": false,
|
|
2437
|
+
"type": "boolean"
|
|
2438
|
+
},
|
|
2439
|
+
"template-group": {
|
|
2440
|
+
"name": "template-group",
|
|
2441
|
+
"summary": "Group whose custom project templates --template or --template-project names, by id or full path.",
|
|
2385
2442
|
"hasDynamicHelp": false,
|
|
2386
2443
|
"multiple": false,
|
|
2387
2444
|
"type": "option"
|
|
2388
2445
|
},
|
|
2389
|
-
"
|
|
2390
|
-
"name": "
|
|
2391
|
-
"summary": "
|
|
2446
|
+
"template-project": {
|
|
2447
|
+
"name": "template-project",
|
|
2448
|
+
"summary": "Custom template project to create from, by id or full path. Cannot be combined with --template.",
|
|
2392
2449
|
"hasDynamicHelp": false,
|
|
2393
2450
|
"multiple": false,
|
|
2394
2451
|
"type": "option"
|
|
@@ -2413,12 +2470,12 @@
|
|
|
2413
2470
|
},
|
|
2414
2471
|
"hasDynamicHelp": false,
|
|
2415
2472
|
"hiddenAliases": [],
|
|
2416
|
-
"id": "gitlab:
|
|
2473
|
+
"id": "gitlab:project:create",
|
|
2417
2474
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
2418
2475
|
"pluginName": "@simplysf/simply-gitlab",
|
|
2419
2476
|
"pluginType": "core",
|
|
2420
2477
|
"strict": true,
|
|
2421
|
-
"summary": "
|
|
2478
|
+
"summary": "Create a project, blank or from a template.",
|
|
2422
2479
|
"enableJsonFlag": true,
|
|
2423
2480
|
"isWrite": true,
|
|
2424
2481
|
"isESM": true,
|
|
@@ -2426,26 +2483,133 @@
|
|
|
2426
2483
|
"lib",
|
|
2427
2484
|
"commands",
|
|
2428
2485
|
"gitlab",
|
|
2429
|
-
"
|
|
2430
|
-
"
|
|
2486
|
+
"project",
|
|
2487
|
+
"create.js"
|
|
2431
2488
|
],
|
|
2432
2489
|
"aliasPermutations": [],
|
|
2433
2490
|
"permutations": [
|
|
2434
|
-
"gitlab:
|
|
2435
|
-
"
|
|
2436
|
-
"
|
|
2437
|
-
"gitlab:
|
|
2438
|
-
"
|
|
2439
|
-
"
|
|
2491
|
+
"gitlab:project:create",
|
|
2492
|
+
"project:gitlab:create",
|
|
2493
|
+
"project:create:gitlab",
|
|
2494
|
+
"gitlab:create:project",
|
|
2495
|
+
"create:gitlab:project",
|
|
2496
|
+
"create:project:gitlab"
|
|
2440
2497
|
]
|
|
2441
2498
|
},
|
|
2442
|
-
"gitlab:
|
|
2499
|
+
"gitlab:project:list": {
|
|
2443
2500
|
"aliases": [],
|
|
2444
2501
|
"args": {},
|
|
2445
|
-
"description": "
|
|
2502
|
+
"description": "Without --search this lists every project the token can reach, newest activity first, which on a large instance is not a useful answer — narrow it with --search or --membership. Use --simple for a much smaller payload when you only need ids and paths.",
|
|
2446
2503
|
"examples": [
|
|
2447
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2448
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2504
|
+
"<%= config.bin %> <%= command.id %> --membership",
|
|
2505
|
+
"<%= config.bin %> <%= command.id %> --search platform --limit 10",
|
|
2506
|
+
"<%= config.bin %> <%= command.id %> --search platform --simple --json"
|
|
2507
|
+
],
|
|
2508
|
+
"flags": {
|
|
2509
|
+
"json": {
|
|
2510
|
+
"description": "Format output as json.",
|
|
2511
|
+
"helpGroup": "GLOBAL",
|
|
2512
|
+
"name": "json",
|
|
2513
|
+
"allowNo": false,
|
|
2514
|
+
"type": "boolean"
|
|
2515
|
+
},
|
|
2516
|
+
"env-file": {
|
|
2517
|
+
"char": "e",
|
|
2518
|
+
"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.",
|
|
2519
|
+
"helpGroup": "CONNECTION",
|
|
2520
|
+
"name": "env-file",
|
|
2521
|
+
"summary": "Path to a .env file holding connection settings.",
|
|
2522
|
+
"hasDynamicHelp": false,
|
|
2523
|
+
"multiple": false,
|
|
2524
|
+
"type": "option"
|
|
2525
|
+
},
|
|
2526
|
+
"gitlab-url": {
|
|
2527
|
+
"env": "GITLAB_URL",
|
|
2528
|
+
"helpGroup": "CONNECTION",
|
|
2529
|
+
"name": "gitlab-url",
|
|
2530
|
+
"summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
|
|
2531
|
+
"hasDynamicHelp": false,
|
|
2532
|
+
"multiple": false,
|
|
2533
|
+
"type": "option"
|
|
2534
|
+
},
|
|
2535
|
+
"gitlab-token": {
|
|
2536
|
+
"env": "GITLAB_TOKEN",
|
|
2537
|
+
"helpGroup": "CONNECTION",
|
|
2538
|
+
"name": "gitlab-token",
|
|
2539
|
+
"summary": "Personal, project, or group access token.",
|
|
2540
|
+
"hasDynamicHelp": false,
|
|
2541
|
+
"multiple": false,
|
|
2542
|
+
"type": "option"
|
|
2543
|
+
},
|
|
2544
|
+
"limit": {
|
|
2545
|
+
"name": "limit",
|
|
2546
|
+
"summary": "Maximum number of projects to return across all pages.",
|
|
2547
|
+
"default": 20,
|
|
2548
|
+
"hasDynamicHelp": false,
|
|
2549
|
+
"multiple": false,
|
|
2550
|
+
"type": "option"
|
|
2551
|
+
},
|
|
2552
|
+
"search": {
|
|
2553
|
+
"name": "search",
|
|
2554
|
+
"summary": "Match against the project name and path.",
|
|
2555
|
+
"hasDynamicHelp": false,
|
|
2556
|
+
"multiple": false,
|
|
2557
|
+
"type": "option"
|
|
2558
|
+
},
|
|
2559
|
+
"membership": {
|
|
2560
|
+
"name": "membership",
|
|
2561
|
+
"summary": "Only projects you are a member of.",
|
|
2562
|
+
"allowNo": false,
|
|
2563
|
+
"type": "boolean"
|
|
2564
|
+
},
|
|
2565
|
+
"owned": {
|
|
2566
|
+
"name": "owned",
|
|
2567
|
+
"summary": "Only projects you own.",
|
|
2568
|
+
"allowNo": false,
|
|
2569
|
+
"type": "boolean"
|
|
2570
|
+
},
|
|
2571
|
+
"simple": {
|
|
2572
|
+
"name": "simple",
|
|
2573
|
+
"summary": "Return only the core fields, for a much smaller payload.",
|
|
2574
|
+
"allowNo": false,
|
|
2575
|
+
"type": "boolean"
|
|
2576
|
+
}
|
|
2577
|
+
},
|
|
2578
|
+
"hasDynamicHelp": false,
|
|
2579
|
+
"hiddenAliases": [],
|
|
2580
|
+
"id": "gitlab:project:list",
|
|
2581
|
+
"pluginAlias": "@simplysf/simply-gitlab",
|
|
2582
|
+
"pluginName": "@simplysf/simply-gitlab",
|
|
2583
|
+
"pluginType": "core",
|
|
2584
|
+
"strict": true,
|
|
2585
|
+
"summary": "List projects you can see.",
|
|
2586
|
+
"enableJsonFlag": true,
|
|
2587
|
+
"isWrite": false,
|
|
2588
|
+
"isESM": true,
|
|
2589
|
+
"relativePath": [
|
|
2590
|
+
"lib",
|
|
2591
|
+
"commands",
|
|
2592
|
+
"gitlab",
|
|
2593
|
+
"project",
|
|
2594
|
+
"list.js"
|
|
2595
|
+
],
|
|
2596
|
+
"aliasPermutations": [],
|
|
2597
|
+
"permutations": [
|
|
2598
|
+
"gitlab:project:list",
|
|
2599
|
+
"project:gitlab:list",
|
|
2600
|
+
"project:list:gitlab",
|
|
2601
|
+
"gitlab:list:project",
|
|
2602
|
+
"list:gitlab:project",
|
|
2603
|
+
"list:project:gitlab"
|
|
2604
|
+
]
|
|
2605
|
+
},
|
|
2606
|
+
"gitlab:project:view": {
|
|
2607
|
+
"aliases": [],
|
|
2608
|
+
"args": {},
|
|
2609
|
+
"description": "Accepts either the numeric id or the full path. Use --json for the complete, unmodified API payload, which carries far more than the summary below — permissions, statistics, and every feature toggle on the project.",
|
|
2610
|
+
"examples": [
|
|
2611
|
+
"<%= config.bin %> <%= command.id %> --project group/project",
|
|
2612
|
+
"<%= config.bin %> <%= command.id %> --project 1234 --json"
|
|
2449
2613
|
],
|
|
2450
2614
|
"flags": {
|
|
2451
2615
|
"json": {
|
|
@@ -2492,24 +2656,16 @@
|
|
|
2492
2656
|
"hasDynamicHelp": false,
|
|
2493
2657
|
"multiple": false,
|
|
2494
2658
|
"type": "option"
|
|
2495
|
-
},
|
|
2496
|
-
"mr": {
|
|
2497
|
-
"name": "mr",
|
|
2498
|
-
"required": true,
|
|
2499
|
-
"summary": "Merge request iid.",
|
|
2500
|
-
"hasDynamicHelp": false,
|
|
2501
|
-
"multiple": false,
|
|
2502
|
-
"type": "option"
|
|
2503
2659
|
}
|
|
2504
2660
|
},
|
|
2505
2661
|
"hasDynamicHelp": false,
|
|
2506
2662
|
"hiddenAliases": [],
|
|
2507
|
-
"id": "gitlab:
|
|
2663
|
+
"id": "gitlab:project:view",
|
|
2508
2664
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
2509
2665
|
"pluginName": "@simplysf/simply-gitlab",
|
|
2510
2666
|
"pluginType": "core",
|
|
2511
2667
|
"strict": true,
|
|
2512
|
-
"summary": "Show one
|
|
2668
|
+
"summary": "Show one project.",
|
|
2513
2669
|
"enableJsonFlag": true,
|
|
2514
2670
|
"isWrite": false,
|
|
2515
2671
|
"isESM": true,
|
|
@@ -2517,17 +2673,17 @@
|
|
|
2517
2673
|
"lib",
|
|
2518
2674
|
"commands",
|
|
2519
2675
|
"gitlab",
|
|
2520
|
-
"
|
|
2676
|
+
"project",
|
|
2521
2677
|
"view.js"
|
|
2522
2678
|
],
|
|
2523
2679
|
"aliasPermutations": [],
|
|
2524
2680
|
"permutations": [
|
|
2525
|
-
"gitlab:
|
|
2526
|
-
"
|
|
2527
|
-
"
|
|
2528
|
-
"gitlab:view:
|
|
2529
|
-
"view:gitlab:
|
|
2530
|
-
"view:
|
|
2681
|
+
"gitlab:project:view",
|
|
2682
|
+
"project:gitlab:view",
|
|
2683
|
+
"project:view:gitlab",
|
|
2684
|
+
"gitlab:view:project",
|
|
2685
|
+
"view:gitlab:project",
|
|
2686
|
+
"view:project:gitlab"
|
|
2531
2687
|
]
|
|
2532
2688
|
},
|
|
2533
2689
|
"gitlab:release:list": {
|
|
@@ -2595,12 +2751,128 @@
|
|
|
2595
2751
|
},
|
|
2596
2752
|
"hasDynamicHelp": false,
|
|
2597
2753
|
"hiddenAliases": [],
|
|
2598
|
-
"id": "gitlab:release:list",
|
|
2754
|
+
"id": "gitlab:release:list",
|
|
2755
|
+
"pluginAlias": "@simplysf/simply-gitlab",
|
|
2756
|
+
"pluginName": "@simplysf/simply-gitlab",
|
|
2757
|
+
"pluginType": "core",
|
|
2758
|
+
"strict": true,
|
|
2759
|
+
"summary": "List releases for a project.",
|
|
2760
|
+
"enableJsonFlag": true,
|
|
2761
|
+
"isWrite": false,
|
|
2762
|
+
"isESM": true,
|
|
2763
|
+
"relativePath": [
|
|
2764
|
+
"lib",
|
|
2765
|
+
"commands",
|
|
2766
|
+
"gitlab",
|
|
2767
|
+
"release",
|
|
2768
|
+
"list.js"
|
|
2769
|
+
],
|
|
2770
|
+
"aliasPermutations": [],
|
|
2771
|
+
"permutations": [
|
|
2772
|
+
"gitlab:release:list",
|
|
2773
|
+
"release:gitlab:list",
|
|
2774
|
+
"release:list:gitlab",
|
|
2775
|
+
"gitlab:list:release",
|
|
2776
|
+
"list:gitlab:release",
|
|
2777
|
+
"list:release:gitlab"
|
|
2778
|
+
]
|
|
2779
|
+
},
|
|
2780
|
+
"gitlab:ci:environment:list": {
|
|
2781
|
+
"aliases": [],
|
|
2782
|
+
"args": {},
|
|
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\".",
|
|
2784
|
+
"examples": [
|
|
2785
|
+
"<%= config.bin %> <%= command.id %> --project group/project",
|
|
2786
|
+
"<%= config.bin %> <%= command.id %> --project group/project --state available --search prod"
|
|
2787
|
+
],
|
|
2788
|
+
"flags": {
|
|
2789
|
+
"json": {
|
|
2790
|
+
"description": "Format output as json.",
|
|
2791
|
+
"helpGroup": "GLOBAL",
|
|
2792
|
+
"name": "json",
|
|
2793
|
+
"allowNo": false,
|
|
2794
|
+
"type": "boolean"
|
|
2795
|
+
},
|
|
2796
|
+
"env-file": {
|
|
2797
|
+
"char": "e",
|
|
2798
|
+
"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.",
|
|
2799
|
+
"helpGroup": "CONNECTION",
|
|
2800
|
+
"name": "env-file",
|
|
2801
|
+
"summary": "Path to a .env file holding connection settings.",
|
|
2802
|
+
"hasDynamicHelp": false,
|
|
2803
|
+
"multiple": false,
|
|
2804
|
+
"type": "option"
|
|
2805
|
+
},
|
|
2806
|
+
"gitlab-url": {
|
|
2807
|
+
"env": "GITLAB_URL",
|
|
2808
|
+
"helpGroup": "CONNECTION",
|
|
2809
|
+
"name": "gitlab-url",
|
|
2810
|
+
"summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
|
|
2811
|
+
"hasDynamicHelp": false,
|
|
2812
|
+
"multiple": false,
|
|
2813
|
+
"type": "option"
|
|
2814
|
+
},
|
|
2815
|
+
"gitlab-token": {
|
|
2816
|
+
"env": "GITLAB_TOKEN",
|
|
2817
|
+
"helpGroup": "CONNECTION",
|
|
2818
|
+
"name": "gitlab-token",
|
|
2819
|
+
"summary": "Personal, project, or group access token.",
|
|
2820
|
+
"hasDynamicHelp": false,
|
|
2821
|
+
"multiple": false,
|
|
2822
|
+
"type": "option"
|
|
2823
|
+
},
|
|
2824
|
+
"project": {
|
|
2825
|
+
"char": "p",
|
|
2826
|
+
"env": "GITLAB_PROJECT",
|
|
2827
|
+
"name": "project",
|
|
2828
|
+
"required": true,
|
|
2829
|
+
"summary": "Project id, or its full path such as group/subgroup/project.",
|
|
2830
|
+
"hasDynamicHelp": false,
|
|
2831
|
+
"multiple": false,
|
|
2832
|
+
"type": "option"
|
|
2833
|
+
},
|
|
2834
|
+
"limit": {
|
|
2835
|
+
"name": "limit",
|
|
2836
|
+
"summary": "Maximum number of environments to return across all pages.",
|
|
2837
|
+
"default": 20,
|
|
2838
|
+
"hasDynamicHelp": false,
|
|
2839
|
+
"multiple": false,
|
|
2840
|
+
"type": "option"
|
|
2841
|
+
},
|
|
2842
|
+
"name": {
|
|
2843
|
+
"name": "name",
|
|
2844
|
+
"summary": "Return the environment with exactly this name.",
|
|
2845
|
+
"hasDynamicHelp": false,
|
|
2846
|
+
"multiple": false,
|
|
2847
|
+
"type": "option"
|
|
2848
|
+
},
|
|
2849
|
+
"search": {
|
|
2850
|
+
"name": "search",
|
|
2851
|
+
"summary": "Return environments whose name contains this term.",
|
|
2852
|
+
"hasDynamicHelp": false,
|
|
2853
|
+
"multiple": false,
|
|
2854
|
+
"type": "option"
|
|
2855
|
+
},
|
|
2856
|
+
"state": {
|
|
2857
|
+
"name": "state",
|
|
2858
|
+
"summary": "Environment state.",
|
|
2859
|
+
"hasDynamicHelp": false,
|
|
2860
|
+
"multiple": false,
|
|
2861
|
+
"options": [
|
|
2862
|
+
"available",
|
|
2863
|
+
"stopped"
|
|
2864
|
+
],
|
|
2865
|
+
"type": "option"
|
|
2866
|
+
}
|
|
2867
|
+
},
|
|
2868
|
+
"hasDynamicHelp": false,
|
|
2869
|
+
"hiddenAliases": [],
|
|
2870
|
+
"id": "gitlab:ci:environment:list",
|
|
2599
2871
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
2600
2872
|
"pluginName": "@simplysf/simply-gitlab",
|
|
2601
2873
|
"pluginType": "core",
|
|
2602
2874
|
"strict": true,
|
|
2603
|
-
"summary": "List
|
|
2875
|
+
"summary": "List a project deployment environments.",
|
|
2604
2876
|
"enableJsonFlag": true,
|
|
2605
2877
|
"isWrite": false,
|
|
2606
2878
|
"isESM": true,
|
|
@@ -2608,17 +2880,36 @@
|
|
|
2608
2880
|
"lib",
|
|
2609
2881
|
"commands",
|
|
2610
2882
|
"gitlab",
|
|
2611
|
-
"
|
|
2883
|
+
"ci",
|
|
2884
|
+
"environment",
|
|
2612
2885
|
"list.js"
|
|
2613
2886
|
],
|
|
2614
2887
|
"aliasPermutations": [],
|
|
2615
2888
|
"permutations": [
|
|
2616
|
-
"gitlab:
|
|
2617
|
-
"
|
|
2618
|
-
"
|
|
2619
|
-
"
|
|
2620
|
-
"
|
|
2621
|
-
"
|
|
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"
|
|
2622
2913
|
]
|
|
2623
2914
|
},
|
|
2624
2915
|
"gitlab:tag:list": {
|
|
@@ -2742,13 +3033,13 @@
|
|
|
2742
3033
|
"list:tag:gitlab"
|
|
2743
3034
|
]
|
|
2744
3035
|
},
|
|
2745
|
-
"gitlab:ci:
|
|
3036
|
+
"gitlab:ci:variable:list": {
|
|
2746
3037
|
"aliases": [],
|
|
2747
3038
|
"args": {},
|
|
2748
|
-
"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.",
|
|
2749
3040
|
"examples": [
|
|
2750
3041
|
"<%= config.bin %> <%= command.id %> --project group/project",
|
|
2751
|
-
"<%= config.bin %> <%= command.id %> --project group/project --
|
|
3042
|
+
"<%= config.bin %> <%= command.id %> --project group/project --reveal"
|
|
2752
3043
|
],
|
|
2753
3044
|
"flags": {
|
|
2754
3045
|
"json": {
|
|
@@ -2798,46 +3089,28 @@
|
|
|
2798
3089
|
},
|
|
2799
3090
|
"limit": {
|
|
2800
3091
|
"name": "limit",
|
|
2801
|
-
"summary": "Maximum number of
|
|
2802
|
-
"default":
|
|
2803
|
-
"hasDynamicHelp": false,
|
|
2804
|
-
"multiple": false,
|
|
2805
|
-
"type": "option"
|
|
2806
|
-
},
|
|
2807
|
-
"name": {
|
|
2808
|
-
"name": "name",
|
|
2809
|
-
"summary": "Return the environment with exactly this name.",
|
|
2810
|
-
"hasDynamicHelp": false,
|
|
2811
|
-
"multiple": false,
|
|
2812
|
-
"type": "option"
|
|
2813
|
-
},
|
|
2814
|
-
"search": {
|
|
2815
|
-
"name": "search",
|
|
2816
|
-
"summary": "Return environments whose name contains this term.",
|
|
3092
|
+
"summary": "Maximum number of variables to return across all pages.",
|
|
3093
|
+
"default": 50,
|
|
2817
3094
|
"hasDynamicHelp": false,
|
|
2818
3095
|
"multiple": false,
|
|
2819
3096
|
"type": "option"
|
|
2820
3097
|
},
|
|
2821
|
-
"
|
|
2822
|
-
"
|
|
2823
|
-
"
|
|
2824
|
-
"
|
|
2825
|
-
"
|
|
2826
|
-
"
|
|
2827
|
-
"available",
|
|
2828
|
-
"stopped"
|
|
2829
|
-
],
|
|
2830
|
-
"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"
|
|
2831
3104
|
}
|
|
2832
3105
|
},
|
|
2833
3106
|
"hasDynamicHelp": false,
|
|
2834
3107
|
"hiddenAliases": [],
|
|
2835
|
-
"id": "gitlab:ci:
|
|
3108
|
+
"id": "gitlab:ci:variable:list",
|
|
2836
3109
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
2837
3110
|
"pluginName": "@simplysf/simply-gitlab",
|
|
2838
3111
|
"pluginType": "core",
|
|
2839
3112
|
"strict": true,
|
|
2840
|
-
"summary": "List a project
|
|
3113
|
+
"summary": "List a project CI/CD variables.",
|
|
2841
3114
|
"enableJsonFlag": true,
|
|
2842
3115
|
"isWrite": false,
|
|
2843
3116
|
"isESM": true,
|
|
@@ -2846,35 +3119,35 @@
|
|
|
2846
3119
|
"commands",
|
|
2847
3120
|
"gitlab",
|
|
2848
3121
|
"ci",
|
|
2849
|
-
"
|
|
3122
|
+
"variable",
|
|
2850
3123
|
"list.js"
|
|
2851
3124
|
],
|
|
2852
3125
|
"aliasPermutations": [],
|
|
2853
3126
|
"permutations": [
|
|
2854
|
-
"gitlab:ci:
|
|
2855
|
-
"ci:gitlab:
|
|
2856
|
-
"ci:
|
|
2857
|
-
"ci:
|
|
2858
|
-
"gitlab:
|
|
2859
|
-
"
|
|
2860
|
-
"
|
|
2861
|
-
"
|
|
2862
|
-
"gitlab:
|
|
2863
|
-
"
|
|
2864
|
-
"
|
|
2865
|
-
"
|
|
2866
|
-
"gitlab:ci:list:
|
|
2867
|
-
"ci:gitlab:list:
|
|
2868
|
-
"ci:list:gitlab:
|
|
2869
|
-
"ci:list:
|
|
2870
|
-
"gitlab:list:ci:
|
|
2871
|
-
"list:gitlab:ci:
|
|
2872
|
-
"list:ci:gitlab:
|
|
2873
|
-
"list:ci:
|
|
2874
|
-
"gitlab:list:
|
|
2875
|
-
"list:gitlab:
|
|
2876
|
-
"list:
|
|
2877
|
-
"list:
|
|
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"
|
|
2878
3151
|
]
|
|
2879
3152
|
},
|
|
2880
3153
|
"gitlab:ci:job:list": {
|
|
@@ -3122,124 +3395,7 @@
|
|
|
3122
3395
|
"log:job:gitlab:ci",
|
|
3123
3396
|
"log:job:ci:gitlab"
|
|
3124
3397
|
]
|
|
3125
|
-
},
|
|
3126
|
-
"gitlab:ci:variable:list": {
|
|
3127
|
-
"aliases": [],
|
|
3128
|
-
"args": {},
|
|
3129
|
-
"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.",
|
|
3130
|
-
"examples": [
|
|
3131
|
-
"<%= config.bin %> <%= command.id %> --project group/project",
|
|
3132
|
-
"<%= config.bin %> <%= command.id %> --project group/project --reveal"
|
|
3133
|
-
],
|
|
3134
|
-
"flags": {
|
|
3135
|
-
"json": {
|
|
3136
|
-
"description": "Format output as json.",
|
|
3137
|
-
"helpGroup": "GLOBAL",
|
|
3138
|
-
"name": "json",
|
|
3139
|
-
"allowNo": false,
|
|
3140
|
-
"type": "boolean"
|
|
3141
|
-
},
|
|
3142
|
-
"env-file": {
|
|
3143
|
-
"char": "e",
|
|
3144
|
-
"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.",
|
|
3145
|
-
"helpGroup": "CONNECTION",
|
|
3146
|
-
"name": "env-file",
|
|
3147
|
-
"summary": "Path to a .env file holding connection settings.",
|
|
3148
|
-
"hasDynamicHelp": false,
|
|
3149
|
-
"multiple": false,
|
|
3150
|
-
"type": "option"
|
|
3151
|
-
},
|
|
3152
|
-
"gitlab-url": {
|
|
3153
|
-
"env": "GITLAB_URL",
|
|
3154
|
-
"helpGroup": "CONNECTION",
|
|
3155
|
-
"name": "gitlab-url",
|
|
3156
|
-
"summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
|
|
3157
|
-
"hasDynamicHelp": false,
|
|
3158
|
-
"multiple": false,
|
|
3159
|
-
"type": "option"
|
|
3160
|
-
},
|
|
3161
|
-
"gitlab-token": {
|
|
3162
|
-
"env": "GITLAB_TOKEN",
|
|
3163
|
-
"helpGroup": "CONNECTION",
|
|
3164
|
-
"name": "gitlab-token",
|
|
3165
|
-
"summary": "Personal, project, or group access token.",
|
|
3166
|
-
"hasDynamicHelp": false,
|
|
3167
|
-
"multiple": false,
|
|
3168
|
-
"type": "option"
|
|
3169
|
-
},
|
|
3170
|
-
"project": {
|
|
3171
|
-
"char": "p",
|
|
3172
|
-
"env": "GITLAB_PROJECT",
|
|
3173
|
-
"name": "project",
|
|
3174
|
-
"required": true,
|
|
3175
|
-
"summary": "Project id, or its full path such as group/subgroup/project.",
|
|
3176
|
-
"hasDynamicHelp": false,
|
|
3177
|
-
"multiple": false,
|
|
3178
|
-
"type": "option"
|
|
3179
|
-
},
|
|
3180
|
-
"limit": {
|
|
3181
|
-
"name": "limit",
|
|
3182
|
-
"summary": "Maximum number of variables to return across all pages.",
|
|
3183
|
-
"default": 50,
|
|
3184
|
-
"hasDynamicHelp": false,
|
|
3185
|
-
"multiple": false,
|
|
3186
|
-
"type": "option"
|
|
3187
|
-
},
|
|
3188
|
-
"reveal": {
|
|
3189
|
-
"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.",
|
|
3190
|
-
"name": "reveal",
|
|
3191
|
-
"summary": "Print the variable values in clear text.",
|
|
3192
|
-
"allowNo": false,
|
|
3193
|
-
"type": "boolean"
|
|
3194
|
-
}
|
|
3195
|
-
},
|
|
3196
|
-
"hasDynamicHelp": false,
|
|
3197
|
-
"hiddenAliases": [],
|
|
3198
|
-
"id": "gitlab:ci:variable:list",
|
|
3199
|
-
"pluginAlias": "@simplysf/simply-gitlab",
|
|
3200
|
-
"pluginName": "@simplysf/simply-gitlab",
|
|
3201
|
-
"pluginType": "core",
|
|
3202
|
-
"strict": true,
|
|
3203
|
-
"summary": "List a project CI/CD variables.",
|
|
3204
|
-
"enableJsonFlag": true,
|
|
3205
|
-
"isWrite": false,
|
|
3206
|
-
"isESM": true,
|
|
3207
|
-
"relativePath": [
|
|
3208
|
-
"lib",
|
|
3209
|
-
"commands",
|
|
3210
|
-
"gitlab",
|
|
3211
|
-
"ci",
|
|
3212
|
-
"variable",
|
|
3213
|
-
"list.js"
|
|
3214
|
-
],
|
|
3215
|
-
"aliasPermutations": [],
|
|
3216
|
-
"permutations": [
|
|
3217
|
-
"gitlab:ci:variable:list",
|
|
3218
|
-
"ci:gitlab:variable:list",
|
|
3219
|
-
"ci:variable:gitlab:list",
|
|
3220
|
-
"ci:variable:list:gitlab",
|
|
3221
|
-
"gitlab:variable:ci:list",
|
|
3222
|
-
"variable:gitlab:ci:list",
|
|
3223
|
-
"variable:ci:gitlab:list",
|
|
3224
|
-
"variable:ci:list:gitlab",
|
|
3225
|
-
"gitlab:variable:list:ci",
|
|
3226
|
-
"variable:gitlab:list:ci",
|
|
3227
|
-
"variable:list:gitlab:ci",
|
|
3228
|
-
"variable:list:ci:gitlab",
|
|
3229
|
-
"gitlab:ci:list:variable",
|
|
3230
|
-
"ci:gitlab:list:variable",
|
|
3231
|
-
"ci:list:gitlab:variable",
|
|
3232
|
-
"ci:list:variable:gitlab",
|
|
3233
|
-
"gitlab:list:ci:variable",
|
|
3234
|
-
"list:gitlab:ci:variable",
|
|
3235
|
-
"list:ci:gitlab:variable",
|
|
3236
|
-
"list:ci:variable:gitlab",
|
|
3237
|
-
"gitlab:list:variable:ci",
|
|
3238
|
-
"list:gitlab:variable:ci",
|
|
3239
|
-
"list:variable:gitlab:ci",
|
|
3240
|
-
"list:variable:ci:gitlab"
|
|
3241
|
-
]
|
|
3242
3398
|
}
|
|
3243
3399
|
},
|
|
3244
|
-
"version": "0.
|
|
3400
|
+
"version": "0.8.0"
|
|
3245
3401
|
}
|