Skip to content

Commit

Permalink
feat(pre-commit): add pre-commit.ci section to configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Jun 8, 2022
1 parent 739db37 commit f318978
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
ci:
autofix_commit_msg: |
ci(pre-commit.ci): apply auto fixes from pre-commit.com hooks
For more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ''
autoupdate_commit_msg: |
ci(pre-commit.ci): perform `pre-commit` autoupdate
autoupdate_schedule: weekly
skip: []
submodules: false
default_stages: [commit]
repos:
- repo: https://github.com/dafyddj/commitlint-pre-commit-hook
Expand Down
2 changes: 1 addition & 1 deletion ssf/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ ssf_node_anchors:
upstream: 'upstream'
commit:
# yamllint disable rule:line-length rule:quoted-strings
title: "ci: update '`'pre-commit'`' configuration [skip ci]"
title: "ci: update '`'pre-commit'`' configuration inc. for pre-commit.ci [skip ci]"
body: '* Automated using https://github.com/myii/ssf-formula/pull/450'
# yamllint enable rule:line-length rule:quoted-strings
github:
Expand Down
12 changes: 12 additions & 0 deletions ssf/files/default/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
ci:
autofix_commit_msg: |
ci(pre-commit.ci): apply auto fixes from pre-commit.com hooks
For more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ''
autoupdate_commit_msg: |
ci(pre-commit.ci): perform `pre-commit` autoupdate
autoupdate_schedule: {{ 'weekly' if semrel_formula == 'ssf' else 'quarterly' }}
skip: []
submodules: false
default_stages: [commit]
repos:
- repo: https://github.com/dafyddj/commitlint-pre-commit-hook
Expand Down

0 comments on commit f318978

Please sign in to comment.