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.rst
+21-4Lines changed: 21 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,14 +143,31 @@ Tests
143
143
Data import
144
144
-----------
145
145
146
+
Many data importers use GitHub APIs. For this, first set up value of the ``GH_TOKEN`` environment variable by running :
147
+
148
+
::
149
+
150
+
export GH_TOKEN=yourgithubtoken
151
+
152
+
153
+
See `GitHub docs <https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token>`_ for instructions on how to obtain your GitHub token.
154
+
155
+
156
+
To run all data importers use :
146
157
::
147
158
148
159
DJANGO_DEV=1 python manage.py import --all
149
160
150
-
It is not required to run all the importers . To quickly get started with some data run :
151
-
::
161
+
To list available importers use :
162
+
::
163
+
164
+
DJANGO_DEV=1 python manage.py import --list
165
+
166
+
To run specific importers :
167
+
::
168
+
169
+
DJANGO_DEV=1 python manage.py import rust npm
152
170
153
-
DJANGO_DEV=1 python manage.py import rust ruby
154
171
155
172
If you want to run the import periodically, you can use a systemd timer:
156
173
@@ -210,4 +227,4 @@ For full documentation about API endpoints.
0 commit comments