File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -403,9 +403,14 @@ defmodule DatabaseMigration do
403
403
% {
404
404
"id" => row [ "id" ] ,
405
405
"status" => nil ,
406
- "type" => nil ,
406
+ "type" =>
407
+ cond do
408
+ row [ "github_pull_request_id" ] != nil -> "pull_request"
409
+ String . match? ( row [ "github_url" ] || "" , ~r{ ^https?://(?:www\. )?figma\. com/} ) -> "design"
410
+ true -> "pull_request"
411
+ end ,
407
412
"url" => row [ "github_url" ] ,
408
- "group_id" => nil ,
413
+ "group_id" => row [ "id" ] ,
409
414
"group_share" => nil ,
410
415
"source_id" => github_pull_request [ "task_id" ] ,
411
416
"target_id" => task [ "id" ] ,
Original file line number Diff line number Diff line change 44
44
- claims :
45
45
- id : 1
46
46
- status : 0
47
- - type : 0
47
+ - type : 1
48
48
- url : 1
49
- - group_id : 0
50
- - group_share : 0
49
+ - group_id : 1
50
+ - group_share : -1
51
51
- source_id : 1
52
52
- target_id : 1
53
53
- user_id : 1
You can’t perform that action at this time.
0 commit comments