File tree 4 files changed +13
-35
lines changed
4 files changed +13
-35
lines changed Original file line number Diff line number Diff line change 23
23
- name : Checkout repository
24
24
uses : actions/checkout@v3
25
25
26
+ - name : Set up QEMU
27
+ uses : docker/setup-qemu-action@v2
28
+
29
+ - name : Set up Docker Buildx
30
+ uses : docker/setup-buildx-action@v2
31
+
26
32
- name : Log in to the Container registry
27
33
uses : docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
28
34
with :
42
48
push : true
43
49
tags : ${{ steps.meta.outputs.tags }}
44
50
labels : ${{ steps.meta.outputs.labels }}
51
+ platforms : linux/amd64,linux/arm64
Original file line number Diff line number Diff line change 37
37
"graphql" : " ^16.6.0" ,
38
38
"graphql-tag" : " ^2.12.6" ,
39
39
"http-proxy-middleware" : " ^2.0.6" ,
40
- "i" : " ^0.3.7" ,
41
40
"morgan" : " ~1.9.1" ,
42
41
"npm" : " ^9.8.0" ,
43
- "swagger-ui-express" : " ^4.5.0" ,
44
- "uuid" : " ^9.0.0"
42
+ "swagger-ui-express" : " ^4.5.0"
45
43
},
46
44
"devDependencies" : {
47
45
"@types/cookie-parser" : " ^1.4.3" ,
Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ import * as settings from './settings'
8
8
9
9
import dbSchema from '../../change_request_schema.json'
10
10
import { doc } from "@terminusdb/terminusdb-client/dist/typescript/lib/woql"
11
- //import {v4 as uuidv4} from 'uuid';
12
- const { v4 : uuidv4 } = require ( 'uuid' ) ;
11
+
12
+ const crypto = require ( 'node:crypto' ) ;
13
+
13
14
class ChangeRequestDB {
14
15
client : WOQLClient ;
15
16
request : Request
@@ -103,7 +104,7 @@ class ChangeRequestDB {
103
104
original_branch : originalBranch ,
104
105
creator : creator ,
105
106
// we autogenerate the branchName
106
- tracking_branch : uuidv4 ( ) ,
107
+ tracking_branch : crypto . randomUUID ( ) ,
107
108
origin_commit_id : lastStartBranchCommitID ,
108
109
creator_email : this . request . body . author || creator ,
109
110
creation_time : timestamp ,
You can’t perform that action at this time.
0 commit comments