Mislav Marohnić
111e8dbcf2
Pass web browser to each individual command
...
This removes sensitivity to the BROWSER environment variable in tests
and makes it easier to verify the URL that the browser was invoked with
without having to stub sub-processes.
2021-03-19 21:22:37 +01:00
Nate Smith
2ab073d599
Refactor use of glamour to allow style overrides ( #3243 )
...
* Refactor use of glamour to allow style overrides
* leave the things the way they were and just expose the ability to set overrides
2021-03-19 16:29:32 +00:00
Mislav Marohnić
40da8f9c69
Allow retrying HTTP/2 uploads for release assets
...
The `Request.GetBody` func allows the retry mechanism to reopen the file
that's being uploaded as the request body in case the body of the
previous request has already started to be read.
Hopefully fixes the error:
http2: Transport: cannot retry err [stream error: stream ID 1; REFUSED_STREAM]
after Request.Body was written; define Request.GetBody to avoid this error
Ref. d523dce5a7/http2/transport.go (L554)
2021-03-17 15:55:22 +01:00
Mislav Marohnić
e96d974331
Merge pull request #3023 from cli/cancel-error-status
...
Issue/pr create: exit with nonzero status code when "Cancel" was chosen
2021-03-04 13:45:11 +01:00
Mislav Marohnić
2ebdde1ddd
Exit with status code "2" on user cancellation errors
...
This also stops printing "interrupt" after Ctrl-C is pressed.
2021-03-02 13:48:44 +01:00
Mislav Marohnić
fee7adf9ba
Add issue create -F <file> flag and tests
2021-02-23 14:25:32 +01:00
Mislav Marohnić
9dcf47d5d1
release create: clarify handling of git tags
2021-02-03 22:33:37 +01:00
Mislav Marohnić
f46bab256c
Rename to SuccessIconWithColor
2021-01-25 14:56:39 +01:00
Mislav Marohnić
23d68705bc
Match color of the success icon with the end state of the record
2021-01-22 23:55:33 +01:00
Mislav Marohnić
5b4a08dcb9
Ensure that only PATH is searched when shelling out to external commands
...
Works around https://github.com/golang/go/issues/38736 for Windows.
2020-11-11 16:33:13 +01:00
Cristian Dominguez
fa8674386b
Render links as absolute URLs in repo view ( #2363 )
...
Co-authored-by: Cristian Dominguez <cristiand391@users.noreply.github.com>
2020-11-11 13:13:19 +01:00
Alisson Santos
cf617e88f4
Extract repeated code to util function
2020-11-03 22:05:04 +01:00
Alisson Santos
7a106e2ded
improve error message
2020-11-03 18:46:07 +01:00
Mislav Marohnić
813fbc9b8d
Ensure that we don't reuse the same deserialization struct over pagination iterations
...
This is to avoid subtle deserialization issues in nested slices.
2020-10-14 15:38:21 +02:00
Sam Coe
f0d4fbf84f
Address PR comments around style and naming
2020-09-24 19:27:29 +02:00
Sam Coe
ed4075517c
Check for terminal background color before starting pager
2020-09-24 13:06:28 +02:00
Morten Linderud
c9b9478b5c
shared/upload: Add .tar format
...
Currently the mimecap package is an requirement to pass the test suite,
as we need /etc/mime.types to recognize the tar extension. A better idea
is to inline all of the basic test cases for the test suite.
Signed-off-by: Morten Linderud <morten@linderud.pw>
2020-09-17 17:55:25 +02:00
Mislav Marohnić
50d5813182
Indicate that title is optional in release create
2020-09-09 17:45:55 +02:00
Mislav Marohnić
1ce61d4b80
Allow specifying multiple patterns in release download
2020-09-09 17:36:49 +02:00
Mislav Marohnić
7614ffee30
Add docs to release create/upload
2020-09-09 17:36:25 +02:00
Mislav Marohnić
202d11146d
Add success message to release upload
2020-09-09 17:09:49 +02:00
Mislav Marohnić
3d58fa785f
Add the release view --web flag
2020-09-09 17:01:29 +02:00
Mislav Marohnić
a470d49c64
Fix reporting release URL when creating with assets
2020-09-03 16:06:28 +02:00
Mislav Marohnić
1ad9b0b14e
Have FindDraftRelease be truer to its name
2020-09-03 15:35:07 +02:00
Mislav Marohnić
d4b45c68e2
Allow downloading assets from the latest release
2020-09-03 15:34:10 +02:00
Mislav Marohnić
151a7340a6
Fix .zip and .js overrides for Windows
2020-09-03 11:44:54 +02:00
Mislav Marohnić
02a057a709
Try fixing Windows tests
2020-09-02 22:11:46 +02:00
Mislav Marohnić
4976bd75e1
Fix date-based release output and tests
2020-09-01 19:09:10 +02:00
Mislav Marohnić
0f42c7af4d
Add tests for release create, delete, download, view
2020-09-01 18:56:30 +02:00
Mislav Marohnić
9ef1791fdb
Provide machine-readable release view output
2020-09-01 15:23:43 +02:00
Mislav Marohnić
d0d9cc2f9b
View latest release if no tag provided
2020-09-01 14:16:59 +02:00
Mislav Marohnić
9b45112e69
Add tests for release list/delete
2020-08-28 19:26:16 +02:00
Mislav Marohnić
d43d5e0bc9
Add release delete
2020-08-28 17:41:00 +02:00
Mislav Marohnić
9829a4dc84
Update release list output to contain badges
2020-08-25 20:33:54 +02:00
Mislav Marohnić
f7d0988799
Offer different editor modes during release create
2020-08-25 20:20:44 +02:00
Mislav Marohnić
4f6021a56d
Add interactive flow for release create
2020-08-21 18:27:58 +02:00
Mislav Marohnić
a00d927970
Add release download, upload files on create, upload retrying
2020-08-21 18:00:52 +02:00
Mislav Marohnić
4e05db97e4
Add release upload command
2020-08-20 17:59:47 +02:00
Mislav Marohnić
c4f5d6db58
Preliminary gh release commands
2020-08-19 18:25:02 +02:00