Skip to content

Commit

Permalink
Fix GITHUB_ORG environment variable usage (#161)
Browse files Browse the repository at this point in the history
* Fix GITHUB_ORG environment variable usage

Signed-off-by: peterhalasz <peter.halasz@live.com>

* Fix GITHUB_API_TOKEN documentation

Signed-off-by: peterhalasz <peter.halasz@live.com>

---------

Signed-off-by: peterhalasz <peter.halasz@live.com>
  • Loading branch information
peterhalasz committed Jan 31, 2024
1 parent 431ed93 commit cdfb813
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ make test
```bash
cd example/
export GITHUB_WEBHOOK_TOKEN="..."
export GITHUB_TOKEN="..."
export GITHUB_API_TOKEN="..."
export GITHUB_ORG="..."
docker-compose up --build
```
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var (
ghWebHookPath = kingpin.Flag("web.gh-webhook-path", "Path that will be called by the GitHub webhook.").Default("/gh_event").String()
githubWebhookToken = kingpin.Flag("gh.github-webhook-token", "GitHub Webhook Token.").Envar("GITHUB_WEBHOOK_TOKEN").Default("").String()
gitHubAPIToken = kingpin.Flag("gh.github-api-token", "GitHub API Token.").Envar("GITHUB_API_TOKEN").Default("").String()
gitHubOrg = kingpin.Flag("gh.github-org", "GitHub Organization.").Default("").String()
gitHubOrg = kingpin.Flag("gh.github-org", "GitHub Organization.").Envar("GITHUB_ORG").Default("").String()
gitHubUser = kingpin.Flag("gh.github-user", "GitHub User.").Default("").String()
gitHubBillingPollingSeconds = kingpin.Flag("gh.billing-poll-seconds", "Frequency at which to poll billing API.").Default("5").Int()
)
Expand Down

0 comments on commit cdfb813

Please sign in to comment.