Skip to content

feat(copilot): improved support for AccessToken and Enterprise API #1360

feat(copilot): improved support for AccessToken and Enterprise API

feat(copilot): improved support for AccessToken and Enterprise API #1360

Re-run triggered December 19, 2024 13:09
Status Failure
Total duration 1m 1s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 2 warnings
lint: copilot.go#L137
Error return value of `tokenResp.Body.Close` is not checked (errcheck)
lint: copilot.go#L15
exported: exported const CopilotChatAuthURL should have comment (or a comment on this block) or be unexported (revive)
lint: copilot.go#L20
exported: exported type CopilotAccessToken should have comment or be unexported (revive)
lint: copilot.go#L37
exported: exported type CopilotHTTPClient should have comment or be unexported (revive)
lint: copilot.go#L42
exported: exported function NewCopilotHTTPClient should have comment or be unexported (revive)
lint: copilot.go#L48
exported: exported method CopilotHTTPClient.Do should have comment or be unexported (revive)
lint: mods.go#L360
var-naming: var copilotHttpClient should be copilotHTTPClient (revive)
lint: copilot.go#L53
var-declaration: should omit type bool from declaration of var isTokenExpired; it will be inferred from the right-hand side (revive)
lint
issues found
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/mods/mods. Supported file pattern: go.sum