[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5006":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":16,"starSnapshotCount":16,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},5006,"go-github","google\u002Fgo-github","google","Go library for accessing the GitHub v3 API","https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgoogle\u002Fgo-github\u002Fv85\u002Fgithub",null,"Go",11255,2241,204,38,0,7,51,1,78.6,"BSD 3-Clause \"New\" or \"Revised\" License",false,"master",[25,26,27,28,29],"github","github-api","go","golang","hacktoberfest","2026-06-12 04:00:24","# go-github #\n\n[![go-github release (latest SemVer)](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Fgoogle\u002Fgo-github?sort=semver)](https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fgo-github\u002Freleases)\n[![Go Reference](https:\u002F\u002Fimg.shields.io\u002Fstatic\u002Fv1?label=godoc&message=reference&color=blue)](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgoogle\u002Fgo-github\u002Fv85\u002Fgithub)\n[![Test Status](https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fgo-github\u002Factions\u002Fworkflows\u002Ftests.yml\u002Fbadge.svg?branch=master)](https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fgo-github\u002Factions\u002Fworkflows\u002Ftests.yml)\n[![Test Coverage](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fgoogle\u002Fgo-github\u002Fbranch\u002Fmaster\u002Fgraph\u002Fbadge.svg)](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fgoogle\u002Fgo-github)\n[![Discuss at go-github@googlegroups.com](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdiscuss-go--github%40googlegroups.com-blue.svg)](https:\u002F\u002Fgroups.google.com\u002Fgroup\u002Fgo-github)\n[![CII Best Practices](https:\u002F\u002Fbestpractices.coreinfrastructure.org\u002Fprojects\u002F796\u002Fbadge)](https:\u002F\u002Fbestpractices.coreinfrastructure.org\u002Fprojects\u002F796)\n\ngo-github is a Go client library for accessing the [GitHub API v3][].\n\ngo-github tracks [Go's version support policy][support-policy] supporting any\nminor version of the latest two major releases of Go and the go directive in\ngo.mod reflects that.\nWe do our best not to break older versions of Go if we don't have to, but we\ndon't explicitly test older versions and as of Go 1.23 the go directive in\ngo.mod declares a hard required _minimum_ version of Go to use with this module\nand this _must_ be greater than or equal to the go line of all dependencies so\ngo-github will require the N-1 major release of Go by default.\n\n[support-policy]: https:\u002F\u002Fgolang.org\u002Fdoc\u002Fdevel\u002Frelease.html#policy\n\n## Development\n\nIf you're interested in using the [GraphQL API v4][], the recommended library is\n[shurcooL\u002Fgithubv4][].\n\n## Installation ##\n\ngo-github is compatible with modern Go releases in module mode, with Go installed:\n\n```bash\ngo get github.com\u002Fgoogle\u002Fgo-github\u002Fv85\n```\n\nwill resolve and add the package to the current development module, along with its dependencies.\n\nAlternatively the same can be achieved if you use import in a package:\n\n```go\nimport \"github.com\u002Fgoogle\u002Fgo-github\u002Fv85\u002Fgithub\"\n```\n\nand run `go get` without parameters.\n\nFinally, to use the top-of-trunk version of this repo, use the following command:\n\n```bash\ngo get github.com\u002Fgoogle\u002Fgo-github\u002Fv85@master\n```\n\nTo discover all the changes that have occurred since a prior release, you can\nfirst clone the repo, then run (for example):\n\n```bash\ngo run tools\u002Fgen-release-notes\u002Fmain.go --tag v85.0.0\n```\n\n## Usage ##\n\n```go\nimport \"github.com\u002Fgoogle\u002Fgo-github\u002Fv85\u002Fgithub\"\n```\n\nConstruct a new GitHub client, then use the various services on the client to\naccess different parts of the GitHub API. For example:\n\n```go\nclient := github.NewClient(nil)\n\n\u002F\u002F list all organizations for user \"willnorris\"\norgs, _, err := client.Organizations.List(context.Background(), \"willnorris\", nil)\n```\n\nSome API methods have optional parameters that can be passed. For example:\n\n```go\nclient := github.NewClient(nil)\n\n\u002F\u002F list public repositories for org \"github\"\nopt := &github.RepositoryListByOrgOptions{Type: \"public\"}\nrepos, _, err := client.Repositories.ListByOrg(context.Background(), \"github\", opt)\n```\n\nThe services of a client divide the API into logical chunks and correspond to\nthe structure of the [GitHub API documentation](https:\u002F\u002Fdocs.github.com\u002Fen\u002Frest).\n\nNOTE: Using the [context](https:\u002F\u002Fpkg.go.dev\u002Fcontext) package, one can easily\npass cancellation signals and deadlines to various services of the client for\nhandling a request. In case there is no context available, then `context.Background()`\ncan be used as a starting point.\n\nFor more sample code snippets, head over to the\n[example](https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fgo-github\u002Ftree\u002Fmaster\u002Fexample) directory.\n\n### Authentication ###\n\nUse the `WithAuthToken` method to configure your client to authenticate using an\nOAuth token (for example, a [personal access token][]). This is what is needed\nfor a majority of use cases aside from GitHub Apps.\n\n```go\nclient := github.NewClient(nil).WithAuthToken(\"... your access token ...\")\n```\n\nNote that when using an authenticated Client, all calls made by the client will\ninclude the specified OAuth token. Therefore, authenticated clients should\nalmost never be shared between different users.\n\nFor API methods that require HTTP Basic Authentication, use the\n[`BasicAuthTransport`](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgoogle\u002Fgo-github\u002Fv85\u002Fgithub#BasicAuthTransport).\n\n#### As a GitHub App ####\n\nGitHub Apps authentication can be provided by different pkgs like [bradleyfalzon\u002Fghinstallation](https:\u002F\u002Fgithub.com\u002Fbradleyfalzon\u002Fghinstallation)\nor [jferrl\u002Fgo-githubauth](https:\u002F\u002Fgithub.com\u002Fjferrl\u002Fgo-githubauth).\n\n> **Note**: Most endpoints (ex. [`GET \u002Frate_limit`]) require access token authentication\n> while a few others (ex. [`GET \u002Fapp\u002Fhook\u002Fdeliveries`]) require [JWT] authentication.\n\n[`GET \u002Frate_limit`]: https:\u002F\u002Fdocs.github.com\u002Fen\u002Frest\u002Frate-limit#get-rate-limit-status-for-the-authenticated-user\n[`GET \u002Fapp\u002Fhook\u002Fdeliveries`]: https:\u002F\u002Fdocs.github.com\u002Fen\u002Frest\u002Fapps\u002Fwebhooks#list-deliveries-for-an-app-webhook\n[JWT]: https:\u002F\u002Fdocs.github.com\u002Fen\u002Fdevelopers\u002Fapps\u002Fbuilding-github-apps\u002Fauthenticating-with-github-apps#authenticating-as-a-github-app\n\n`ghinstallation` provides `Transport`, which implements `http.RoundTripper` to provide authentication as an installation for GitHub Apps.\n\nHere is an example of how to authenticate as a GitHub App using the `ghinstallation` package:\n\n```go\nimport (\n\t\"net\u002Fhttp\"\n\n\t\"github.com\u002Fbradleyfalzon\u002Fghinstallation\u002Fv2\"\n\t\"github.com\u002Fgoogle\u002Fgo-github\u002Fv85\u002Fgithub\"\n)\n\nfunc main() {\n\t\u002F\u002F Wrap the shared transport for use with the integration ID 1 authenticating with installation ID 99.\n\titr, err := ghinstallation.NewKeyFromFile(http.DefaultTransport, 1, 99, \"2016-10-19.private-key.pem\")\n\n\t\u002F\u002F Or for endpoints that require JWT authentication\n\t\u002F\u002F itr, err := ghinstallation.NewAppsTransportKeyFromFile(http.DefaultTransport, 1, \"2016-10-19.private-key.pem\")\n\n\tif err != nil {\n\t\t\u002F\u002F Handle error.\n\t}\n\n\t\u002F\u002F Use installation transport with client.\n\tclient := github.NewClient(&http.Client{Transport: itr})\n\n\t\u002F\u002F Use client...\n}\n```\n\n`go-githubauth` implements a set of `oauth2.TokenSource` to be used with `oauth2.Client`. An `oauth2.Client` can be injected into the `github.Client` to authenticate requests.\n\nAnother example using `go-githubauth`:\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"os\"\n\t\"strconv\"\n\n\t\"github.com\u002Fgoogle\u002Fgo-github\u002Fv85\u002Fgithub\"\n\t\"github.com\u002Fjferrl\u002Fgo-githubauth\"\n\t\"golang.org\u002Fx\u002Foauth2\"\n)\n\nfunc main() {\n\tprivateKey := []byte(os.Getenv(\"GITHUB_APP_PRIVATE_KEY\"))\n\n\tappTokenSource, err := githubauth.NewApplicationTokenSource(1112, privateKey)\n\tif err != nil {\n\t\tfmt.Println(\"Error creating application token source:\", err)\n\t\treturn\n\t }\n\n\tinstallationTokenSource := githubauth.NewInstallationTokenSource(1113, appTokenSource)\n\n\t\u002F\u002F oauth2.NewClient uses oauth2.ReuseTokenSource to reuse the token until it expires.\n\t\u002F\u002F The token will be automatically refreshed when it expires.\n\t\u002F\u002F InstallationTokenSource has the mechanism to refresh the token when it expires.\n\thttpClient := oauth2.NewClient(context.Background(), installationTokenSource)\n\n\tclient := github.NewClient(httpClient)\n}\n```\n\n*Note*: In order to interact with certain APIs, for example writing a file to a repo, one must generate an installation token\nusing the installation ID of the GitHub app and authenticate with the OAuth method mentioned above. See the examples.\n\n### Rate Limiting ###\n\nGitHub imposes rate limits on all API clients. The [primary rate limit](https:\u002F\u002Fdocs.github.com\u002Fen\u002Frest\u002Fusing-the-rest-api\u002Frate-limits-for-the-rest-api#about-primary-rate-limits)\nis the limit to the number of REST API requests that a client can make within a\nspecific amount of time. This limit helps prevent abuse and denial-of-service\nattacks, and ensures that the API remains available for all users. Some\nendpoints, like the search endpoints, have more restrictive limits.\nUnauthenticated clients may request public data but have a low rate limit,\nwhile authenticated clients have rate limits based on the client\nidentity.\n\nIn addition to primary rate limits, GitHub enforces [secondary rate limits](https:\u002F\u002Fdocs.github.com\u002Fen\u002Frest\u002Fusing-the-rest-api\u002Frate-limits-for-the-rest-api#about-secondary-rate-limits)\nin order to prevent abuse and keep the API available for all users.\nSecondary rate limits generally limit the number of concurrent requests that a\nclient can make.\n\nThe client returned `Response.Rate` value contains the rate limit information\nfrom the most recent API call. If a recent enough response isn't\navailable, you can use the client `RateLimits` service to fetch the most\nup-to-date rate limit data for the client.\n\nTo detect a primary API rate limit error, you can check if the error is a\n`RateLimitError`.\n\n```go\nrepos, _, err := client.Repositories.List(ctx, \"\", nil)\nvar rateErr *github.RateLimitError\nif errors.As(err, &rateErr) {\n\tlog.Printf(\"hit primary rate limit, used %v of %v\\n\", rateErr.Rate.Used, rateErr.Rate.Limit)\n}\n```\n\nTo detect an API secondary rate limit error, you can check if the error is an\n`AbuseRateLimitError`.\n\n```go\nrepos, _, err := client.Repositories.List(ctx, \"\", nil)\nvar rateErr *github.AbuseRateLimitError\nif errors.As(err, &rateErr) {\n\tlog.Printf(\"hit secondary rate limit, retry after %v\\n\", rateErr.RetryAfter)\n}\n```\n\nIf you hit the primary rate limit, you can use the `SleepUntilPrimaryRateLimitResetWhenRateLimited`\nmethod to block until the rate limit is reset.\n\n```go\nrepos, _, err := client.Repositories.List(context.WithValue(ctx, github.SleepUntilPrimaryRateLimitResetWhenRateLimited, true), \"\", nil)\n```\n\nIf you need to make a request even if the rate limit has been hit you can use\nthe `BypassRateLimitCheck` method to bypass the rate limit check and make the\nrequest anyway.\n\n```go\nrepos, _, err := client.Repositories.List(context.WithValue(ctx, github.BypassRateLimitCheck, true), \"\", nil)\n```\n\nFor more advanced use cases, you can use [gofri\u002Fgo-github-ratelimit](https:\u002F\u002Fgithub.com\u002Fgofri\u002Fgo-github-ratelimit)\nwhich provides a middleware (`http.RoundTripper`) that handles both the primary\nrate limit and secondary rate limit for the GitHub API. In this case you can\nset the client `DisableRateLimitCheck` to `true` so the client doesn't track the rate limit usage.\n\nIf the client is an [OAuth app](https:\u002F\u002Fdocs.github.com\u002Fen\u002Frest\u002Fusing-the-rest-api\u002Frate-limits-for-the-rest-api#primary-rate-limit-for-oauth-apps)\nyou can use the apps higher rate limit to request public data by using the\n`UnauthenticatedRateLimitedTransport` to make calls as the app instead of as\nthe user.\n\n### Accepted Status ###\n\nSome endpoints may return a 202 Accepted status code, meaning that the\ninformation required is not yet ready and was scheduled to be gathered on\nthe GitHub side. Methods known to behave like this are documented specifying\nthis behavior.\n\nTo detect this condition of error, you can check if its type is\n`*github.AcceptedError`:\n\n```go\nstats, _, err := client.Repositories.ListContributorsStats(ctx, org, repo)\nif errors.As(err, new(*github.AcceptedError)) {\n\tlog.Println(\"scheduled on GitHub side\")\n}\n```\n\n### Conditional Requests ###\n\nThe GitHub REST API has good support for [conditional HTTP requests](https:\u002F\u002Fdocs.github.com\u002Fen\u002Frest\u002Fusing-the-rest-api\u002Fbest-practices-for-using-the-rest-api?apiVersion=2022-11-28#use-conditional-requests-if-appropriate)\nvia the `ETag` header which will help prevent you from burning through your\nrate limit, as well as help speed up your application. `go-github` does not\nhandle conditional requests directly, but is instead designed to work with a\ncaching `http.Transport`.\n\nTypically, an [RFC 9111](https:\u002F\u002Fdatatracker.ietf.org\u002Fdoc\u002Fhtml\u002Frfc9111)\ncompliant HTTP cache such as [bartventer\u002Fhttpcache](https:\u002F\u002Fgithub.com\u002Fbartventer\u002Fhttpcache)\nis recommended, ex:\n\n```go\nimport (\n\t\"github.com\u002Fbartventer\u002Fhttpcache\"\n\t_ \"github.com\u002Fbartventer\u002Fhttpcache\u002Fstore\u002Fmemcache\" \u002F\u002F  Register the in-memory backend\n)\n\nclient := github.NewClient(\n\thttpcache.NewClient(\"memcache:\u002F\u002F\"),\n).WithAuthToken(os.Getenv(\"GITHUB_TOKEN\"))\n```\n\nAlternatively, the [bored-engineer\u002Fgithub-conditional-http-transport](https:\u002F\u002Fgithub.com\u002Fbored-engineer\u002Fgithub-conditional-http-transport)\npackage relies on (undocumented) GitHub specific cache logic and is\nrecommended when making requests using short-lived credentials such as a\n[GitHub App installation token](https:\u002F\u002Fdocs.github.com\u002Fen\u002Fapps\u002Fcreating-github-apps\u002Fauthenticating-with-a-github-app\u002Fauthenticating-as-a-github-app-installation).\n\n### Creating and Updating Resources ###\n\nAll structs for GitHub resources use pointer values for all non-repeated fields.\nThis allows distinguishing between unset fields and those set to a zero-value.\nHelper functions have been provided to easily create these pointers for string,\nbool, and int values. For example:\n\n```go\n\u002F\u002F create a new private repository named \"foo\"\nrepo := &github.Repository{\n\tName:    github.Ptr(\"foo\"),\n\tPrivate: github.Ptr(true),\n}\nclient.Repositories.Create(ctx, \"\", repo)\n```\n\nUsers who have worked with protocol buffers should find this pattern familiar.\n\n### Pagination ###\n\nAll requests for resource collections (repos, pull requests, issues, etc.)\nsupport pagination. Pagination options using page numbers are described in the\n`github.ListOptions` struct and passed to the list methods directly or as an\nembedded type of a more specific list options struct (for example\n`github.PullRequestListOptions`). Pages information is available via the\n`github.Response` struct.\n\n```go\nclient := github.NewClient(nil)\n\nopt := &github.RepositoryListByOrgOptions{\n\tListOptions: github.ListOptions{PerPage: 10},\n}\n\u002F\u002F get all pages of results\nvar allRepos []*github.Repository\nfor {\n\trepos, resp, err := client.Repositories.ListByOrg(ctx, \"github\", opt)\n\tif err != nil {\n\t\treturn err\n\t}\n\tallRepos = append(allRepos, repos...)\n\tif resp.NextPage == 0 {\n\t\tbreak\n\t}\n\topt.Page = resp.NextPage\n}\n```\n\nPagination options using string cursors are described in the `github.ListCursorOptions`\nstruct and passed to the list methods directly or as an\nembedded type of a more specific list cursor options struct (for example\n`github.ListGlobalSecurityAdvisoriesOptions`). Similarly, cursor and pages information\nis available via the `github.Response` struct.\n\n#### Iterators ####\n\nGo v1.23 introduces the new `iter` package.\n\nThe new `github\u002Fgen-iterators.go` file auto-generates \"*Iter\" methods in `github\u002Fgithub-iterators.go`\nfor all methods that support page number iteration (using the `NextPage` field in each response)\nor string cursor iteration (using the `After` field in each response).\nTo handle rate limiting issues, make sure to use a rate-limiting transport.\n(See [Rate Limiting](\u002F#rate-limiting) above for more details.)\nTo use these methods, simply create an iterator and then range over it, for example:\n\n```go\nclient := github.NewClient(nil)\nvar allRepos []*github.Repository\n\n\u002F\u002F create an iterator and start looping through all the results\niter := client.Repositories.ListIter(ctx, \"github\", nil)\nfor repo, err := range iter {\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tallRepos = append(allRepos, repo)\n}\n```\n\nAlternatively, if you wish to use an external package, there is `enrichman\u002Fgh-iter`.\nIts iterator will handle pagination for you, looping through all the available results.\n\n```go\nclient := github.NewClient(nil)\nvar allRepos []*github.Repository\n\n\u002F\u002F create an iterator and start looping through all the results\nrepos := ghiter.NewFromFn1(client.Repositories.ListByOrg, \"github\")\nfor repo := range repos.All() {\n\tallRepos = append(allRepos, repo)\n}\n```\n\nFor complete usage of `enrichman\u002Fgh-iter`, see the full [package docs](https:\u002F\u002Fgithub.com\u002Fenrichman\u002Fgh-iter).\n\n#### Middleware ####\n\nYou can use [gofri\u002Fgo-github-pagination](https:\u002F\u002Fgithub.com\u002Fgofri\u002Fgo-github-pagination) to handle\npagination for you. It supports both sync and async modes, as well as customizations.\nBy default, the middleware automatically paginates through all pages, aggregates results, and returns them as an array.\nSee `example\u002Fratelimit\u002Fmain.go` for usage.\n\n### Webhooks ###\n\n`go-github` provides structs for almost all [GitHub webhook events][] as well as functions to validate them and unmarshal JSON payloads from `http.Request` structs.\n\n```go\nfunc (s *GitHubEventMonitor) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tpayload, err := github.ValidatePayload(r, s.webhookSecretKey)\n\tif err != nil { ... }\n\tevent, err := github.ParseWebHook(github.WebHookType(r), payload)\n\tif err != nil { ... }\n\tswitch event := event.(type) {\n\tcase *github.CommitCommentEvent:\n\t\tprocessCommitCommentEvent(event)\n\tcase *github.CreateEvent:\n\t\tprocessCreateEvent(event)\n\t...\n\t}\n}\n```\n\nFurthermore, there are libraries like [cbrgm\u002Fgithubevents][] that build upon the example above and provide functions to subscribe callbacks to specific events.\n\nFor complete usage of go-github, see the full [package docs][].\n\n[GitHub API v3]: https:\u002F\u002Fdocs.github.com\u002Fen\u002Frest\n[personal access token]: https:\u002F\u002Fgithub.com\u002Fblog\u002F1509-personal-api-tokens\n[package docs]: https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgoogle\u002Fgo-github\u002Fv85\u002Fgithub\n[GraphQL API v4]: https:\u002F\u002Fdeveloper.github.com\u002Fv4\u002F\n[shurcooL\u002Fgithubv4]: https:\u002F\u002Fgithub.com\u002FshurcooL\u002Fgithubv4\n[GitHub webhook events]: https:\u002F\u002Fdocs.github.com\u002Fen\u002Fdevelopers\u002Fwebhooks-and-events\u002Fwebhooks\u002Fwebhook-events-and-payloads\n[cbrgm\u002Fgithubevents]: https:\u002F\u002Fgithub.com\u002Fcbrgm\u002Fgithubevents\n\n### Testing code that uses `go-github` ###\n\nThe repo [migueleliasweb\u002Fgo-github-mock](https:\u002F\u002Fgithub.com\u002Fmigueleliasweb\u002Fgo-github-mock) provides a way to mock responses. Check the repo for more details.\n\n### Integration Tests ###\n\nYou can run integration tests from the `test` directory. See the integration tests [README](test\u002FREADME.md).\n\n## Contributing ##\n\nI would like to cover the entire GitHub API and contributions are of course always welcome. The\ncalling pattern is pretty well established, so adding new methods is relatively\nstraightforward. See [`CONTRIBUTING.md`](CONTRIBUTING.md) for details.\n\n## Versioning ##\n\nIn general, go-github follows [semver](https:\u002F\u002Fsemver.org\u002F) as closely as we\ncan for tagging releases of the package. For self-contained libraries, the\napplication of semantic versioning is relatively straightforward and generally\nunderstood. But because go-github is a client library for the GitHub API, which\nitself changes behavior, and because we are typically pretty aggressive about\nimplementing preview features of the GitHub API, we've adopted the following\nversioning policy:\n\n* We increment the **major version** with any incompatible change to\n\tnon-preview functionality, including changes to the exported Go API surface\n\tor behavior of the API.\n* We increment the **minor version** with any backwards-compatible changes to\n\tfunctionality, as well as any changes to preview functionality in the GitHub\n\tAPI. GitHub makes no guarantee about the stability of preview functionality,\n\tso neither do we consider it a stable part of the go-github API.\n* We increment the **patch version** with any backwards-compatible bug fixes.\n\nPreview functionality may take the form of entire methods or simply additional\ndata returned from an otherwise non-preview method. Refer to the GitHub API\ndocumentation for details on preview functionality.\n\n### Calendar Versioning ###\n\nAs of 2022-11-28, GitHub [has announced](https:\u002F\u002Fgithub.blog\u002Fdeveloper-skills\u002Fgithub\u002Fto-infinity-and-beyond-enabling-the-future-of-githubs-rest-api-with-api-versioning\u002F)\nthat they are starting to version their v3 API based on \"calendar-versioning\".\n\nIn practice, our goal is to make per-method version overrides (at\nleast in the core library) rare and temporary.\n\nOur understanding of the GitHub docs is that they will be revving the\nentire API to each new date-based version, even if only a few methods\nhave breaking changes. Other methods will accept the new version with\ntheir existing functionality. So when a new date-based version of the\nGitHub API is released, we (the repo maintainers) plan to:\n\n* update each method that had breaking changes, overriding their\n  per-method API version header. This may happen in one or multiple\n  commits and PRs, and is all done in the main branch.\n\n* once all of the methods with breaking changes have been updated,\n  have a final commit that bumps the default API version, and remove\n  all of the per-method overrides. That would now get a major version\n  bump when the next go-github release is made.\n\n### Version Compatibility Table ###\n\nThe following table identifies which version of the GitHub API is\nsupported by this (and past) versions of this repo (go-github).\nVersions prior to 48.2.0 are not listed.\n\n| go-github Version | GitHub v3 API Version |\n| ----------------- | --------------------- |\n| 85.0.0            | 2022-11-28            |\n| ...               | 2022-11-28            |\n| 48.2.0            | 2022-11-28            |\n\n## License ##\n\nThis library is distributed under the BSD-style license found in the [LICENSE](.\u002FLICENSE)\nfile.\n","google\u002Fgo-github 是一个用于访问 GitHub v3 API 的 Go 语言库。它提供了全面的接口来操作 GitHub 上的各种资源，如用户、组织、仓库等，并且支持 Go 的最新两个主要版本，确保了良好的兼容性与稳定性。该库采用现代化的 Go 模块管理方式，便于开发者在项目中集成使用。适用于需要通过编程方式与 GitHub 进行交互的应用场景，比如自动化脚本、持续集成系统或任何需要从外部控制 GitHub 资源的情况。",2,"2026-06-11 03:02:01","top_language"]