-
Current GitHub repository https://github.com/eshtukin/go-rest is used for Pull Requests monitoring
-
Twitter account with API access: @goplay25984392
-
Before running the program you have to define 4 environment variables (which are required for access Twitter dev account via API):
TWITTER_CONSUMER_KEY TWITTER_CONSUMER_SECRET TWITTER_ACCESS_TOKEN TWITTER_ACCESS_TOKEN_SECRET
-
Credentials for them are not kept in GitHub, and will be provided separately in twitter.env file using template
<env variable>=<value>
The quickest way to define env variable on Linux is:
>for line in $(cat twitter.env)
On Windows you can create batch file with 4 rows like this:
set <env variable>=<value>
-
For Twitter OAuth authorization 3rd party package github.com/mrjones/oauth is used
-
For symmetry we could use access token authorization on GitHub too (which would allow 5000 requests per hour instead of default 60), but it’s not implemented yet
-
You start the program running command
>go run main.go
The program gathers PRs (either opened after the previous run, or on the first run - all open PRs).
-
The timestamp of current run is kept in the file baseline.txt for future run
-
Unit tests are yet to be written
-
Notifications
You must be signed in to change notification settings - Fork 0
eshtukin/go-rest
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published