File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ type MergeRequest struct {
3232 Description string `json:"description,omitempty"`
3333 WorkInProgress bool `json:"work_in_progress,omitempty"`
3434 MergeStatus string `json:"merge_status,omitempty"`
35- SourceProjectID string `json:"source_project_id,omitempty"`
36- TargetProjectID string `json:"target_project_id,omitempty"`
35+ SourceProjectID int `json:"source_project_id,omitempty"`
36+ TargetProjectID int `json:"target_project_id,omitempty"`
3737}
3838
3939type ChangeItem struct {
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ func TestProjectMergeRequest(t *testing.T) {
2222 assert .Equal (t , err , nil )
2323 assert .Equal (t , mr .TargetBranch , "master" )
2424 assert .Equal (t , mr .MergeStatus , "can_be_merged" )
25- assert .Equal (t , mr .SourceProjectID , "2" )
26- assert .Equal (t , mr .TargetProjectID , "3" )
25+ assert .Equal (t , mr .SourceProjectID , 2 )
26+ assert .Equal (t , mr .TargetProjectID , 3 )
2727 defer ts .Close ()
2828}
2929
Original file line number Diff line number Diff line change 2626 "state" : " active" ,
2727 "created_at" : " 2012-04-29T08:46:00Z"
2828 },
29- "source_project_id" : " 2 " ,
30- "target_project_id" : " 3 " ,
29+ "source_project_id" : 2 ,
30+ "target_project_id" : 3 ,
3131 "description" :" fixed login page css paddings" ,
3232 "work_in_progress" : false ,
3333 "merge_status" : " can_be_merged"
You can’t perform that action at this time.
0 commit comments