File tree Expand file tree Collapse file tree 4 files changed +13
-35
lines changed Expand file tree Collapse file tree 4 files changed +13
-35
lines changed Original file line number Diff line number Diff line change 2323 - name : Checkout repository
2424 uses : actions/checkout@v3
2525
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+
2632 - name : Log in to the Container registry
2733 uses : docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
2834 with :
4248 push : true
4349 tags : ${{ steps.meta.outputs.tags }}
4450 labels : ${{ steps.meta.outputs.labels }}
51+ platforms : linux/amd64,linux/arm64
Original file line number Diff line number Diff line change 3737 "graphql" : " ^16.6.0" ,
3838 "graphql-tag" : " ^2.12.6" ,
3939 "http-proxy-middleware" : " ^2.0.6" ,
40- "i" : " ^0.3.7" ,
4140 "morgan" : " ~1.9.1" ,
4241 "npm" : " ^9.8.0" ,
43- "swagger-ui-express" : " ^4.5.0" ,
44- "uuid" : " ^9.0.0"
42+ "swagger-ui-express" : " ^4.5.0"
4543 },
4644 "devDependencies" : {
4745 "@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'
88
99import dbSchema from '../../change_request_schema.json'
1010import { 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+
1314class ChangeRequestDB {
1415 client : WOQLClient ;
1516 request : Request
@@ -103,7 +104,7 @@ class ChangeRequestDB {
103104 original_branch : originalBranch ,
104105 creator : creator ,
105106 // we autogenerate the branchName
106- tracking_branch : uuidv4 ( ) ,
107+ tracking_branch : crypto . randomUUID ( ) ,
107108 origin_commit_id : lastStartBranchCommitID ,
108109 creator_email : this . request . body . author || creator ,
109110 creation_time : timestamp ,
You can’t perform that action at this time.
0 commit comments