Skip to content

Commit 0fbc818

Browse files
authored
Merge pull request #107 from achianumba/override-contributing-guide-9188
feat: optionally skip the contributing guide #9188
2 parents 6e318a2 + 4abfde8 commit 0fbc818

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

repo.schema.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,14 @@ properties:
346346
enabled:
347347
type: boolean
348348
default: true
349+
350+
omit_files:
351+
type: array
352+
default: []
353+
description: "**EXPERIMENTAL** A list of files to skip during file generation."
354+
items:
355+
type: string
356+
349357
definitions:
350358
section:
351359
type: object

tasks/generate-files.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
template:
5151
src: "./templates/CONTRIBUTING.md.j2"
5252
dest: "{{ repo_path }}/CONTRIBUTING.md"
53+
when: "'CONTRIBUTING.md' not in repo.omit_files"
5354

5455
- name: generate README.md file
5556
ansible.builtin.template:

0 commit comments

Comments
 (0)