Skip to content

Commit a7f5bb4

Browse files
authored
Merge pull request #14 from codeGROOVE-dev/finish-rename
finish rename
2 parents cb431b4 + 9fb8905 commit a7f5bb4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func turnCachePath(urlPath string, updatedAt time.Time) string {
148148

149149
// Simple hash for filename
150150
h := sha256.Sum256([]byte(urlPath + updatedAt.Format(time.RFC3339)))
151-
return filepath.Join(dir, "github-pr-notifier", "turn-cache", hex.EncodeToString(h[:8])+".json")
151+
return filepath.Join(dir, "prs", "turn-cache", hex.EncodeToString(h[:8])+".json")
152152
}
153153

154154
func loadTurnCache(path string) (*turn.CheckResponse, bool) {
@@ -200,7 +200,7 @@ func main() {
200200
// Set up logger
201201
var logger *log.Logger
202202
if *verbose {
203-
logger = log.New(os.Stderr, "[github-pr-notifier] ", log.Ltime)
203+
logger = log.New(os.Stderr, "[prs] ", log.Ltime)
204204
} else {
205205
logger = log.New(io.Discard, "", 0)
206206
}
@@ -369,7 +369,7 @@ func currentUser(ctx context.Context, token string, logger *log.Logger, httpClie
369369

370370
req.Header.Set("Authorization", "token "+token)
371371
req.Header.Set("Accept", "application/vnd.github.v3+json")
372-
req.Header.Set("User-Agent", "github-pr-notifier-cli")
372+
req.Header.Set("User-Agent", "prs-cli")
373373

374374
resp, err := httpClient.Do(req)
375375
if err != nil {
@@ -512,7 +512,7 @@ func makeGitHubSearchRequest(ctx context.Context, query, token string, httpClien
512512

513513
req.Header.Set("Authorization", "token "+token)
514514
req.Header.Set("Accept", "application/vnd.github.v3+json")
515-
req.Header.Set("User-Agent", "github-pr-notifier-cli")
515+
req.Header.Set("User-Agent", "prs-cli")
516516
req.Header.Set("X-Github-Api-Version", "2022-11-28")
517517

518518
start := time.Now()

0 commit comments

Comments
 (0)