Commit graph

8 commits

Author SHA1 Message Date
Babak K. Shandiz
d129b94fc5
refactor: remove returned resp from api.EndpointNeedsScopes
The returned response from `api.EndpointNeedsScopes` causes `bodyclose`
linter to raise a false positive error, assuming it's a new response that
its body needs to be closed.

Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-11-03 20:05:24 +00:00
Sam Coe
f7930a430b
Dont follow redirects on repo delete (#7106) 2023-03-14 04:38:57 +11:00
Mislav Marohnić
b9c26dfba3 Declare that the delete repo endpoint needs delete_repo scope
The API endpoint doesn't declare this in its `X-Accepted-Oauth-Scopes`
response header.
2021-10-19 19:16:50 +02:00
Meijke
f7b4588d09
scope error handling
Co-authored-by: Mislav Marohnić <mislav@github.com>
2021-10-15 08:35:33 -07:00
meiji163
caa282f0ba commit review suggestions 2021-10-14 21:26:31 -07:00
meiji163
5d433021bd simplify err handling and change flags 2021-10-12 10:16:14 -07:00
meiji163
a8028be8f9 add delete HTTP request and confirmation prompting 2021-10-07 09:53:22 -07:00
meiji163
025f86b911 init commit 2021-10-06 12:49:06 -07:00