@simplysf/simply-gitlab 0.10.0 → 0.11.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 +31 -31
- package/docs/guides/baselines.md +25 -2
- package/docs/schema/baseline-v1.json +4 -0
- package/oclif.manifest.json +439 -438
- package/package.json +3 -3
package/oclif.manifest.json
CHANGED
|
@@ -986,6 +986,7 @@
|
|
|
986
986
|
"approvals",
|
|
987
987
|
"approvalRules",
|
|
988
988
|
"pushRules",
|
|
989
|
+
"badges",
|
|
989
990
|
"variables"
|
|
990
991
|
],
|
|
991
992
|
"type": "option"
|
|
@@ -1546,16 +1547,13 @@
|
|
|
1546
1547
|
"view:file:gitlab"
|
|
1547
1548
|
]
|
|
1548
1549
|
},
|
|
1549
|
-
"gitlab:
|
|
1550
|
+
"gitlab:mr:create": {
|
|
1550
1551
|
"aliases": [],
|
|
1551
1552
|
"args": {},
|
|
1552
|
-
"description": "
|
|
1553
|
+
"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
1554
|
"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"
|
|
1555
|
+
"<%= config.bin %> <%= command.id %> --project group/project --source-branch feature --target-branch main --title \"feat: the thing\"",
|
|
1556
|
+
"<%= config.bin %> <%= command.id %> --project group/project --source-branch feature --target-branch main --title wip --draft --squash"
|
|
1559
1557
|
],
|
|
1560
1558
|
"flags": {
|
|
1561
1559
|
"json": {
|
|
@@ -1593,96 +1591,92 @@
|
|
|
1593
1591
|
"multiple": false,
|
|
1594
1592
|
"type": "option"
|
|
1595
1593
|
},
|
|
1594
|
+
"project": {
|
|
1595
|
+
"char": "p",
|
|
1596
|
+
"env": "GITLAB_PROJECT",
|
|
1597
|
+
"name": "project",
|
|
1598
|
+
"required": true,
|
|
1599
|
+
"summary": "Project id, or its full path such as group/subgroup/project.",
|
|
1600
|
+
"hasDynamicHelp": false,
|
|
1601
|
+
"multiple": false,
|
|
1602
|
+
"type": "option"
|
|
1603
|
+
},
|
|
1596
1604
|
"dry-run": {
|
|
1597
1605
|
"name": "dry-run",
|
|
1598
1606
|
"summary": "Print the request that would be sent and exit without sending it.",
|
|
1599
1607
|
"allowNo": false,
|
|
1600
1608
|
"type": "boolean"
|
|
1601
1609
|
},
|
|
1602
|
-
"
|
|
1603
|
-
"name": "
|
|
1604
|
-
"summary": "
|
|
1610
|
+
"source-branch": {
|
|
1611
|
+
"name": "source-branch",
|
|
1612
|
+
"summary": "Branch holding the changes.",
|
|
1605
1613
|
"hasDynamicHelp": false,
|
|
1606
1614
|
"multiple": false,
|
|
1607
1615
|
"type": "option"
|
|
1608
1616
|
},
|
|
1609
|
-
"
|
|
1610
|
-
"name": "
|
|
1611
|
-
"summary": "
|
|
1617
|
+
"target-branch": {
|
|
1618
|
+
"name": "target-branch",
|
|
1619
|
+
"summary": "Branch the changes are proposed for.",
|
|
1612
1620
|
"hasDynamicHelp": false,
|
|
1613
1621
|
"multiple": false,
|
|
1614
1622
|
"type": "option"
|
|
1615
1623
|
},
|
|
1616
|
-
"
|
|
1617
|
-
"
|
|
1618
|
-
"
|
|
1619
|
-
"summary": "Group or user namespace to create the project in, by id or full path.",
|
|
1624
|
+
"title": {
|
|
1625
|
+
"name": "title",
|
|
1626
|
+
"summary": "Merge request title.",
|
|
1620
1627
|
"hasDynamicHelp": false,
|
|
1621
1628
|
"multiple": false,
|
|
1622
1629
|
"type": "option"
|
|
1623
1630
|
},
|
|
1624
1631
|
"description": {
|
|
1625
1632
|
"name": "description",
|
|
1626
|
-
"summary": "
|
|
1633
|
+
"summary": "Merge request description, as Markdown.",
|
|
1627
1634
|
"hasDynamicHelp": false,
|
|
1628
1635
|
"multiple": false,
|
|
1629
1636
|
"type": "option"
|
|
1630
1637
|
},
|
|
1631
|
-
"
|
|
1632
|
-
"name": "
|
|
1633
|
-
"summary": "
|
|
1634
|
-
"
|
|
1635
|
-
"
|
|
1636
|
-
"options": [
|
|
1637
|
-
"private",
|
|
1638
|
-
"internal",
|
|
1639
|
-
"public"
|
|
1640
|
-
],
|
|
1641
|
-
"type": "option"
|
|
1638
|
+
"draft": {
|
|
1639
|
+
"name": "draft",
|
|
1640
|
+
"summary": "Open it as a draft.",
|
|
1641
|
+
"allowNo": false,
|
|
1642
|
+
"type": "boolean"
|
|
1642
1643
|
},
|
|
1643
|
-
"
|
|
1644
|
-
"name": "
|
|
1645
|
-
"summary": "
|
|
1646
|
-
"
|
|
1647
|
-
"
|
|
1648
|
-
"type": "option"
|
|
1644
|
+
"squash": {
|
|
1645
|
+
"name": "squash",
|
|
1646
|
+
"summary": "Squash the commits when it merges.",
|
|
1647
|
+
"allowNo": false,
|
|
1648
|
+
"type": "boolean"
|
|
1649
1649
|
},
|
|
1650
|
-
"
|
|
1651
|
-
"name": "
|
|
1652
|
-
"summary": "
|
|
1650
|
+
"remove-source-branch": {
|
|
1651
|
+
"name": "remove-source-branch",
|
|
1652
|
+
"summary": "Delete the source branch on merge.",
|
|
1653
1653
|
"allowNo": false,
|
|
1654
1654
|
"type": "boolean"
|
|
1655
1655
|
},
|
|
1656
|
-
"
|
|
1657
|
-
"name": "
|
|
1658
|
-
"summary": "
|
|
1656
|
+
"assignee-id": {
|
|
1657
|
+
"name": "assignee-id",
|
|
1658
|
+
"summary": "User id to assign. Repeatable.",
|
|
1659
1659
|
"hasDynamicHelp": false,
|
|
1660
|
-
"multiple":
|
|
1660
|
+
"multiple": true,
|
|
1661
1661
|
"type": "option"
|
|
1662
1662
|
},
|
|
1663
|
-
"
|
|
1664
|
-
"name": "
|
|
1665
|
-
"summary": "
|
|
1663
|
+
"reviewer-id": {
|
|
1664
|
+
"name": "reviewer-id",
|
|
1665
|
+
"summary": "User id to request review from. Repeatable.",
|
|
1666
1666
|
"hasDynamicHelp": false,
|
|
1667
|
-
"multiple":
|
|
1667
|
+
"multiple": true,
|
|
1668
1668
|
"type": "option"
|
|
1669
1669
|
},
|
|
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.",
|
|
1670
|
+
"labels": {
|
|
1671
|
+
"name": "labels",
|
|
1672
|
+
"summary": "Comma-separated labels to apply.",
|
|
1679
1673
|
"hasDynamicHelp": false,
|
|
1680
1674
|
"multiple": false,
|
|
1681
1675
|
"type": "option"
|
|
1682
1676
|
},
|
|
1683
|
-
"
|
|
1684
|
-
"name": "
|
|
1685
|
-
"summary": "
|
|
1677
|
+
"milestone-id": {
|
|
1678
|
+
"name": "milestone-id",
|
|
1679
|
+
"summary": "Milestone id to attach.",
|
|
1686
1680
|
"hasDynamicHelp": false,
|
|
1687
1681
|
"multiple": false,
|
|
1688
1682
|
"type": "option"
|
|
@@ -1707,12 +1701,12 @@
|
|
|
1707
1701
|
},
|
|
1708
1702
|
"hasDynamicHelp": false,
|
|
1709
1703
|
"hiddenAliases": [],
|
|
1710
|
-
"id": "gitlab:
|
|
1704
|
+
"id": "gitlab:mr:create",
|
|
1711
1705
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
1712
1706
|
"pluginName": "@simplysf/simply-gitlab",
|
|
1713
1707
|
"pluginType": "core",
|
|
1714
1708
|
"strict": true,
|
|
1715
|
-
"summary": "
|
|
1709
|
+
"summary": "Open a merge request.",
|
|
1716
1710
|
"enableJsonFlag": true,
|
|
1717
1711
|
"isWrite": true,
|
|
1718
1712
|
"isESM": true,
|
|
@@ -1720,27 +1714,27 @@
|
|
|
1720
1714
|
"lib",
|
|
1721
1715
|
"commands",
|
|
1722
1716
|
"gitlab",
|
|
1723
|
-
"
|
|
1717
|
+
"mr",
|
|
1724
1718
|
"create.js"
|
|
1725
1719
|
],
|
|
1726
1720
|
"aliasPermutations": [],
|
|
1727
1721
|
"permutations": [
|
|
1728
|
-
"gitlab:
|
|
1729
|
-
"
|
|
1730
|
-
"
|
|
1731
|
-
"gitlab:create:
|
|
1732
|
-
"create:gitlab:
|
|
1733
|
-
"create:
|
|
1722
|
+
"gitlab:mr:create",
|
|
1723
|
+
"mr:gitlab:create",
|
|
1724
|
+
"mr:create:gitlab",
|
|
1725
|
+
"gitlab:create:mr",
|
|
1726
|
+
"create:gitlab:mr",
|
|
1727
|
+
"create:mr:gitlab"
|
|
1734
1728
|
]
|
|
1735
1729
|
},
|
|
1736
|
-
"gitlab:
|
|
1730
|
+
"gitlab:mr:list": {
|
|
1737
1731
|
"aliases": [],
|
|
1738
1732
|
"args": {},
|
|
1739
|
-
"description": "
|
|
1733
|
+
"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
1734
|
"examples": [
|
|
1741
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1742
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1743
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1735
|
+
"<%= config.bin %> <%= command.id %> --project group/project",
|
|
1736
|
+
"<%= config.bin %> <%= command.id %> --project group/project --state merged --target-branch main --limit 10",
|
|
1737
|
+
"<%= config.bin %> <%= command.id %> --project group/project --author-username someone --json"
|
|
1744
1738
|
],
|
|
1745
1739
|
"flags": {
|
|
1746
1740
|
"json": {
|
|
@@ -1778,48 +1772,90 @@
|
|
|
1778
1772
|
"multiple": false,
|
|
1779
1773
|
"type": "option"
|
|
1780
1774
|
},
|
|
1775
|
+
"project": {
|
|
1776
|
+
"char": "p",
|
|
1777
|
+
"env": "GITLAB_PROJECT",
|
|
1778
|
+
"name": "project",
|
|
1779
|
+
"required": true,
|
|
1780
|
+
"summary": "Project id, or its full path such as group/subgroup/project.",
|
|
1781
|
+
"hasDynamicHelp": false,
|
|
1782
|
+
"multiple": false,
|
|
1783
|
+
"type": "option"
|
|
1784
|
+
},
|
|
1781
1785
|
"limit": {
|
|
1782
1786
|
"name": "limit",
|
|
1783
|
-
"summary": "Maximum number of
|
|
1787
|
+
"summary": "Maximum number of merge requests to return across all pages.",
|
|
1784
1788
|
"default": 20,
|
|
1785
1789
|
"hasDynamicHelp": false,
|
|
1786
1790
|
"multiple": false,
|
|
1787
1791
|
"type": "option"
|
|
1788
1792
|
},
|
|
1789
|
-
"
|
|
1790
|
-
"name": "
|
|
1791
|
-
"summary": "
|
|
1793
|
+
"state": {
|
|
1794
|
+
"name": "state",
|
|
1795
|
+
"summary": "Merge request state to return.",
|
|
1796
|
+
"default": "opened",
|
|
1792
1797
|
"hasDynamicHelp": false,
|
|
1793
1798
|
"multiple": false,
|
|
1799
|
+
"options": [
|
|
1800
|
+
"opened",
|
|
1801
|
+
"closed",
|
|
1802
|
+
"locked",
|
|
1803
|
+
"merged",
|
|
1804
|
+
"all"
|
|
1805
|
+
],
|
|
1794
1806
|
"type": "option"
|
|
1795
1807
|
},
|
|
1796
|
-
"
|
|
1797
|
-
"name": "
|
|
1798
|
-
"summary": "Only
|
|
1799
|
-
"
|
|
1800
|
-
"
|
|
1808
|
+
"source-branch": {
|
|
1809
|
+
"name": "source-branch",
|
|
1810
|
+
"summary": "Only merge requests from this source branch.",
|
|
1811
|
+
"hasDynamicHelp": false,
|
|
1812
|
+
"multiple": false,
|
|
1813
|
+
"type": "option"
|
|
1801
1814
|
},
|
|
1802
|
-
"
|
|
1803
|
-
"name": "
|
|
1804
|
-
"summary": "Only
|
|
1805
|
-
"
|
|
1806
|
-
"
|
|
1815
|
+
"target-branch": {
|
|
1816
|
+
"name": "target-branch",
|
|
1817
|
+
"summary": "Only merge requests into this target branch.",
|
|
1818
|
+
"hasDynamicHelp": false,
|
|
1819
|
+
"multiple": false,
|
|
1820
|
+
"type": "option"
|
|
1807
1821
|
},
|
|
1808
|
-
"
|
|
1809
|
-
"name": "
|
|
1810
|
-
"summary": "
|
|
1811
|
-
"
|
|
1812
|
-
"
|
|
1822
|
+
"author-username": {
|
|
1823
|
+
"name": "author-username",
|
|
1824
|
+
"summary": "Only merge requests opened by this username.",
|
|
1825
|
+
"hasDynamicHelp": false,
|
|
1826
|
+
"multiple": false,
|
|
1827
|
+
"type": "option"
|
|
1828
|
+
},
|
|
1829
|
+
"reviewer-username": {
|
|
1830
|
+
"name": "reviewer-username",
|
|
1831
|
+
"summary": "Only merge requests this username is reviewing.",
|
|
1832
|
+
"hasDynamicHelp": false,
|
|
1833
|
+
"multiple": false,
|
|
1834
|
+
"type": "option"
|
|
1835
|
+
},
|
|
1836
|
+
"labels": {
|
|
1837
|
+
"name": "labels",
|
|
1838
|
+
"summary": "Comma-separated labels every result must carry.",
|
|
1839
|
+
"hasDynamicHelp": false,
|
|
1840
|
+
"multiple": false,
|
|
1841
|
+
"type": "option"
|
|
1842
|
+
},
|
|
1843
|
+
"search": {
|
|
1844
|
+
"name": "search",
|
|
1845
|
+
"summary": "Match against the title and description.",
|
|
1846
|
+
"hasDynamicHelp": false,
|
|
1847
|
+
"multiple": false,
|
|
1848
|
+
"type": "option"
|
|
1813
1849
|
}
|
|
1814
1850
|
},
|
|
1815
1851
|
"hasDynamicHelp": false,
|
|
1816
1852
|
"hiddenAliases": [],
|
|
1817
|
-
"id": "gitlab:
|
|
1853
|
+
"id": "gitlab:mr:list",
|
|
1818
1854
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
1819
1855
|
"pluginName": "@simplysf/simply-gitlab",
|
|
1820
1856
|
"pluginType": "core",
|
|
1821
1857
|
"strict": true,
|
|
1822
|
-
"summary": "List
|
|
1858
|
+
"summary": "List merge requests for a project.",
|
|
1823
1859
|
"enableJsonFlag": true,
|
|
1824
1860
|
"isWrite": false,
|
|
1825
1861
|
"isESM": true,
|
|
@@ -1827,26 +1863,28 @@
|
|
|
1827
1863
|
"lib",
|
|
1828
1864
|
"commands",
|
|
1829
1865
|
"gitlab",
|
|
1830
|
-
"
|
|
1866
|
+
"mr",
|
|
1831
1867
|
"list.js"
|
|
1832
1868
|
],
|
|
1833
1869
|
"aliasPermutations": [],
|
|
1834
1870
|
"permutations": [
|
|
1835
|
-
"gitlab:
|
|
1836
|
-
"
|
|
1837
|
-
"
|
|
1838
|
-
"gitlab:list:
|
|
1839
|
-
"list:gitlab:
|
|
1840
|
-
"list:
|
|
1871
|
+
"gitlab:mr:list",
|
|
1872
|
+
"mr:gitlab:list",
|
|
1873
|
+
"mr:list:gitlab",
|
|
1874
|
+
"gitlab:list:mr",
|
|
1875
|
+
"list:gitlab:mr",
|
|
1876
|
+
"list:mr:gitlab"
|
|
1841
1877
|
]
|
|
1842
1878
|
},
|
|
1843
|
-
"gitlab:
|
|
1879
|
+
"gitlab:mr:merge": {
|
|
1844
1880
|
"aliases": [],
|
|
1845
1881
|
"args": {},
|
|
1846
|
-
"description": "
|
|
1882
|
+
"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
1883
|
"examples": [
|
|
1848
|
-
"<%= config.bin %> <%= command.id %> --project group/project",
|
|
1849
|
-
"<%= config.bin %> <%= command.id %> --project
|
|
1884
|
+
"<%= config.bin %> <%= command.id %> --project group/project --mr 42 --sha <head-sha> --confirm",
|
|
1885
|
+
"<%= config.bin %> <%= command.id %> --project group/project --mr 42 --auto-merge --confirm",
|
|
1886
|
+
"<%= config.bin %> <%= command.id %> --project group/project --mr 42 --skip-merge-train --sha <head-sha> --confirm",
|
|
1887
|
+
"<%= config.bin %> <%= command.id %> --project group/project --mr 42 --squash --dry-run"
|
|
1850
1888
|
],
|
|
1851
1889
|
"flags": {
|
|
1852
1890
|
"json": {
|
|
@@ -1893,43 +1931,115 @@
|
|
|
1893
1931
|
"hasDynamicHelp": false,
|
|
1894
1932
|
"multiple": false,
|
|
1895
1933
|
"type": "option"
|
|
1896
|
-
}
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1934
|
+
},
|
|
1935
|
+
"dry-run": {
|
|
1936
|
+
"name": "dry-run",
|
|
1937
|
+
"summary": "Print the request that would be sent and exit without sending it.",
|
|
1938
|
+
"allowNo": false,
|
|
1939
|
+
"type": "boolean"
|
|
1940
|
+
},
|
|
1941
|
+
"mr": {
|
|
1942
|
+
"name": "mr",
|
|
1943
|
+
"required": true,
|
|
1944
|
+
"summary": "Merge request iid.",
|
|
1945
|
+
"hasDynamicHelp": false,
|
|
1946
|
+
"multiple": false,
|
|
1947
|
+
"type": "option"
|
|
1948
|
+
},
|
|
1949
|
+
"sha": {
|
|
1950
|
+
"name": "sha",
|
|
1951
|
+
"summary": "Full sha of the source branch head you reviewed. Recommended; required with --skip-merge-train.",
|
|
1952
|
+
"hasDynamicHelp": false,
|
|
1953
|
+
"multiple": false,
|
|
1954
|
+
"type": "option"
|
|
1955
|
+
},
|
|
1956
|
+
"auto-merge": {
|
|
1957
|
+
"exclusive": [
|
|
1958
|
+
"skip-merge-train"
|
|
1959
|
+
],
|
|
1960
|
+
"name": "auto-merge",
|
|
1961
|
+
"summary": "Merge when checks pass. On a project with merge trains, this joins the train.",
|
|
1962
|
+
"allowNo": false,
|
|
1963
|
+
"type": "boolean"
|
|
1964
|
+
},
|
|
1965
|
+
"skip-merge-train": {
|
|
1966
|
+
"exclusive": [
|
|
1967
|
+
"auto-merge"
|
|
1968
|
+
],
|
|
1969
|
+
"name": "skip-merge-train",
|
|
1970
|
+
"summary": "Merge now without restarting the merge train. Experimental in GitLab.",
|
|
1971
|
+
"allowNo": false,
|
|
1972
|
+
"type": "boolean"
|
|
1973
|
+
},
|
|
1974
|
+
"squash": {
|
|
1975
|
+
"name": "squash",
|
|
1976
|
+
"summary": "Squash the commits into one.",
|
|
1977
|
+
"allowNo": true,
|
|
1978
|
+
"type": "boolean"
|
|
1979
|
+
},
|
|
1980
|
+
"remove-source-branch": {
|
|
1981
|
+
"name": "remove-source-branch",
|
|
1982
|
+
"summary": "Delete the source branch after merging.",
|
|
1983
|
+
"allowNo": true,
|
|
1984
|
+
"type": "boolean"
|
|
1985
|
+
},
|
|
1986
|
+
"merge-commit-message": {
|
|
1987
|
+
"name": "merge-commit-message",
|
|
1988
|
+
"summary": "Custom merge commit message.",
|
|
1989
|
+
"hasDynamicHelp": false,
|
|
1990
|
+
"multiple": false,
|
|
1991
|
+
"type": "option"
|
|
1992
|
+
},
|
|
1993
|
+
"squash-commit-message": {
|
|
1994
|
+
"name": "squash-commit-message",
|
|
1995
|
+
"summary": "Custom squash commit message.",
|
|
1996
|
+
"hasDynamicHelp": false,
|
|
1997
|
+
"multiple": false,
|
|
1998
|
+
"type": "option"
|
|
1999
|
+
},
|
|
2000
|
+
"confirm": {
|
|
2001
|
+
"name": "confirm",
|
|
2002
|
+
"summary": "Send the merge. Without it, nothing is sent.",
|
|
2003
|
+
"allowNo": false,
|
|
2004
|
+
"type": "boolean"
|
|
2005
|
+
}
|
|
2006
|
+
},
|
|
2007
|
+
"hasDynamicHelp": false,
|
|
2008
|
+
"hiddenAliases": [],
|
|
2009
|
+
"id": "gitlab:mr:merge",
|
|
2010
|
+
"pluginAlias": "@simplysf/simply-gitlab",
|
|
2011
|
+
"pluginName": "@simplysf/simply-gitlab",
|
|
2012
|
+
"pluginType": "core",
|
|
2013
|
+
"strict": true,
|
|
2014
|
+
"summary": "Merge a merge request, or add it to the merge train.",
|
|
2015
|
+
"enableJsonFlag": true,
|
|
2016
|
+
"isWrite": true,
|
|
1908
2017
|
"isESM": true,
|
|
1909
2018
|
"relativePath": [
|
|
1910
2019
|
"lib",
|
|
1911
2020
|
"commands",
|
|
1912
2021
|
"gitlab",
|
|
1913
|
-
"
|
|
1914
|
-
"
|
|
2022
|
+
"mr",
|
|
2023
|
+
"merge.js"
|
|
1915
2024
|
],
|
|
1916
2025
|
"aliasPermutations": [],
|
|
1917
2026
|
"permutations": [
|
|
1918
|
-
"gitlab:
|
|
1919
|
-
"
|
|
1920
|
-
"
|
|
1921
|
-
"gitlab:
|
|
1922
|
-
"
|
|
1923
|
-
"
|
|
2027
|
+
"gitlab:mr:merge",
|
|
2028
|
+
"mr:gitlab:merge",
|
|
2029
|
+
"mr:merge:gitlab",
|
|
2030
|
+
"gitlab:merge:mr",
|
|
2031
|
+
"merge:gitlab:mr",
|
|
2032
|
+
"merge:mr:gitlab"
|
|
1924
2033
|
]
|
|
1925
2034
|
},
|
|
1926
|
-
"gitlab:mr:
|
|
2035
|
+
"gitlab:mr:update": {
|
|
1927
2036
|
"aliases": [],
|
|
1928
2037
|
"args": {},
|
|
1929
|
-
"description": "
|
|
2038
|
+
"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
2039
|
"examples": [
|
|
1931
|
-
"<%= config.bin %> <%= command.id %> --project group/project --
|
|
1932
|
-
"<%= config.bin %> <%= command.id %> --project group/project --
|
|
2040
|
+
"<%= config.bin %> <%= command.id %> --project group/project --mr 42 --title \"feat: renamed\"",
|
|
2041
|
+
"<%= config.bin %> <%= command.id %> --project group/project --mr 42 --state close",
|
|
2042
|
+
"<%= config.bin %> <%= command.id %> --project group/project --mr 42 --labels backend,urgent --dry-run"
|
|
1933
2043
|
],
|
|
1934
2044
|
"flags": {
|
|
1935
2045
|
"json": {
|
|
@@ -1983,69 +2093,75 @@
|
|
|
1983
2093
|
"allowNo": false,
|
|
1984
2094
|
"type": "boolean"
|
|
1985
2095
|
},
|
|
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.",
|
|
2096
|
+
"mr": {
|
|
2097
|
+
"name": "mr",
|
|
2098
|
+
"required": true,
|
|
2099
|
+
"summary": "Merge request iid.",
|
|
1996
2100
|
"hasDynamicHelp": false,
|
|
1997
2101
|
"multiple": false,
|
|
1998
2102
|
"type": "option"
|
|
1999
2103
|
},
|
|
2000
2104
|
"title": {
|
|
2001
2105
|
"name": "title",
|
|
2002
|
-
"summary": "
|
|
2106
|
+
"summary": "New title.",
|
|
2003
2107
|
"hasDynamicHelp": false,
|
|
2004
2108
|
"multiple": false,
|
|
2005
2109
|
"type": "option"
|
|
2006
2110
|
},
|
|
2007
2111
|
"description": {
|
|
2008
2112
|
"name": "description",
|
|
2009
|
-
"summary": "
|
|
2113
|
+
"summary": "New description, as Markdown.",
|
|
2010
2114
|
"hasDynamicHelp": false,
|
|
2011
2115
|
"multiple": false,
|
|
2012
2116
|
"type": "option"
|
|
2013
2117
|
},
|
|
2014
|
-
"
|
|
2015
|
-
"name": "
|
|
2016
|
-
"summary": "
|
|
2017
|
-
"
|
|
2018
|
-
"
|
|
2118
|
+
"target-branch": {
|
|
2119
|
+
"name": "target-branch",
|
|
2120
|
+
"summary": "New target branch.",
|
|
2121
|
+
"hasDynamicHelp": false,
|
|
2122
|
+
"multiple": false,
|
|
2123
|
+
"type": "option"
|
|
2124
|
+
},
|
|
2125
|
+
"state": {
|
|
2126
|
+
"name": "state",
|
|
2127
|
+
"summary": "Close or reopen the merge request.",
|
|
2128
|
+
"hasDynamicHelp": false,
|
|
2129
|
+
"multiple": false,
|
|
2130
|
+
"options": [
|
|
2131
|
+
"close",
|
|
2132
|
+
"reopen"
|
|
2133
|
+
],
|
|
2134
|
+
"type": "option"
|
|
2019
2135
|
},
|
|
2020
2136
|
"squash": {
|
|
2021
2137
|
"name": "squash",
|
|
2022
2138
|
"summary": "Squash the commits when it merges.",
|
|
2023
|
-
"allowNo":
|
|
2139
|
+
"allowNo": true,
|
|
2024
2140
|
"type": "boolean"
|
|
2025
2141
|
},
|
|
2026
2142
|
"remove-source-branch": {
|
|
2027
2143
|
"name": "remove-source-branch",
|
|
2028
2144
|
"summary": "Delete the source branch on merge.",
|
|
2029
|
-
"allowNo":
|
|
2145
|
+
"allowNo": true,
|
|
2030
2146
|
"type": "boolean"
|
|
2031
2147
|
},
|
|
2032
2148
|
"assignee-id": {
|
|
2033
2149
|
"name": "assignee-id",
|
|
2034
|
-
"summary": "User id to assign. Repeatable.",
|
|
2150
|
+
"summary": "User id to assign, replacing the set. Repeatable.",
|
|
2035
2151
|
"hasDynamicHelp": false,
|
|
2036
2152
|
"multiple": true,
|
|
2037
2153
|
"type": "option"
|
|
2038
2154
|
},
|
|
2039
2155
|
"reviewer-id": {
|
|
2040
2156
|
"name": "reviewer-id",
|
|
2041
|
-
"summary": "User id to
|
|
2157
|
+
"summary": "User id to review, replacing the set. Repeatable.",
|
|
2042
2158
|
"hasDynamicHelp": false,
|
|
2043
2159
|
"multiple": true,
|
|
2044
2160
|
"type": "option"
|
|
2045
2161
|
},
|
|
2046
2162
|
"labels": {
|
|
2047
2163
|
"name": "labels",
|
|
2048
|
-
"summary": "Comma-separated labels
|
|
2164
|
+
"summary": "Comma-separated labels, replacing the existing set.",
|
|
2049
2165
|
"hasDynamicHelp": false,
|
|
2050
2166
|
"multiple": false,
|
|
2051
2167
|
"type": "option"
|
|
@@ -2077,12 +2193,12 @@
|
|
|
2077
2193
|
},
|
|
2078
2194
|
"hasDynamicHelp": false,
|
|
2079
2195
|
"hiddenAliases": [],
|
|
2080
|
-
"id": "gitlab:mr:
|
|
2196
|
+
"id": "gitlab:mr:update",
|
|
2081
2197
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
2082
2198
|
"pluginName": "@simplysf/simply-gitlab",
|
|
2083
2199
|
"pluginType": "core",
|
|
2084
2200
|
"strict": true,
|
|
2085
|
-
"summary": "
|
|
2201
|
+
"summary": "Change an existing merge request.",
|
|
2086
2202
|
"enableJsonFlag": true,
|
|
2087
2203
|
"isWrite": true,
|
|
2088
2204
|
"isESM": true,
|
|
@@ -2091,26 +2207,25 @@
|
|
|
2091
2207
|
"commands",
|
|
2092
2208
|
"gitlab",
|
|
2093
2209
|
"mr",
|
|
2094
|
-
"
|
|
2210
|
+
"update.js"
|
|
2095
2211
|
],
|
|
2096
2212
|
"aliasPermutations": [],
|
|
2097
2213
|
"permutations": [
|
|
2098
|
-
"gitlab:mr:
|
|
2099
|
-
"mr:gitlab:
|
|
2100
|
-
"mr:
|
|
2101
|
-
"gitlab:
|
|
2102
|
-
"
|
|
2103
|
-
"
|
|
2214
|
+
"gitlab:mr:update",
|
|
2215
|
+
"mr:gitlab:update",
|
|
2216
|
+
"mr:update:gitlab",
|
|
2217
|
+
"gitlab:update:mr",
|
|
2218
|
+
"update:gitlab:mr",
|
|
2219
|
+
"update:mr:gitlab"
|
|
2104
2220
|
]
|
|
2105
2221
|
},
|
|
2106
|
-
"gitlab:mr:
|
|
2222
|
+
"gitlab:mr:view": {
|
|
2107
2223
|
"aliases": [],
|
|
2108
2224
|
"args": {},
|
|
2109
|
-
"description": "
|
|
2225
|
+
"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
2226
|
"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"
|
|
2227
|
+
"<%= config.bin %> <%= command.id %> --project group/project --mr 42",
|
|
2228
|
+
"<%= config.bin %> <%= command.id %> --project group/project --mr 42 --json"
|
|
2114
2229
|
],
|
|
2115
2230
|
"flags": {
|
|
2116
2231
|
"json": {
|
|
@@ -2158,67 +2273,10 @@
|
|
|
2158
2273
|
"multiple": false,
|
|
2159
2274
|
"type": "option"
|
|
2160
2275
|
},
|
|
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.",
|
|
2276
|
+
"mr": {
|
|
2277
|
+
"name": "mr",
|
|
2278
|
+
"required": true,
|
|
2279
|
+
"summary": "Merge request iid.",
|
|
2222
2280
|
"hasDynamicHelp": false,
|
|
2223
2281
|
"multiple": false,
|
|
2224
2282
|
"type": "option"
|
|
@@ -2226,12 +2284,12 @@
|
|
|
2226
2284
|
},
|
|
2227
2285
|
"hasDynamicHelp": false,
|
|
2228
2286
|
"hiddenAliases": [],
|
|
2229
|
-
"id": "gitlab:mr:
|
|
2287
|
+
"id": "gitlab:mr:view",
|
|
2230
2288
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
2231
2289
|
"pluginName": "@simplysf/simply-gitlab",
|
|
2232
2290
|
"pluginType": "core",
|
|
2233
2291
|
"strict": true,
|
|
2234
|
-
"summary": "
|
|
2292
|
+
"summary": "Show one merge request.",
|
|
2235
2293
|
"enableJsonFlag": true,
|
|
2236
2294
|
"isWrite": false,
|
|
2237
2295
|
"isESM": true,
|
|
@@ -2240,27 +2298,28 @@
|
|
|
2240
2298
|
"commands",
|
|
2241
2299
|
"gitlab",
|
|
2242
2300
|
"mr",
|
|
2243
|
-
"
|
|
2301
|
+
"view.js"
|
|
2244
2302
|
],
|
|
2245
2303
|
"aliasPermutations": [],
|
|
2246
2304
|
"permutations": [
|
|
2247
|
-
"gitlab:mr:
|
|
2248
|
-
"mr:gitlab:
|
|
2249
|
-
"mr:
|
|
2250
|
-
"gitlab:
|
|
2251
|
-
"
|
|
2252
|
-
"
|
|
2305
|
+
"gitlab:mr:view",
|
|
2306
|
+
"mr:gitlab:view",
|
|
2307
|
+
"mr:view:gitlab",
|
|
2308
|
+
"gitlab:view:mr",
|
|
2309
|
+
"view:gitlab:mr",
|
|
2310
|
+
"view:mr:gitlab"
|
|
2253
2311
|
]
|
|
2254
2312
|
},
|
|
2255
|
-
"gitlab:
|
|
2313
|
+
"gitlab:project:create": {
|
|
2256
2314
|
"aliases": [],
|
|
2257
2315
|
"args": {},
|
|
2258
|
-
"description": "
|
|
2316
|
+
"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
2317
|
"examples": [
|
|
2260
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2261
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2262
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2263
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2318
|
+
"<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps",
|
|
2319
|
+
"<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps --template express --visibility internal",
|
|
2320
|
+
"<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps --template service-skeleton --template-group platform/templates",
|
|
2321
|
+
"<%= config.bin %> <%= command.id %> --path new-service --template-project platform/templates/service-skeleton --dry-run",
|
|
2322
|
+
"<%= config.bin %> <%= command.id %> --name new-service --template-project platform/templates/service-skeleton --template-group platform/templates"
|
|
2264
2323
|
],
|
|
2265
2324
|
"flags": {
|
|
2266
2325
|
"json": {
|
|
@@ -2298,96 +2357,126 @@
|
|
|
2298
2357
|
"multiple": false,
|
|
2299
2358
|
"type": "option"
|
|
2300
2359
|
},
|
|
2301
|
-
"project": {
|
|
2302
|
-
"char": "p",
|
|
2303
|
-
"env": "GITLAB_PROJECT",
|
|
2304
|
-
"name": "project",
|
|
2305
|
-
"required": true,
|
|
2306
|
-
"summary": "Project id, or its full path such as group/subgroup/project.",
|
|
2307
|
-
"hasDynamicHelp": false,
|
|
2308
|
-
"multiple": false,
|
|
2309
|
-
"type": "option"
|
|
2310
|
-
},
|
|
2311
2360
|
"dry-run": {
|
|
2312
2361
|
"name": "dry-run",
|
|
2313
2362
|
"summary": "Print the request that would be sent and exit without sending it.",
|
|
2314
2363
|
"allowNo": false,
|
|
2315
2364
|
"type": "boolean"
|
|
2316
2365
|
},
|
|
2317
|
-
"
|
|
2318
|
-
"name": "
|
|
2319
|
-
"
|
|
2320
|
-
"summary": "Merge request iid.",
|
|
2366
|
+
"name": {
|
|
2367
|
+
"name": "name",
|
|
2368
|
+
"summary": "Project name. The path is derived from it when --path is not given.",
|
|
2321
2369
|
"hasDynamicHelp": false,
|
|
2322
2370
|
"multiple": false,
|
|
2323
2371
|
"type": "option"
|
|
2324
2372
|
},
|
|
2325
|
-
"
|
|
2326
|
-
"name": "
|
|
2327
|
-
"summary": "
|
|
2373
|
+
"path": {
|
|
2374
|
+
"name": "path",
|
|
2375
|
+
"summary": "Repository path, the URL slug. The name is derived from it when --name is not given.",
|
|
2328
2376
|
"hasDynamicHelp": false,
|
|
2329
2377
|
"multiple": false,
|
|
2330
2378
|
"type": "option"
|
|
2331
2379
|
},
|
|
2332
|
-
"
|
|
2333
|
-
"
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
"
|
|
2337
|
-
"
|
|
2338
|
-
"
|
|
2339
|
-
"type": "boolean"
|
|
2380
|
+
"namespace": {
|
|
2381
|
+
"description": "Defaults to the namespace of the token owner.",
|
|
2382
|
+
"name": "namespace",
|
|
2383
|
+
"summary": "Group or user namespace to create the project in, by id or full path.",
|
|
2384
|
+
"hasDynamicHelp": false,
|
|
2385
|
+
"multiple": false,
|
|
2386
|
+
"type": "option"
|
|
2340
2387
|
},
|
|
2341
|
-
"
|
|
2342
|
-
"
|
|
2343
|
-
|
|
2388
|
+
"description": {
|
|
2389
|
+
"name": "description",
|
|
2390
|
+
"summary": "Project description.",
|
|
2391
|
+
"hasDynamicHelp": false,
|
|
2392
|
+
"multiple": false,
|
|
2393
|
+
"type": "option"
|
|
2394
|
+
},
|
|
2395
|
+
"visibility": {
|
|
2396
|
+
"name": "visibility",
|
|
2397
|
+
"summary": "Who can see the project.",
|
|
2398
|
+
"hasDynamicHelp": false,
|
|
2399
|
+
"multiple": false,
|
|
2400
|
+
"options": [
|
|
2401
|
+
"private",
|
|
2402
|
+
"internal",
|
|
2403
|
+
"public"
|
|
2344
2404
|
],
|
|
2345
|
-
"
|
|
2346
|
-
"summary": "Merge now without restarting the merge train. Experimental in GitLab.",
|
|
2347
|
-
"allowNo": false,
|
|
2348
|
-
"type": "boolean"
|
|
2405
|
+
"type": "option"
|
|
2349
2406
|
},
|
|
2350
|
-
"
|
|
2351
|
-
"name": "
|
|
2352
|
-
"summary": "
|
|
2353
|
-
"
|
|
2354
|
-
"
|
|
2407
|
+
"default-branch": {
|
|
2408
|
+
"name": "default-branch",
|
|
2409
|
+
"summary": "Name of the default branch.",
|
|
2410
|
+
"hasDynamicHelp": false,
|
|
2411
|
+
"multiple": false,
|
|
2412
|
+
"type": "option"
|
|
2355
2413
|
},
|
|
2356
|
-
"
|
|
2357
|
-
"name": "
|
|
2358
|
-
"summary": "
|
|
2359
|
-
"allowNo":
|
|
2414
|
+
"initialize-with-readme": {
|
|
2415
|
+
"name": "initialize-with-readme",
|
|
2416
|
+
"summary": "Create a first commit holding a README, so the repository is not empty.",
|
|
2417
|
+
"allowNo": false,
|
|
2360
2418
|
"type": "boolean"
|
|
2361
2419
|
},
|
|
2362
|
-
"
|
|
2363
|
-
"name": "
|
|
2364
|
-
"summary": "
|
|
2420
|
+
"topics": {
|
|
2421
|
+
"name": "topics",
|
|
2422
|
+
"summary": "Comma-separated topics to label the project with.",
|
|
2365
2423
|
"hasDynamicHelp": false,
|
|
2366
2424
|
"multiple": false,
|
|
2367
2425
|
"type": "option"
|
|
2368
2426
|
},
|
|
2369
|
-
"
|
|
2370
|
-
"name": "
|
|
2371
|
-
"summary": "
|
|
2427
|
+
"template": {
|
|
2428
|
+
"name": "template",
|
|
2429
|
+
"summary": "Template to create from: a built-in name, or with --custom-template or --template-group a custom one.",
|
|
2372
2430
|
"hasDynamicHelp": false,
|
|
2373
2431
|
"multiple": false,
|
|
2374
2432
|
"type": "option"
|
|
2375
2433
|
},
|
|
2376
|
-
"
|
|
2377
|
-
"name": "
|
|
2378
|
-
"summary": "
|
|
2434
|
+
"custom-template": {
|
|
2435
|
+
"name": "custom-template",
|
|
2436
|
+
"summary": "Look --template up among the instance's custom project templates rather than the built-in ones.",
|
|
2379
2437
|
"allowNo": false,
|
|
2380
2438
|
"type": "boolean"
|
|
2439
|
+
},
|
|
2440
|
+
"template-group": {
|
|
2441
|
+
"name": "template-group",
|
|
2442
|
+
"summary": "Group whose custom project templates --template or --template-project names, by id or full path.",
|
|
2443
|
+
"hasDynamicHelp": false,
|
|
2444
|
+
"multiple": false,
|
|
2445
|
+
"type": "option"
|
|
2446
|
+
},
|
|
2447
|
+
"template-project": {
|
|
2448
|
+
"name": "template-project",
|
|
2449
|
+
"summary": "Custom template project to create from, by id or full path. Cannot be combined with --template.",
|
|
2450
|
+
"hasDynamicHelp": false,
|
|
2451
|
+
"multiple": false,
|
|
2452
|
+
"type": "option"
|
|
2453
|
+
},
|
|
2454
|
+
"body": {
|
|
2455
|
+
"exclusive": [
|
|
2456
|
+
"body-file"
|
|
2457
|
+
],
|
|
2458
|
+
"name": "body",
|
|
2459
|
+
"summary": "Raw JSON request body.",
|
|
2460
|
+
"hasDynamicHelp": false,
|
|
2461
|
+
"multiple": false,
|
|
2462
|
+
"type": "option"
|
|
2463
|
+
},
|
|
2464
|
+
"body-file": {
|
|
2465
|
+
"name": "body-file",
|
|
2466
|
+
"summary": "Path to a file holding the raw JSON request body.",
|
|
2467
|
+
"hasDynamicHelp": false,
|
|
2468
|
+
"multiple": false,
|
|
2469
|
+
"type": "option"
|
|
2381
2470
|
}
|
|
2382
2471
|
},
|
|
2383
2472
|
"hasDynamicHelp": false,
|
|
2384
2473
|
"hiddenAliases": [],
|
|
2385
|
-
"id": "gitlab:
|
|
2474
|
+
"id": "gitlab:project:create",
|
|
2386
2475
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
2387
2476
|
"pluginName": "@simplysf/simply-gitlab",
|
|
2388
2477
|
"pluginType": "core",
|
|
2389
2478
|
"strict": true,
|
|
2390
|
-
"summary": "
|
|
2479
|
+
"summary": "Create a project, blank or from a template.",
|
|
2391
2480
|
"enableJsonFlag": true,
|
|
2392
2481
|
"isWrite": true,
|
|
2393
2482
|
"isESM": true,
|
|
@@ -2395,27 +2484,27 @@
|
|
|
2395
2484
|
"lib",
|
|
2396
2485
|
"commands",
|
|
2397
2486
|
"gitlab",
|
|
2398
|
-
"
|
|
2399
|
-
"
|
|
2487
|
+
"project",
|
|
2488
|
+
"create.js"
|
|
2400
2489
|
],
|
|
2401
2490
|
"aliasPermutations": [],
|
|
2402
2491
|
"permutations": [
|
|
2403
|
-
"gitlab:
|
|
2404
|
-
"
|
|
2405
|
-
"
|
|
2406
|
-
"gitlab:
|
|
2407
|
-
"
|
|
2408
|
-
"
|
|
2492
|
+
"gitlab:project:create",
|
|
2493
|
+
"project:gitlab:create",
|
|
2494
|
+
"project:create:gitlab",
|
|
2495
|
+
"gitlab:create:project",
|
|
2496
|
+
"create:gitlab:project",
|
|
2497
|
+
"create:project:gitlab"
|
|
2409
2498
|
]
|
|
2410
2499
|
},
|
|
2411
|
-
"gitlab:
|
|
2500
|
+
"gitlab:project:list": {
|
|
2412
2501
|
"aliases": [],
|
|
2413
2502
|
"args": {},
|
|
2414
|
-
"description": "
|
|
2503
|
+
"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.",
|
|
2415
2504
|
"examples": [
|
|
2416
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2417
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2418
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2505
|
+
"<%= config.bin %> <%= command.id %> --membership",
|
|
2506
|
+
"<%= config.bin %> <%= command.id %> --search platform --limit 10",
|
|
2507
|
+
"<%= config.bin %> <%= command.id %> --search platform --simple --json"
|
|
2419
2508
|
],
|
|
2420
2509
|
"flags": {
|
|
2421
2510
|
"json": {
|
|
@@ -2453,155 +2542,75 @@
|
|
|
2453
2542
|
"multiple": false,
|
|
2454
2543
|
"type": "option"
|
|
2455
2544
|
},
|
|
2456
|
-
"
|
|
2457
|
-
"
|
|
2458
|
-
"
|
|
2459
|
-
"
|
|
2460
|
-
"required": true,
|
|
2461
|
-
"summary": "Project id, or its full path such as group/subgroup/project.",
|
|
2462
|
-
"hasDynamicHelp": false,
|
|
2463
|
-
"multiple": false,
|
|
2464
|
-
"type": "option"
|
|
2465
|
-
},
|
|
2466
|
-
"dry-run": {
|
|
2467
|
-
"name": "dry-run",
|
|
2468
|
-
"summary": "Print the request that would be sent and exit without sending it.",
|
|
2469
|
-
"allowNo": false,
|
|
2470
|
-
"type": "boolean"
|
|
2471
|
-
},
|
|
2472
|
-
"mr": {
|
|
2473
|
-
"name": "mr",
|
|
2474
|
-
"required": true,
|
|
2475
|
-
"summary": "Merge request iid.",
|
|
2476
|
-
"hasDynamicHelp": false,
|
|
2477
|
-
"multiple": false,
|
|
2478
|
-
"type": "option"
|
|
2479
|
-
},
|
|
2480
|
-
"title": {
|
|
2481
|
-
"name": "title",
|
|
2482
|
-
"summary": "New title.",
|
|
2483
|
-
"hasDynamicHelp": false,
|
|
2484
|
-
"multiple": false,
|
|
2485
|
-
"type": "option"
|
|
2486
|
-
},
|
|
2487
|
-
"description": {
|
|
2488
|
-
"name": "description",
|
|
2489
|
-
"summary": "New description, as Markdown.",
|
|
2490
|
-
"hasDynamicHelp": false,
|
|
2491
|
-
"multiple": false,
|
|
2492
|
-
"type": "option"
|
|
2493
|
-
},
|
|
2494
|
-
"target-branch": {
|
|
2495
|
-
"name": "target-branch",
|
|
2496
|
-
"summary": "New target branch.",
|
|
2545
|
+
"limit": {
|
|
2546
|
+
"name": "limit",
|
|
2547
|
+
"summary": "Maximum number of projects to return across all pages.",
|
|
2548
|
+
"default": 20,
|
|
2497
2549
|
"hasDynamicHelp": false,
|
|
2498
2550
|
"multiple": false,
|
|
2499
2551
|
"type": "option"
|
|
2500
2552
|
},
|
|
2501
|
-
"
|
|
2502
|
-
"name": "
|
|
2503
|
-
"summary": "
|
|
2553
|
+
"search": {
|
|
2554
|
+
"name": "search",
|
|
2555
|
+
"summary": "Match against the project name and path.",
|
|
2504
2556
|
"hasDynamicHelp": false,
|
|
2505
2557
|
"multiple": false,
|
|
2506
|
-
"options": [
|
|
2507
|
-
"close",
|
|
2508
|
-
"reopen"
|
|
2509
|
-
],
|
|
2510
2558
|
"type": "option"
|
|
2511
2559
|
},
|
|
2512
|
-
"
|
|
2513
|
-
"name": "
|
|
2514
|
-
"summary": "
|
|
2515
|
-
"allowNo":
|
|
2560
|
+
"membership": {
|
|
2561
|
+
"name": "membership",
|
|
2562
|
+
"summary": "Only projects you are a member of.",
|
|
2563
|
+
"allowNo": false,
|
|
2516
2564
|
"type": "boolean"
|
|
2517
2565
|
},
|
|
2518
|
-
"
|
|
2519
|
-
"name": "
|
|
2520
|
-
"summary": "
|
|
2521
|
-
"allowNo":
|
|
2566
|
+
"owned": {
|
|
2567
|
+
"name": "owned",
|
|
2568
|
+
"summary": "Only projects you own.",
|
|
2569
|
+
"allowNo": false,
|
|
2522
2570
|
"type": "boolean"
|
|
2523
2571
|
},
|
|
2524
|
-
"
|
|
2525
|
-
"name": "
|
|
2526
|
-
"summary": "
|
|
2527
|
-
"
|
|
2528
|
-
"
|
|
2529
|
-
"type": "option"
|
|
2530
|
-
},
|
|
2531
|
-
"reviewer-id": {
|
|
2532
|
-
"name": "reviewer-id",
|
|
2533
|
-
"summary": "User id to review, replacing the set. Repeatable.",
|
|
2534
|
-
"hasDynamicHelp": false,
|
|
2535
|
-
"multiple": true,
|
|
2536
|
-
"type": "option"
|
|
2537
|
-
},
|
|
2538
|
-
"labels": {
|
|
2539
|
-
"name": "labels",
|
|
2540
|
-
"summary": "Comma-separated labels, replacing the existing set.",
|
|
2541
|
-
"hasDynamicHelp": false,
|
|
2542
|
-
"multiple": false,
|
|
2543
|
-
"type": "option"
|
|
2544
|
-
},
|
|
2545
|
-
"milestone-id": {
|
|
2546
|
-
"name": "milestone-id",
|
|
2547
|
-
"summary": "Milestone id to attach.",
|
|
2548
|
-
"hasDynamicHelp": false,
|
|
2549
|
-
"multiple": false,
|
|
2550
|
-
"type": "option"
|
|
2551
|
-
},
|
|
2552
|
-
"body": {
|
|
2553
|
-
"exclusive": [
|
|
2554
|
-
"body-file"
|
|
2555
|
-
],
|
|
2556
|
-
"name": "body",
|
|
2557
|
-
"summary": "Raw JSON request body.",
|
|
2558
|
-
"hasDynamicHelp": false,
|
|
2559
|
-
"multiple": false,
|
|
2560
|
-
"type": "option"
|
|
2561
|
-
},
|
|
2562
|
-
"body-file": {
|
|
2563
|
-
"name": "body-file",
|
|
2564
|
-
"summary": "Path to a file holding the raw JSON request body.",
|
|
2565
|
-
"hasDynamicHelp": false,
|
|
2566
|
-
"multiple": false,
|
|
2567
|
-
"type": "option"
|
|
2572
|
+
"simple": {
|
|
2573
|
+
"name": "simple",
|
|
2574
|
+
"summary": "Return only the core fields, for a much smaller payload.",
|
|
2575
|
+
"allowNo": false,
|
|
2576
|
+
"type": "boolean"
|
|
2568
2577
|
}
|
|
2569
2578
|
},
|
|
2570
2579
|
"hasDynamicHelp": false,
|
|
2571
2580
|
"hiddenAliases": [],
|
|
2572
|
-
"id": "gitlab:
|
|
2581
|
+
"id": "gitlab:project:list",
|
|
2573
2582
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
2574
2583
|
"pluginName": "@simplysf/simply-gitlab",
|
|
2575
2584
|
"pluginType": "core",
|
|
2576
2585
|
"strict": true,
|
|
2577
|
-
"summary": "
|
|
2586
|
+
"summary": "List projects you can see.",
|
|
2578
2587
|
"enableJsonFlag": true,
|
|
2579
|
-
"isWrite":
|
|
2588
|
+
"isWrite": false,
|
|
2580
2589
|
"isESM": true,
|
|
2581
2590
|
"relativePath": [
|
|
2582
2591
|
"lib",
|
|
2583
2592
|
"commands",
|
|
2584
2593
|
"gitlab",
|
|
2585
|
-
"
|
|
2586
|
-
"
|
|
2594
|
+
"project",
|
|
2595
|
+
"list.js"
|
|
2587
2596
|
],
|
|
2588
2597
|
"aliasPermutations": [],
|
|
2589
2598
|
"permutations": [
|
|
2590
|
-
"gitlab:
|
|
2591
|
-
"
|
|
2592
|
-
"
|
|
2593
|
-
"gitlab:
|
|
2594
|
-
"
|
|
2595
|
-
"
|
|
2599
|
+
"gitlab:project:list",
|
|
2600
|
+
"project:gitlab:list",
|
|
2601
|
+
"project:list:gitlab",
|
|
2602
|
+
"gitlab:list:project",
|
|
2603
|
+
"list:gitlab:project",
|
|
2604
|
+
"list:project:gitlab"
|
|
2596
2605
|
]
|
|
2597
2606
|
},
|
|
2598
|
-
"gitlab:
|
|
2607
|
+
"gitlab:project:view": {
|
|
2599
2608
|
"aliases": [],
|
|
2600
2609
|
"args": {},
|
|
2601
|
-
"description": "
|
|
2610
|
+
"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.",
|
|
2602
2611
|
"examples": [
|
|
2603
|
-
"<%= config.bin %> <%= command.id %> --project group/project
|
|
2604
|
-
"<%= config.bin %> <%= command.id %> --project
|
|
2612
|
+
"<%= config.bin %> <%= command.id %> --project group/project",
|
|
2613
|
+
"<%= config.bin %> <%= command.id %> --project 1234 --json"
|
|
2605
2614
|
],
|
|
2606
2615
|
"flags": {
|
|
2607
2616
|
"json": {
|
|
@@ -2648,24 +2657,16 @@
|
|
|
2648
2657
|
"hasDynamicHelp": false,
|
|
2649
2658
|
"multiple": false,
|
|
2650
2659
|
"type": "option"
|
|
2651
|
-
},
|
|
2652
|
-
"mr": {
|
|
2653
|
-
"name": "mr",
|
|
2654
|
-
"required": true,
|
|
2655
|
-
"summary": "Merge request iid.",
|
|
2656
|
-
"hasDynamicHelp": false,
|
|
2657
|
-
"multiple": false,
|
|
2658
|
-
"type": "option"
|
|
2659
2660
|
}
|
|
2660
2661
|
},
|
|
2661
2662
|
"hasDynamicHelp": false,
|
|
2662
2663
|
"hiddenAliases": [],
|
|
2663
|
-
"id": "gitlab:
|
|
2664
|
+
"id": "gitlab:project:view",
|
|
2664
2665
|
"pluginAlias": "@simplysf/simply-gitlab",
|
|
2665
2666
|
"pluginName": "@simplysf/simply-gitlab",
|
|
2666
2667
|
"pluginType": "core",
|
|
2667
2668
|
"strict": true,
|
|
2668
|
-
"summary": "Show one
|
|
2669
|
+
"summary": "Show one project.",
|
|
2669
2670
|
"enableJsonFlag": true,
|
|
2670
2671
|
"isWrite": false,
|
|
2671
2672
|
"isESM": true,
|
|
@@ -2673,17 +2674,17 @@
|
|
|
2673
2674
|
"lib",
|
|
2674
2675
|
"commands",
|
|
2675
2676
|
"gitlab",
|
|
2676
|
-
"
|
|
2677
|
+
"project",
|
|
2677
2678
|
"view.js"
|
|
2678
2679
|
],
|
|
2679
2680
|
"aliasPermutations": [],
|
|
2680
2681
|
"permutations": [
|
|
2681
|
-
"gitlab:
|
|
2682
|
-
"
|
|
2683
|
-
"
|
|
2684
|
-
"gitlab:view:
|
|
2685
|
-
"view:gitlab:
|
|
2686
|
-
"view:
|
|
2682
|
+
"gitlab:project:view",
|
|
2683
|
+
"project:gitlab:view",
|
|
2684
|
+
"project:view:gitlab",
|
|
2685
|
+
"gitlab:view:project",
|
|
2686
|
+
"view:gitlab:project",
|
|
2687
|
+
"view:project:gitlab"
|
|
2687
2688
|
]
|
|
2688
2689
|
},
|
|
2689
2690
|
"gitlab:release:list": {
|
|
@@ -3546,5 +3547,5 @@
|
|
|
3546
3547
|
]
|
|
3547
3548
|
}
|
|
3548
3549
|
},
|
|
3549
|
-
"version": "0.
|
|
3550
|
+
"version": "0.11.0"
|
|
3550
3551
|
}
|