File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
apps/dokploy/components/dashboard/settings/git/github Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,14 @@ export const AddGithubProvider = () => {
24
24
const [ isOrganization , setIsOrganization ] = useState ( false ) ;
25
25
const [ organizationName , setOrganization ] = useState ( "" ) ;
26
26
27
+ const randomString = ( ) => Math . random ( ) . toString ( 36 ) . slice ( 2 , 8 ) ;
28
+
27
29
useEffect ( ( ) => {
28
30
const url = document . location . origin ;
29
31
const manifest = JSON . stringify (
30
32
{
31
33
redirect_url : `${ origin } /api/providers/github/setup?organizationId=${ activeOrganization ?. id } &userId=${ session ?. user ?. id } ` ,
32
- name : `Dokploy-${ format ( new Date ( ) , "yyyy-MM-dd" ) } ` ,
34
+ name : `Dokploy-${ format ( new Date ( ) , "yyyy-MM-dd" ) } - ${ randomString ( ) } ` ,
33
35
url : origin ,
34
36
hook_attributes : {
35
37
url : `${ url } /api/deploy/github` ,
You can’t perform that action at this time.
0 commit comments