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
Copy file name to clipboardExpand all lines: README.md
+32-7Lines changed: 32 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,11 @@ jit-customer-scripts/
37
37
- Git
38
38
39
39
## Generating API Keys
40
-
* To generate Github Personal Access Token(PAT) refer to this [guide](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic)
41
-
* To generate a Jit API Key Go to Settings -> Users & Permissions -> API Tokens in your Jit [dashboard](https://platform.jit.io).
40
+
41
+
* To generate Github Personal Access Token(PAT) refer to
42
+
this [guide](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic)
43
+
* To generate a Jit API Key Go to Settings -> Users & Permissions -> API Tokens in your
44
+
Jit [dashboard](https://platform.jit.io).
42
45
43
46
## Installation
44
47
@@ -88,23 +91,29 @@ make create-teams
88
91
89
92
This command is a convenience utility that extracts the teams to generate from Github topics. \
90
93
It runs these commands:
94
+
91
95
```bash
92
96
python src/utils/github_topics_to_json_file.py
93
97
python src/scripts/create_teams.py teams.json
94
98
```
95
99
96
-
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.
100
+
This command will fetch the repository names and topics from the GitHub API and generate the JSON file. And then it will
101
+
create the teams and update the assets.
97
102
98
103
### Using External JSON File
99
104
100
-
You can also provide a JSON file containing team details using a command line argument directly. The JSON file should have the following structure:
105
+
You can also provide a JSON file containing team details using a command line argument directly. The JSON file should
106
+
have the following structure:
101
107
102
108
```json
103
109
{
104
110
"teams": [
105
111
{
106
112
"name": "Team 1",
107
-
"members": ["user1", "user2"],
113
+
"members": [
114
+
"user1",
115
+
"user2"
116
+
],
108
117
"resources": [
109
118
{
110
119
"type": "{resource_type}",
@@ -118,7 +127,10 @@ You can also provide a JSON file containing team details using a command line ar
0 commit comments