plusieurs changements

This commit is contained in:
2023-06-30 15:25:39 -04:00
parent 7d4d6cb0e7
commit 58f291d437
18 changed files with 129 additions and 66 deletions
+4 -4
View File
@@ -4,9 +4,9 @@ import (
"bytes"
"encoding/json"
"fmt"
"kode-starter/config"
"kode-starter/structures"
"kode-starter/utils"
"kode-creator/config"
"kode-creator/structures"
"kode-creator/utils"
"log"
"net/http"
"os"
@@ -71,7 +71,7 @@ func CreateProject(cmd *cobra.Command, args []string) error {
req, err := http.NewRequest("POST",
fmt.Sprintf("%s/%s/repos", CfgGlobal.GetUrlApiOrgs(), CfgGlobal.GetCreateCmd().Organisation),
bytes.NewBuffer(jsonData))
req.Header.Set("Authorization", "token "+CfgGlobal.GetTokenEnv())
req.Header.Set("Authorization", "token "+CfgGlobal.GetGitTeaTokenEnv())
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
res, err := client.Do(req)