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

57 Коммитов

Автор SHA1 Сообщение Дата
Chris Gavin 6bebcc22ba
Split out a method for doing a single upload attempt to prevent resource leaks. 2022-06-14 14:54:49 +01:00
Chris Gavin d089cfe8ca
Add some release asset upload retrying. 2022-06-14 14:37:58 +01:00
Chris Gavin 3fd082efd1
Merge main into better-http-errors. 2022-06-14 14:28:53 +01:00
Chris Gavin c4a05147c0
Remove a change meant for another PR. 2022-06-14 14:26:26 +01:00
Chris Gavin 410478b0ed
Fix a typo.
Co-authored-by: Simon Engledew <simon-engledew@github.com>
2022-06-14 14:23:26 +01:00
Chris Gavin 9a5e079539
Include request IDs in errors when available. 2022-05-30 11:26:49 +01:00
Chris Gavin 48a82503ba
Move an error check to a more correct location. 2022-05-30 11:11:46 +01:00
Chris Gavin bd51e343cf
Fix an incorrect log message. 2022-05-28 19:26:30 +01:00
Chris Gavin ed7f204fc5
Fix tags not being resolved before use. 2022-04-26 20:29:57 +01:00
Chris Gavin 53aed4f1d7
Add a counter to show how many bundles have been pushed and how many are left. 2022-04-06 20:32:08 +01:00
Chris Gavin 2e662d4ca0
Merge pull request #65 from github/check-references-exist
Check release references exist in the cache before trying to push them.
2022-04-06 20:31:17 +01:00
Chris Gavin 6ac01ae16c
Merge pull request #64 from github/git-url
Add a hidden push option for specifying the destination Git URL
2022-04-06 20:31:08 +01:00
Chris Gavin a11479ad0a
Remove existing assets if the size does not match. 2022-04-06 17:31:01 +01:00
Chris Gavin 91460340eb
Check release references exist in the cache before trying to push them. 2022-04-06 16:22:08 +01:00
Chris Gavin cf7bdeb785
Add a hidden push option for specifying the destination Git URL. 2022-04-04 12:16:15 +01:00
Chris Gavin c64cb754a1
Add a hidden flag to fetch from an alternative Git source. 2022-03-23 13:45:23 +00:00
Chris Gavin 197081f41d
Merge pull request #57 from github/check-org-membership-api
Use a better API to check organization membership.
2021-03-25 15:44:42 +00:00
Chris Gavin 37eee5fad4
Fix argument order. 2021-03-04 09:54:57 +00:00
Chris Gavin 346185e4bf
Use a better API to check organization membership. 2021-03-02 09:51:06 +00:00
Chris Gavin 1914db52a0
Allow specifying the destination token as an environment variable. 2021-01-20 12:36:15 +00:00
Chris Gavin 52a76d09fc
Apply updates for GitHub AE. 2021-01-18 13:35:41 +00:00
Chris Gavin 7ef8d60209
Fix a cryptic error you get if you use the wrong URL for your GitHub Enterprise Server instance. 2020-12-22 18:00:55 +00:00
Chris Gavin ef02b83f54
Use an impersonation token to push to GitHub Enterprise if pushing directly is not allowed.
Co-authored-by: Simon Engledew <simon-engledew@github.com>
2020-11-12 14:59:30 +00:00
Chris Gavin 993f67a48c
Add an error message for when you don't have write access to the repository you are updating.
Co-authored-by: Simon Engledew <simon-engledew@github.com>
2020-11-12 14:16:27 +00:00
Chris Gavin ad4a06f9bb
Rename `MissingAllScopes` to `HasAnyScope` and invert the logic.
Co-authored-by: Simon Engledew <simon-engledew@github.com>
2020-11-12 14:01:13 +00:00
Chris Gavin b55b51966e
Add a flag to allow for pushing Git contents to GitHub Enterprise over SSH. 2020-10-07 14:04:13 +01:00
Chris Gavin 9ab49c453c
Merge pull request #42 from github/fix-nil-pointer-errors
Fix some nil-pointer dereferences.
2020-08-28 11:56:56 +01:00
Chris Gavin 2ddf49537b
Fix some nil-pointer dereferences. 2020-08-28 11:48:38 +01:00
Chris Gavin 430a8296fa
Remove some unneeded `fmt.Sprintf(...)` calls. 2020-08-28 11:14:01 +01:00
Chris Gavin d888c9f324
Implement reference pruning on push. 2020-08-28 10:49:11 +01:00
Chris Gavin 3d8a044700
Tidy up handling of Git references. 2020-08-28 09:23:31 +01:00
Chris Gavin 04b2b081ef
Implement reference pruning for pulls. 2020-08-27 21:13:36 +01:00
Chris Gavin 45e3152a60
Tidy up the test repositories. 2020-08-27 19:02:28 +01:00
Chris Gavin 3a6d26be01
Make common errors easier to read. 2020-08-25 23:49:15 +01:00
Chris Gavin a4598c20bb
Use Logrus for logging. 2020-08-25 15:20:23 +01:00
Chris Gavin cb31118798
Merge pull request #33 from github/organization-interface
Use the go-github admin interface for creating organizations rather than implementing it manually.
2020-08-25 14:30:18 +01:00
Chris Gavin 172bec5c09
Use the go-github admin interface for creating organizations rather than implementing it manually. 2020-08-25 14:25:15 +01:00
Chris Gavin a4a08e2a87
Reduce the amount of content served from files in tests. 2020-08-25 14:24:52 +01:00
Chris Gavin e732b0cc7d
Merge pull request #31 from github/tests-fix
Fix an issue with the tests where they update a file every time they are run.
2020-08-25 13:50:46 +01:00
Chris Gavin 567dfda748
Fix an issue with the tests where they update a file every time they are run. 2020-08-25 13:33:13 +01:00
Chris Gavin 28b2855f16
Implement a safety check to ensure we're not force-pushing over a non-Action repository. 2020-08-25 13:30:03 +01:00
Chris Gavin 0725f13983
Implement some primitive cache locking. 2020-08-25 12:23:55 +01:00
Chris Gavin 370650097d
Allow providing a token for accessing GitHub.com. 2020-08-25 11:29:42 +01:00
Chris Gavin c27bfadd1f
Add a `licenses` subcommand that prints the licenses of all dependencies. 2020-08-24 17:01:54 +01:00
Chris Gavin f83699ff81
Merge pull request #24 from github/print-version
Print the version of the sync tool whenever it runs.
2020-08-24 15:24:27 +01:00
Chris Gavin 6d06bd3b76
Print the version of the sync tool whenever it runs. 2020-08-24 15:19:22 +01:00
Chris Gavin 5804eab1cc
Fix an issue with trailing path separators in the `--cache-dir` argument. 2020-08-24 14:57:10 +01:00
Chris Gavin 556ea9e527
Implement `push` subcommand. 2020-08-24 12:07:20 +01:00
Chris Gavin dba6c26997
Use the Gorilla Mux router for better routing of mocked GitHub APIs. 2020-08-24 09:59:05 +01:00
Chris Gavin 5c96c5ca3c
Use HTTP status constants in tests. 2020-08-21 14:35:27 +01:00