Protect main with a ruleset: require CI and drift-check, block force-push

オープン
#218 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github
領域
ci-cd

調査の方向性

Read the repository’s current protection and ruleset state using the main protection and /rulesets endpoints, then identify the CI matrix and drift-check status checks. Configure the main ruleset with the requested pull request, status-check, force-push, and deletion restrictions, retaining the admin bypass; done when failing-CI PRs cannot merge and direct pushes are rejected.

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

説明

ci effort: small impact: medium priority: medium release

Why it matters

Every merge to main triggers release.yml, which tags and publishes to npm and the MCP Registry. main has no protection, so a direct push or a merge with red CI ships to users. #190 covers the release workflow not waiting for CI, and #191 covers action hardening; neither covers repository rules.

Evidence

  • gh api repos/TMHSDigital/screencast-mcp/branches/main/protection returns 404 (not protected).
  • /rulesets is empty.

Suggested approach

Add a ruleset on main:

  • require pull requests
  • require the CI matrix (Ubuntu and Windows) and drift-check to pass
  • block force-pushes and deletion
  • optionally require linear history

Allow an admin bypass for emergencies.

Done when

  • A PR with failing CI cannot be merged.
  • A direct push to main is rejected.
主要言語
TypeScript
スター
1
フォーク
4
平均マージ
14時間 8分
マージ済み PR(30日)
48

環境構築

はじめの一歩

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

TMHSDigital/screencast-mcp のほかの issue

TMHSDigital/screencast-mcp の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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