github.com/taylrfnt/nixpkgs-pr-tracker v0.6.0
Creates a new HTTP requestSets HTTP User-Agent header
SHA-2561e32eab78aa3c38dfb5beae240f657fef91e0bd4086b9183b07501a678735db1
MaleculeH₂(Cm₃F)
Evidence
⋯5 lines
8 "fmt"
9 "io"
10 "net/http"
11
12 "go.uber.org/zap"
⋯5 lines
158:29… String("method", method), zap.String("url", url))
159
160 req, err := http.NewRequestWithContext(ctx, method, url, nil)
161 if err != nil {
162 return nil, fmt.Errorf("failed to create request: %w", err)
163 }
164
165 req.Header.Set("Accept", accept)
166 req.Header.Set("User-Agent", "nprt/1.0")
167 if c.Token != "" {
168 req.Header.Set("Authorization", "Bearer "+c.Token)
169 }
170
171 resp, err := c.HTTPClient.Do(req)
172 if err != nil {
173 return nil, fmt.Errorf("network error talking to G …
1.PHONY: build test format-check format vulncheck clean version-bump release-prep man
2
3BINARY_NAME := nprt
4BUILD_DIR := bin
5VERSION_FILE := VERSION
⋯43 lines
⋯4 lines
10 "syscall"
11
12 "go.uber.org/zap"
13
14 "github.com/taylrfnt/nixpkgs-pr-tracker/internal/cli"
15 "github.com/taylrfnt/nixpkgs-pr-track …
10:55… ds.io/github/v/release/thatsneat-dev/nprt?style=for-the-badge&color=C9CBFF&logoColor=D9E0EE&labelColor=302D41" />
11 </a>
12 <a href="https://git …
Showing the top 5 files — 2 more files (4 regions) not shown.
No evidence locations were recorded for this file. Raw result