Add pre-commit hook
This commit is contained in:
parent
aa0dbcba8e
commit
851a600ef7
|
|
@ -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 }}"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue