Граф коммитов

47 Коммитов

Автор SHA1 Сообщение Дата
microsoft-github-policy-service[bot] dc2fa78abf
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2023-05-31 18:48:45 +00:00
microsoft-github-policy-service[bot] adcb99dee5
Microsoft mandatory file 2023-01-24 16:42:37 +00:00
Kaarthik Rao Bekal Radhakrishna 64bf2169f1 Fix golint path 2018-10-25 13:40:04 -07:00
Martin Strobel a54e29a6f6 Fixing typo MIRROCAT_GITHUB_AUTH_USERNAME to MIRRORCAT_GITHUB_AUTH_USERNAME 2018-10-10 11:58:29 -07:00
Martin Strobel 427e83d576 Adding explicit "github-auth-username" option
Also cleaning up the way that environment variables are set.
2018-10-10 10:56:13 -07:00
Martin Strobel 5b42c928d6
Reducing the size of the `clone` operation. (#8) 2018-03-06 15:48:24 -08:00
Martin Strobel 44d80ce0a9
Add GitHub auth token (#7)
* Adding read of default identity

* Adding tests, fixing a few residual issues.
2018-01-12 12:28:38 -08:00
Josh Goldberg 8333ff65da Removed Apache header from main.go (#6)
Fixes #5
2017-12-28 07:54:40 -08:00
Martin Strobel 4bac411cd6 README grammar and links. 2017-12-22 13:43:11 -08:00
Martin Strobel 8b203ddef6 Grammar in the README 2017-12-22 10:55:01 -08:00
Martin Strobel 35f857173a Filling-out the README to be a lot more useful. 2017-12-22 10:51:05 -08:00
Martin Strobel 56ccc7e6a4 Moving gopher image attribution. 2017-12-21 15:38:19 -08:00
Martin Strobel 48abb99c1f Improving Cobra usage information.
Namely, adding Arg contraints and improving usage strings.
2017-12-21 15:27:30 -08:00
Martin Strobel ba4e2d5e71 Adding a rudimentary file to deploy to k8s.
This deployment will have no configuration. To make it useful, one may
add the environment MIRRORCAT_REDIS_CONNECTION or another branch mapping
configuration mechanism.
2017-12-21 14:50:14 -08:00
Martin Strobel 266244efab Updating EnvReplacer. 2017-12-21 14:50:14 -08:00
Martin Strobel 909629f831 Adding ConfigMap K8s deploy template 2017-12-21 14:50:14 -08:00
Martin Strobel 320a04f061 More README formatting. 2017-12-21 14:11:29 -08:00
Martin Strobel 6fc5f7c87d Adding README `Contribute` section. 2017-12-21 14:08:34 -08:00
Martin Strobel 8d04084175 README formatting. 2017-12-21 12:31:52 -08:00
Martin Strobel e372715a3e Adding image attribution to README. 2017-12-21 12:27:27 -08:00
Martin Strobel f828eceaff Updating Gopher Logo 2017-12-21 12:18:07 -08:00
Martin Strobel c6232d09fd Fixing race condition in Example 2017-12-21 11:32:04 -08:00
Martin Strobel c24f046621
Add redis mirror finder (#4)
* Intermediate progress.

* Rudimentary Redis Scenario working

* Formatting

* A few things I thought of last night.

* Adding test for RedisFinder_FindMirrors

* Adding license information
2017-12-21 11:06:28 -08:00
Martin Strobel 99a39ce565
Adding MirrorFinder which combines output of two children. (#3)
* Adding a first whack...

but there is some non-determinism that causes occasional failure.

* + MirrorFinder which combines output of two children.

Doing this allows for decoration and merge of multiple MirrorFinders into a single logical one.

* formatting
2017-12-20 13:46:06 -08:00
Martin Strobel d43cf479f2 Updating Commit & Config logic 2017-12-12 13:57:50 -08:00
Martin Strobel f08e3b47c2
Adding a rudimentary Dockerfile (#1)
* Adding rudimentary Dockerfile

* Moving to alpine-based image

* Moving to 2 phase Dockerfile

Doing this reduced the size of the image that will be deployed from >300MB to 31MB.

Also, adding in a "built from commit" tag.

* Adding line exposing the MirrorCat port
2017-12-12 13:11:12 -08:00
Martin Strobel 3c1aeb4162 Making start mirror reading more error tolerant.
This is still far from perfect, but it prevents massive failure upon
there being no config file upon launch.
2017-12-11 10:09:25 -08:00
Martin Strobel c898de9333 Changing github response to include mention of the actual pushes that it made. 2017-12-08 21:57:05 -08:00
Martin Strobel 791889a883 Moving to use `cobra`
Wanting to add a second program that invokes a PushEvent inspired me
to refactor MirrorCat to use `cobra` in addition to `viper`. It allows
MirrorCat to ship as one program with two commands `push` and `start`.
2017-12-08 21:18:51 -08:00
Martin Strobel 870298095b Overhauling mapping branches to one another.
Previously, two branches sharing a name could be tied together across
remotes. With this change, arbitrary branches can be tied together.
2017-12-08 17:00:54 -08:00
Martin Strobel f9a37e9188 Removing refs to `github.com/marstr/randname`
There are some portability concerns with adopting `randname`. Chiefly,
it would mean that dictionaries of words to use for randomness would
need to be dristributed with the mirrorcat executable. Given that we can
achieve the same effect, but with less readable names using `ioutil`,
this change is pretty important.
2017-12-08 11:01:23 -08:00
Martin Strobel 18b5d26048 Updating imports to target new repo 2017-12-08 10:44:52 -08:00
Martin Strobel 7038441869 Have CI report the amount of test coverage 2017-12-07 16:59:40 -08:00
Martin Strobel 776cb93772 Logging tells you the commit that was pushed 2017-12-07 16:58:38 -08:00
Martin Strobel 29e13d1caf Adding NormalizeRef test cases 2017-12-07 15:36:13 -08:00
Martin Strobel 3cb7b094cf Fixing golint infringements 2017-12-07 15:29:24 -08:00
Martin Strobel c169644bac Adding `tee /dev/stderr` to travis `test`s 2017-12-07 15:26:04 -08:00
Martin Strobel 28af46bd2d Updating `test -z` syntax 2017-12-07 15:23:37 -08:00
Martin Strobel 7cc1510d47 Updating `dep` install command 2017-12-07 15:19:34 -08:00
Martin Strobel c418f9ef1a Fixing Travis file name 2017-12-07 15:17:27 -08:00
Martin Strobel 29c0b24516 Adding Travis Badge to the README 2017-12-07 15:16:10 -08:00
Martin Strobel 14be43c13b Adding linting and formatting 2017-12-07 15:00:13 -08:00
Martin Strobel f1a6a10d9e Adding GitHub project related files 2017-12-07 14:54:10 -08:00
Martin Strobel d3f784975c Adding build infrastructure. 2017-12-07 14:54:10 -08:00
Martin Strobel bc983ff9ff Reorganizing to improve test surface. 2017-12-07 14:54:10 -08:00
Martin Strobel fa0b8235f4 First working state 2017-12-07 14:54:10 -08:00
Martin Strobel 7e7d8c139a Initial progress. 2017-12-07 14:53:38 -08:00