defmodule GitGud.Repo.Migrations.AddRequiredApprovals do
use Ecto.Migration
# How many approving reviews a PR needs before it can merge.
#
# Zero means no requirement, which is what every existing repo gets —
# turning the rule on is each repo's decision.
def change do
alter table(:repositories) do
add :required_approvals, :integer, null: false, default: 0
end
end
end
neiam /gitgud
Git Gud
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Packages
⭐
Log in to mark this repository.
402 B · text
History
6280797