@@ -13,6 +13,13 @@ _tasks:
1313 - " git checkout -b main"
1414 - " uv sync"
1515 - " uv run pre-commit install"
16+ - " git add --all -- :!branch_protection_rules.json"
17+ - " git commit -m \" chore: initial commit\" "
18+ - command : gh repo create {{ github_username }}/{{ project_github_name }} --source=. --push --private
19+ when : " {{ push_to_github }}"
20+ - command : " gh api --method PUT -H \" Accept: application/vnd.github+json\" repos/{{ github_username }}/{{ project_github_name }}/branches/main/protection --input branch_protection_rules.json"
21+ when : " {{ push_to_github }}"
22+ - rm branch_protection_rules.json
1623
1724# Questions
1825
@@ -29,7 +36,7 @@ author_email:
2936github_username :
3037 type : str
3138 help : GitHub username or organization
32- default : " {{ author_name | lower | replace(' ', '') }} "
39+ default : " XomniaAi "
3340
3441project_name :
3542 type : str
@@ -53,6 +60,11 @@ project_slug:
5360 and underscores only, and it may not start with a digit.
5461 {% endif %}
5562
63+ project_github_name :
64+ type : str
65+ default : " {{ project_slug | lower | replace('_', '-') }}"
66+ when : false
67+
5668project_short_description :
5769 type : str
5870 help : A short description of the project
@@ -81,3 +93,10 @@ include_hexagonal:
8193 adapters layers with an example slice, plus import-linter contracts that
8294 enforce the layer boundaries.
8395 default : true
96+
97+ push_to_github :
98+ type : bool
99+ help : >-
100+ Push the repository to GitHub. Auto-applies standard branch protection rules
101+ standard for trunk-based development. (e.g. one main branch)
102+ default : true
0 commit comments