File tree 3 files changed +94
-1
lines changed
3 files changed +94
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " danger" ,
3
- "version" : " 10.6.1 " ,
3
+ "version" : " 10.6.2 " ,
4
4
"description" : " Unit tests for Team Culture" ,
5
5
"main" : " distribution/danger.js" ,
6
6
"typings" : " distribution/danger.d.ts" ,
Original file line number Diff line number Diff line change 1575
1575
},
1576
1576
"type": "object"
1577
1577
},
1578
+ "GitLabApproval": {
1579
+ "properties": {
1580
+ "approvals_left": {
1581
+ "type": "number"
1582
+ },
1583
+ "approvals_required": {
1584
+ "type": "number"
1585
+ },
1586
+ "approved_by": {
1587
+ "anyOf": [
1588
+ {
1589
+ "items": {
1590
+ "properties": {
1591
+ "user": {
1592
+ "$ref": "#/definitions/GitLabUser"
1593
+ }
1594
+ },
1595
+ "type": "object"
1596
+ },
1597
+ "type": "array"
1598
+ },
1599
+ {
1600
+ "items": {
1601
+ "$ref": "#/definitions/GitLabUser"
1602
+ },
1603
+ "type": "array"
1604
+ }
1605
+ ]
1606
+ },
1607
+ "created_at": {
1608
+ "type": "string"
1609
+ },
1610
+ "description": {
1611
+ "type": "string"
1612
+ },
1613
+ "id": {
1614
+ "type": "number"
1615
+ },
1616
+ "iid": {
1617
+ "type": "number"
1618
+ },
1619
+ "merge_status": {
1620
+ "enum": [
1621
+ "can_be_merged"
1622
+ ],
1623
+ "type": "string"
1624
+ },
1625
+ "project_id": {
1626
+ "type": "number"
1627
+ },
1628
+ "state": {
1629
+ "enum": [
1630
+ "closed",
1631
+ "locked",
1632
+ "merged",
1633
+ "open"
1634
+ ],
1635
+ "type": "string"
1636
+ },
1637
+ "title": {
1638
+ "type": "string"
1639
+ },
1640
+ "updated_at": {
1641
+ "type": "string"
1642
+ }
1643
+ },
1644
+ "type": "object"
1645
+ },
1578
1646
"GitLabDSL": {
1579
1647
"description": "The GitLab metadata for your MR",
1580
1648
"properties": {
1649
+ "approvals": {
1650
+ "$ref": "#/definitions/GitLabApproval",
1651
+ "description": "Merge Request-level MR approvals Configuration"
1652
+ },
1581
1653
"commits": {
1582
1654
"description": "All of the individual commits in the merge request",
1583
1655
"items": {
Original file line number Diff line number Diff line change @@ -1445,6 +1445,8 @@ interface GitLabJSONDSL {
1445
1445
mr : GitLabMR
1446
1446
/** All of the individual commits in the merge request */
1447
1447
commits : GitLabMRCommit [ ]
1448
+ /** Merge Request-level MR approvals Configuration */
1449
+ approvals : GitLabApproval
1448
1450
}
1449
1451
1450
1452
// danger.gitlab
@@ -1703,6 +1705,25 @@ interface GitLabRepositoryCompare {
1703
1705
compare_timeout : boolean
1704
1706
compare_same_ref : boolean
1705
1707
}
1708
+
1709
+ interface GitLabApproval {
1710
+ id : number
1711
+ iid : number
1712
+ project_id : number
1713
+ title : string
1714
+ description : string
1715
+ state : "closed" | "open" | "locked" | "merged"
1716
+ created_at : string
1717
+ updated_at : string
1718
+ merge_status : "can_be_merged"
1719
+ approvals_required : number
1720
+ approvals_left : number
1721
+ approved_by ?:
1722
+ | {
1723
+ user : GitLabUser
1724
+ } [ ]
1725
+ | GitLabUser [ ]
1726
+ }
1706
1727
/**
1707
1728
* The result of user doing warn, message or fail, built this way for
1708
1729
* expansion later.
You can’t perform that action at this time.
0 commit comments