Commit Graph

18 Commits

Author SHA1 Message Date
MedzikUser 9abefd0460 update 2021-10-27 22:23:51 +02:00
Mike Bird 17cd45ef2c update to go-github v30.1.0 2020-04-09 17:28:13 -07:00
Frederic BIDON 7fc1c7ebec
tidy up unit test
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
2019-12-18 09:49:52 +01:00
Frederic BIDON 63b0fb3fc1
* reverted choice of Option functor and added filters to Config
* moved regexp-base filtering loop upwards (fail early)
* added unit test for asset lookup with or without filters

Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
2019-12-18 09:32:48 +01:00
Jean-Baptiste Farez a3573534f9
Add support to pass custom version to fetch from Github 2018-03-13 09:16:15 +01:00
rhysd a8d7262d70 add tests for GitHub Enterprise more
These tests require GHE environment.
Please set following environment variables:

- $GITHUB_ENTERPRISE_TOKEN
- $GITHUB_ENTERPRISE_BASE_URL
- $GITHUB_ENTERPRISE_REPO
2018-01-19 19:49:45 +09:00
rhysd 89582ba9d1 add more test cases to check invalid GitHub Enterprise base URL 2018-01-19 18:43:29 +09:00
rhysd d0de60fba1 enable to have enterprise base URL and upload URL 2018-01-19 17:47:21 +09:00
rhysd 6b4eeadeb7 download an asset via GitHub Releases API by default 2018-01-19 13:30:23 +09:00
rhysd fd492d6b01 create Updater struct to use persistent GitHub API client also for downloading assets 2018-01-19 11:35:24 +09:00
rhysd 68bce0b4e5 fix tests for checking prefix of tag name 2017-12-31 18:39:24 +09:00
rhysd f6766d9880 add more information to Release struct
- asset's size
- release name
- release time
2017-12-31 17:36:46 +09:00
rhysd 79d641a2f6 add tests for downloading and updating binary 2017-12-30 12:21:23 +09:00
rhysd 0c3940241c tweak fields of Release struct and add docs for them 2017-12-28 17:39:13 +09:00
rhysd b709a54c2d add document URL and description to Release struct 2017-12-27 12:16:26 +09:00
rhysd 7cdec8424f consider draft/prerelease and remember asset URL 2017-12-26 18:45:52 +09:00
rhysd 49bc104362 automatically detect version prefix (and omit it) 2017-12-26 12:04:43 +09:00
rhysd 1124782254 implement logger and DetectLatest() 2017-12-26 11:46:52 +09:00