Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cog.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# For a reference of possible values: https://docs.cocogitto.io/config/

# A list of glob patterns describing branches on which semver bump are allowed
branch_whitelist = [""]
branch_whitelist = ["main"]

# A list of command to run AFTER creating a version.
# `` will be interpreted as your target version
Expand Down
2 changes: 1 addition & 1 deletion template/cog.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# For a reference of possible values: https://docs.cocogitto.io/config/

# A list of glob patterns describing branches on which semver bump are allowed
branch_whitelist = ["{{ gitdefaultbranch }}"]
branch_whitelist = ["{{ _copier_conf.dst_path | realpath | gitdefaultbranch }}"]

# A list of command to run AFTER creating a version.
# `{{version}}` will be interpreted as your target version
Expand Down
4 changes: 2 additions & 2 deletions template/prek.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ priority = 0

[[repos.hooks]]
id = "no-commit-to-branch"
name = "Block commits to {{ gitdefaultbranch }}"
args = ["--branch", "{{ gitdefaultbranch }}"]
name = "Block commits to {{ _copier_conf.dst_path | realpath | gitdefaultbranch }}"
args = ["--branch", "{{ _copier_conf.dst_path | realpath | gitdefaultbranch }}"]
stages = ["pre-commit", "pre-push"]
priority = 0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: PR Checks

on:
pull_request:
branches: [{{ gitdefaultbranch | default("main") }}]
branches: [{{ _copier_conf.dst_path | realpath | gitdefaultbranch }}]

concurrency:
group: {% raw %}${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}{% endraw %}
Expand Down
Loading