mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Update README.md for credits_generator (#5065)
This commit is contained in:
parent
0bdaf10a38
commit
17bae0c271
@ -1,11 +1,12 @@
|
|||||||
credits_generator
|
credits_generator
|
||||||
=================
|
=================
|
||||||
|
|
||||||
This tool can be used to update the [Home Assistant's Credits page](https://home-assistant.io/developers/credits/).
|
This tool can be used to update the [Credits page for Home Assistant](https://home-assistant.io/developers/credits/).
|
||||||
|
|
||||||
Setup
|
Setup
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
Fetch the dependencies with `npm`.
|
||||||
```bash
|
```bash
|
||||||
$ cd credits_generator
|
$ cd credits_generator
|
||||||
$ npm install
|
$ npm install
|
||||||
@ -13,8 +14,11 @@ $ npm install
|
|||||||
|
|
||||||
Usage
|
Usage
|
||||||
-----
|
-----
|
||||||
|
Go to https://github.com/settings/tokens/new and generate a new GitHub personal access token.
|
||||||
|
Give the token any name and select the `public_repo` and `read:user` scopes.
|
||||||
|
|
||||||
Set your personal GitHub access token as environmental variable.
|
|
||||||
|
Set the environment variable `GITHUB_TOKEN` to the new token.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ export GITHUB_TOKEN=<Your GitHub access token>
|
$ export GITHUB_TOKEN=<Your GitHub access token>
|
||||||
@ -23,7 +27,6 @@ $ export GITHUB_TOKEN=<Your GitHub access token>
|
|||||||
Run the script.
|
Run the script.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cd credits_generator
|
|
||||||
$ node update_credits.js
|
$ node update_credits.js
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user