File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
credits_generator
2
2
=================
3
3
4
- This tool can be used to update the [ Home Assistant's Credits page] ( https://home-assistant.io/developers/credits/ ) .
4
+ This tool can be used to update the [ Credits page for Home Assistant ] ( https://home-assistant.io/developers/credits/ ) .
5
5
6
6
Setup
7
7
-----
8
8
9
+ Fetch the dependencies with ` npm ` .
9
10
``` bash
10
11
$ cd credits_generator
11
12
$ npm install
12
13
```
13
14
14
15
Usage
15
16
-----
17
+ Go to https://github.com/settings/tokens/new and generate a new GitHub personal access token.
18
+ Give the token any name and select the ` public_repo ` and ` read:user ` scopes.
16
19
17
- Set your personal GitHub access token as environmental variable.
20
+
21
+ Set the environment variable ` GITHUB_TOKEN ` to the new token.
18
22
19
23
``` bash
20
24
$ export GITHUB_TOKEN=< Your GitHub access token>
@@ -23,7 +27,6 @@ $ export GITHUB_TOKEN=<Your GitHub access token>
23
27
Run the script.
24
28
25
29
``` bash
26
- $ cd credits_generator
27
30
$ node update_credits.js
28
31
```
29
32
You can’t perform that action at this time.
0 commit comments