Skip to content

Commit 72c85eb

Browse files
committed
Add contributing question
1 parent ee76bec commit 72c85eb

4 files changed

Lines changed: 10 additions & 0 deletions

File tree

copier.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ AddSonarCloud:
120120
default: "{{ template_profile != 'minimum' }}"
121121
help: Add SonarCloud (code analysis service) integration?
122122

123+
AddContributing:
124+
when: "{{ template_profile == 'ask' }}"
125+
type: bool
126+
default: "{{ template_profile != 'minimum' }}"
127+
help: Add contributing guidelines?
128+
123129
# internal fields
124130
_subdirectory: template
125131

template/README.md.jinja

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ python -m pip install .
4848

4949
Include a link to your project's full documentation here.
5050

51+
{% if AddContributing -%}
5152
## Contributing
5253

5354
If you want to contribute to the development of {{ package_name }},
5455
have a look at the [contribution guidelines](CONTRIBUTING.md).
56+
{%- endif %}
5557

5658
## Credits
5759

template/project_setup.md.jinja

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,12 @@ help you decide which tool to use for packaging.
107107
- Information about how to behave professionally
108108
- [Relevant section in the guide](https://guide.esciencecenter.nl/#/best_practices/documentation?id=code-of-conduct)
109109

110+
{% if AddContributing -%}
110111
## CONTRIBUTING.md
111112

112113
- Information about how to contribute to this software package
113114
- [Relevant section in the guide](https://guide.esciencecenter.nl/#/best_practices/documentation?id=contribution-guidelines)
115+
{%- endif %}
114116

115117
## MANIFEST.in
116118

template/CONTRIBUTING.md.jinja renamed to template/{% if AddContribution %}CONTRIBUTING.md{% endif %}.jinja

File renamed without changes.

0 commit comments

Comments
 (0)