gertd
203525c031
pr bug/rest-204 review feedback
2020-04-10 16:48:11 -07:00
gertd
b9f1b5dac1
fix api.REST(DELETE, ...) json.Unmarshal failure
2020-04-09 22:19:28 -07:00
Mislav Marohnić
9c00ac0224
Tweak verbose HTTP logging
...
- log headers only in DEBUG=api mode
- enable color output on stderr
- hide little-useful TLS debbuging info
- ensure all request headers are logged
2020-02-21 12:57:00 +01:00
Henrique Vicente
e7c88d0fb1
impr(verbose): using package httpretty to log requests on DEBUG.
2020-02-21 02:46:18 +01:00
Mislav Marohnić
4f6dfee965
Merge remote-tracking branch 'origin/master' into pr-create-just-works-TM
2020-01-23 14:08:07 +01:00
Mislav Marohnić
0b0fd42ef3
Dump HTTP request/response bodies when DEBUG=api
2020-01-22 19:35:39 +01:00
Mislav Marohnić
7a614ce697
Support triangular git workflows in pr create
...
- The local git remotes are scanned and resolved to GitHub repositories
- The "base" repo is the first result resolved to its parent repo (if a fork)
- The name of the default branch is read from the base repo
- The "head" repo is the first repo that has push access
2020-01-21 18:26:08 +01:00
Corey Johnson
f8f0aa829e
Only run in prod
2019-12-02 15:57:34 -08:00
Corey Johnson
dc91781214
Works with POST
2019-12-02 15:46:57 -08:00
Corey Johnson
1231ddd01c
Add test
2019-12-02 15:08:36 -08:00
Mislav Marohnić
f786802e9e
Customizable API client
2019-10-29 21:07:03 +01:00
Mislav Marohnić
8016d80884
Create overridable Context interface
2019-10-17 02:25:59 +02:00
Mislav Marohnić
12e295e46b
Merge remote-tracking branch 'origin/master' into ghr-context
2019-10-17 02:23:00 +02:00
Corey Johnson
bb2876cf37
Merge branch 'master' into test
2019-10-15 14:21:34 -07:00
Corey Johnson
59ddb5607d
Use func var to override GraphQL calls
2019-10-15 14:19:56 -07:00
nate smith
0600c8c68c
switch to context struct
2019-10-15 13:36:38 -05:00
Corey Johnson
ed4f59fe30
rename v to data
2019-10-11 14:37:28 -07:00
Corey Johnson
2dc521d589
A non-successful response returns early
2019-10-11 14:23:46 -07:00
nate smith
df074046ac
add context.go and move over getToken
2019-10-10 15:39:39 -05:00
Corey Johnson
0f6daa0310
Don't panic
2019-10-09 15:32:41 -07:00
Corey Johnson
3a931ea83e
spacing
2019-10-09 13:15:08 -07:00
Corey Johnson
a35441cb69
Add version
2019-10-09 13:15:03 -07:00
Corey Johnson
b7dda5ef25
tweaks
2019-10-09 11:39:26 -07:00
Corey Johnson
8b69ca3919
Rename package to api
2019-10-09 11:34:35 -07:00