Add pre-commit hook

This commit is contained in:
Robert de Bock 2020-09-02 14:10:11 +02:00
parent aa0dbcba8e
commit 851a600ef7
1 changed files with 2 additions and 1 deletions

View File

@ -169,7 +169,7 @@
copy: copy:
src: "{{ playbook_dir }}/files/{{ item.source }}" src: "{{ playbook_dir }}/files/{{ item.source }}"
dest: "{{ role_path }}/{{ item.dest | default(item.source) }}" dest: "{{ role_path }}/{{ item.dest | default(item.source) }}"
mode: "0644" mode: "{{ item.mode | default('0644') }}"
with_items: with_items:
- source: bug_report.md - source: bug_report.md
dest: .github/ISSUE_TEMPLATE/bug_report.md dest: .github/ISSUE_TEMPLATE/bug_report.md
@ -183,6 +183,7 @@
dest: .github/FUNDING.yml dest: .github/FUNDING.yml
- source: pre-commit - source: pre-commit
dest: .git/hooks/pre-commit dest: .git/hooks/pre-commit
mode: "0755"
loop_control: loop_control:
label: "{{ item.source }}" label: "{{ item.source }}"