Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Move compatibility for non github.com targets to `github.With<THING>` options

オープン
#4,237 コメント 6 件 リアクション 2 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
go

調査の方向性

まず、デフォルトのクライアント設定、既存の github.WithEnterpriseURLs オプション、および提案で説明されている互換性チェックを確認します。API バージョンと github.com 以外のターゲットが現在どのように設定されているかを追跡します。WithAPIVersion、WithAdvancedServer、WithEnterpriseCloud に提案されている動作が一貫して設計・実装され、非推奨のオプションが処理されていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

I propose that all compatibility functionality not required for the github.com target be removed from the default client setup and only be included via a github.With<THING> option. This (hopefully) would make the default client surface area simpler to understand. The justification for this is that you already need to use github.WithEnterpriseURLs to target non github.com. I propose the following changes to adopt this pattern, with the potential for other capabilities (such as enabling/disabling preview endpoints) to be added later.

  • Default to the latest API version (2026-03-10)
    • Functions that require a specific version now check against the client version and error if not valid
  • Add github.WithAPIVersion to explicitly set a version
    • Set at the client/service level
  • Add github.WithAdvancedServer to enable GHAS support
    • Better validation of inputs
    • Support setting version
    • Add compatibility accordingly
  • Add github.WithEnterpriseCloud to enable GHEC support
    • Better validation of inputs
  • Deprecate github.WithEnterpriseURLs

I'd appreciate any feedback on this proposal.

cc: @gmlewis - @alexandear - @zyfy29 - @Not-Dhananjay-Mishra - @munlicode

主要言語
Go
スター
11.3k
フォーク
2.5k
平均マージ
1日 2時間
マージ済み PR(30日)
41

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

google/go-github のほかの issue

google/go-github の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。