File tree Expand file tree Collapse file tree 4 files changed +12
-10
lines changed
DangerFixtures/DangerDSLResources Expand file tree Collapse file tree 4 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 13
13
14
14
## Master
15
15
16
+ - Gitlab Error in merge request with estimate or spent time [ @oscarcv ] [ ] - [ #548 ] ( https://github.com/danger/swift/pull/548 )
17
+
16
18
## 3.15.0
17
19
18
20
- Parse GitHub commit verification [ @f-meloni ] [ ] - [ #547 ] ( https://github.com/danger/swift/pull/547 )
Original file line number Diff line number Diff line change @@ -110,8 +110,8 @@ public extension GitLab {
110
110
case totalTimeSpent = " total_time_spent "
111
111
}
112
112
113
- public let humanTimeEstimate : Int ?
114
- public let humanTimeSpent : Int ?
113
+ public let humanTimeEstimate : String ?
114
+ public let humanTimeSpent : String ?
115
115
public let timeEstimate : Int
116
116
public let totalTimeSpent : Int
117
117
}
Original file line number Diff line number Diff line change @@ -122,10 +122,10 @@ public let DSLGitLabJSON = """
122
122
" reference " : " !182 " ,
123
123
" web_url " : " https://gitlab.com/danger-systems/danger.systems/merge_requests/182 " ,
124
124
" time_stats " : {
125
- " time_estimate " : 0 ,
126
- " total_time_spent " : 0 ,
127
- " human_time_estimate " : null ,
128
- " human_total_time_spent " : null
125
+ " time_estimate " : 12600 ,
126
+ " total_time_spent " : 12600 ,
127
+ " human_time_estimate " : " 3h 30m " ,
128
+ " human_total_time_spent " : " 3h 30m " ,
129
129
},
130
130
" squash " : false,
131
131
" subscribed " : false,
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ final class GitLabTests: XCTestCase {
14
14
state: . active,
15
15
username: " f-meloni " ,
16
16
webUrl: " https://gitlab.com/f-meloni " )
17
- let expectedTimeStats = GitLab . MergeRequest. TimeStats ( humanTimeEstimate: nil ,
18
- humanTimeSpent: nil ,
19
- timeEstimate: 0 ,
20
- totalTimeSpent: 0 )
17
+ let expectedTimeStats = GitLab . MergeRequest. TimeStats ( humanTimeEstimate: " 3h 30m " ,
18
+ humanTimeSpent: " 3h 30m " ,
19
+ timeEstimate: 12600 ,
20
+ totalTimeSpent: 12600 )
21
21
let orta = GitLab . User ( avatarUrl: " https://secure.gravatar.com/avatar/f116cb3be23153ec08b94e8bd4dbcfeb?s=80&d=identicon " ,
22
22
id: 377_669 ,
23
23
name: " Orta " ,
You can’t perform that action at this time.
0 commit comments