plusieurs changements
This commit is contained in:
+4
-4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user