fix: feat: disinto init should set up branch protection on Forgejo (#10)
This commit is contained in:
parent
01a4248646
commit
83ce8a7981
2 changed files with 126 additions and 1 deletions
|
|
@ -1986,6 +1986,14 @@ p.write_text(text)
|
|||
# Create labels on remote
|
||||
create_labels "$forge_repo" "$forge_url"
|
||||
|
||||
# Set up branch protection on project repo (#10)
|
||||
# This enforces PR flow: no direct pushes, 1 approval required, dev-bot can merge after CI
|
||||
if setup_project_branch_protection "$forge_repo" "$branch"; then
|
||||
echo "Branch protection: project protection configured on ${forge_repo}"
|
||||
else
|
||||
echo "Warning: failed to set up project branch protection" >&2
|
||||
fi
|
||||
|
||||
# Generate VISION.md template
|
||||
generate_vision "$repo_root" "$project_name"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue