ユーザーレベルでのコミットコメントの無効化設定が可能に
GitHub が個人アカウント所有のリポジトリに対して、デフォルトでコミットコメントを有効・無効にする設定機能を追加した。これにより、個別リポジトリごとの手動更新なしに、複数リポジトリのコメント動作を一括管理できるようになった。
個人アカウントが所有するリポジトリに対して、コミットコメントをデフォルトで有効にするか無効にするかを現在選択できるようになりました。これにより、各リポジトリを手動で更新することなく、複数の個人リポジトリにわたるコミットコメントの動作をより簡単に管理できます。
ユーザーレベルのリポジトリ設定には、「Commit comments」という新しいセクションが表示され、2 つのオプションがあります:
デフォルトで有効
デフォルトで無効
デフォルトを選択すると、明示的なリポジトリレベルの設定が既に存在しない個人アカウント所有のリポジトリに適用されます。ただし、「個別コミットでのコメントを許可」機能を使用して、個々のリポジトリ内でこのデフォルトを上書きすることは依然として可能です。
すでに明示的なリポジトリレベルの選択を持っているリポジトリは、ユーザーレベルのデフォルトを後から変更した場合でも、その設定を維持します。
「デフォルトで無効」を継承するリポジトリの場合:
コミットページ上のコメントフォームが非表示になります。
インライン差分コメント入力ポイントとインラインスレッド返信が非表示になります。
REST API および GraphQL API を通じたコミットコメントの作成がブロックされます。
既存のコミットコメントは引き続き閲覧、編集、削除可能です。
フィードバックを残す場合は、GitHub Community 内のディスカッションに参加してください。
この投稿「Disable commit comments on the user level」は、The GitHub Blog で最初に公開されました。
原文を表示
You can now choose whether commit comments are enabled or disabled by default for repositories owned by your personal account. This makes it easier to manage commit comment behavior across multiple personal repositories without updating them one by one.
In user-level repository settings, you’ll find a new “Commit comments” section with two options:
Enabled by default
Disabled by default
When you choose a default, it applies to repositories owned by your personal account that don’t already have an explicit repository-level setting. You can still override the default in an individual repository with Allow comments on individual commits.
Repositories that already have an explicit repository-level choice keep that setting, even if you change your user-level default later.
If a repository inherits Disabled by default:
The comment form is hidden on commit pages.
Inline diff comment entry points and inline thread replies are hidden.
Creating commit comments through the REST API and GraphQL API is blocked.
Existing commit comments remain viewable, editable, and deletable.
To leave feedback, join the discussion within GitHub Community.
The post Disable commit comments on the user level appeared first on The GitHub Blog.
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み