servers/src/github/common
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tim Rogers df63442c3c
Include meaningful User-Agent header in requests to the GitHub UI
This adds a custom `User-Agent` header to requests from the
GitHub server to the GitHub API, identifying the application,
the version and key information about the environment.

This aligns with the [recommendations][1] in the GitHub Docs.

As part of this change, I have also moved the current version of
the server into a constant, and fix the initialization of `Server`
to use that version, taking from `package.json`.

[1]: https://docs.github.com/en/rest/using-the-rest-api/getting-started-with-the-rest-api?apiVersion=2022-11-28#user-agent
2025-02-02 15:04:59 +00:00
..
errors.ts feat: add GitHub API error handling utilities 2025-01-13 11:53:22 -08:00
types.ts Merge main: Move to modular structure and add PR functionality 2025-01-14 11:11:41 +00:00
utils.ts Include meaningful User-Agent header in requests to the GitHub UI 2025-02-02 15:04:59 +00:00
version.ts Include meaningful User-Agent header in requests to the GitHub UI 2025-02-02 15:04:59 +00:00