You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This command will fetch the repository names and topics from the GitHub API and generate the JSON file. And then it will create the teams and update the assets.
56
93
57
-
### Using external json file with the --input argument
94
+
### Using External JSON File
58
95
59
96
You can also provide a JSON file containing team details using the `--input` argument. The JSON file should have the following structure:
60
97
61
98
```json
62
-
[
63
-
{
64
-
"name": "Repository 1",
65
-
"topics": ["topic1", "topic2"]
66
-
},
67
-
{
68
-
"name": "Repository 2",
69
-
"topics": ["topic3"]
70
-
}
71
-
]
99
+
{
100
+
"teams": [
101
+
{
102
+
"name": "Team 1",
103
+
"members": ["user1", "user2"],
104
+
"resources": [
105
+
{
106
+
"type": "{resource_type}",
107
+
"name": "Resource 1"
108
+
},
109
+
{
110
+
"type": "{resource_type}",
111
+
"name": "Resource 2"
112
+
}
113
+
]
114
+
},
115
+
{
116
+
"name": "Team 2",
117
+
"members": ["user3", "user4"],
118
+
"resources": [
119
+
{
120
+
"type": "{resource_type}",
121
+
"name": "Resource 3"
122
+
}
123
+
]
124
+
}
125
+
]
126
+
}
72
127
```
73
128
74
129
To use the `--input` argument, run the following command:
Replace `path/to/teams.json` with the actual path to your JSON file.
@@ -83,4 +138,4 @@ Replace `path/to/teams.json` with the actual path to your JSON file.
83
138
84
139
To override the default Frontegg authentication endpoint, you can set the `FRONTEGG_AUTH_ENDPOINT` environment variable. If the variable is not set, the default value will be used.
85
140
86
-
To override Jit's API end point, you can set the `JIT_API_ENDPOINT` environment variable. If the variable is not set, the default value will be used.
141
+
To override Jit's API endpoint, you can set the `JIT_API_ENDPOINT` environment variable. If the variable is not set, the default value will be used.
0 commit comments