Documentation
¶
Overview ¶
Package githubapi provides shared helpers for authenticated GitHub API requests. Both the EIP and consensus-specs fetchers use these helpers to build requests with optional bearer-token auth from GITHUB_TOKEN or GH_TOKEN environment variables.
Index ¶
Constants ¶
View Source
const APIBase = "https://api.github.com"
APIBase is the root URL for the GitHub REST API.
Variables ¶
This section is empty.
Functions ¶
func NewRequest ¶
NewRequest creates an HTTP GET request for the GitHub API. If GITHUB_TOKEN or GH_TOKEN is set, a Bearer authorization header is added automatically.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.