cmd/relui: add instructions to enable github client in local relui

Change-Id: Ie0aeaad2a2ded04e0a2da5a21b3ba6d8d14a3c30
Reviewed-on: https://go-review.googlesource.com/c/build/+/604115
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Hongxiang Jiang <hxjiang@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
Hongxiang Jiang 2024-08-07 21:00:43 +00:00 коммит произвёл Gopher Robot
Родитель 5139207a37
Коммит ec47a38d2b
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -52,6 +52,18 @@ copy the results to your GCS bucket.
PGHOST=localhost PGDATABASE=relui-dev PGUSER=postgres go run . -listen-http=localhost:8080 -cloud-build-project PROJECT_ID -scratch-files-base gs://GCS_BUCKET_NAME
```
### Enable GitHub Client in your local relui
Use github [token](https://github.com/settings/tokens/new) page to generate a
new access token.
Run relui with additional parameters `-github-token`. The local relui will use
your personal credential to talk to github.
```bash
PGHOST=localhost PGDATABASE=relui-dev PGUSER=postgres go run . -listen-http=localhost:8080 -github-token TOKEN
```
### Updating Queries
Create or edit SQL files in `internal/relui/queries`.