Skip to content

Commit 32d5c28

Browse files
authored
Merge pull request #79 from saltstack-formulas/feat/add-settings
feat(sage-settings): add repo settings to prevent deletion of default branch * and squashing of commits
2 parents 0088f33 + b68b23d commit 32d5c28

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

safe-settings/settings.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
1+
# See https://github.com/github/safe-settings/tree/main-enterprise/docs/sample-settings for example settings
2+
# and https://docs.github.com/en/rest/reference/repos#update-a-repository for
3+
# the GitHub REST API definitions
4+
15
repository:
6+
# As we use `semantic-release` throughout the formulas, which means every
7+
# commit message is important, we disallow squash merging so that commit
8+
# messages are not inadvertently destroyed.
9+
# In addition, Renovate defaults to squash merging unless the repository
10+
# settings disallows it.
11+
allow_squash_merge: false
12+
rulesets:
13+
- name: Prevent destruction of the default branch
14+
target: branch
15+
enforcement: active
16+
conditions:
17+
ref_name:
18+
include:
19+
- ~DEFAULT_BRANCH
20+
exclude: []
21+
rules:
22+
- type: deletion
23+
- type: non_fast_forward
224
topics:
325
- template
426
- salt-formula

0 commit comments

Comments
 (0)