Skip to content

Commit 586e101

Browse files
pietroalbiniCentril
authored andcommitted
Integrate with the team repo (#267)
* initialize dotenv during tests to pick up env vars * disable scraping if the envvar is omitted * put the team configuration behind a rwlock * switch from raw hyper to reqwest * allow loading teams from an URL updated every 5 minutes * import users into the database when missing * fix wrong github access token on ci
1 parent e8ddcfc commit 586e101

14 files changed

+765
-329
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ addons:
1818
install:
1919
- export RUST_LOG=debug,hyper=info,rustc=error,cargo=error,jobserver=error
2020
- export GITHUB_WEBHOOK_SECRETS=none
21-
- export GITHUB_ACCESS_TOKEN=none
21+
- export GITHUB_ACCESS_TOKEN=
2222
- export GITHUB_SCRAPE_INTERVAL=6000
2323
- export GITHUB_USER_AGENT=none-agent-with-left-beef
2424
- export POST_COMMENTS=false

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Note that you can configure the Rocket web server using environment variables li
7676
* `GITHUB_USER_AGENT`: the UA string to send to GitHub (they request that you send your GitHub username or the app name you registered for the client ID)
7777
* `GITHUB_WEBHOOK_SECRETS`: a comma-delimited string of the secrets used for any ingestion webhooks. The webhook handler will attempt to validate any POST'd webhook against each secret until it either finds a matching one or runs out.
7878
* `RUST_LOG`: the logging configuration for [env_logger](https://crates.io/crates/env_logger). If you're unfamiliar, you can read about it in the documentation linked on crates.io. If it's not defined, logging will default to `info!()` and above.
79-
* `GITHUB_SCRAPE_INTERVAL`: time (in minutes) to wait in between GitHub scrapes
79+
* `GITHUB_SCRAPE_INTERVAL`: time (in minutes) to wait in between GitHub scrapes (scraping is disabled if this environment variable is omitted)
8080
* `POST_COMMENTS`: whether to post RFC bot comments on issues -- either `true` or `false`. Be very careful setting to true when testing -- it will post comments using whatever account is associated with the GitHub API key you provide.
8181

8282
## Database

0 commit comments

Comments
 (0)