Skip to content

Commit f7f8698

Browse files
committed
Optional code of conduct
1 parent 1d454b0 commit f7f8698

4 files changed

Lines changed: 10 additions & 1 deletion

File tree

copier.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ AddPreCommit:
107107
default: "{{ template_profile != 'minimum' }}"
108108
help: Add pre-commit hook to check code style and format on every commit?
109109

110+
AddCodeConduct:
111+
when: "{{ template_profile == 'ask' }}"
112+
type: bool
113+
default: "{{ template_profile != 'minimum' }}"
114+
help: Add code of conduct?
115+
116+
110117
# internal fields
111118
_subdirectory: template
112119

template/CONTRIBUTING.md.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing guidelines
22

3-
We welcome any kind of contribution to our software, from simple comment or question to a full fledged [pull request](https://help.github.com/articles/about-pull-requests/). Please read and follow our [Code of Conduct](CODE_OF_CONDUCT.md).
3+
We welcome any kind of contribution to our software, from simple comment or question to a full fledged [pull request](https://help.github.com/articles/about-pull-requests/). {% if AddCodeConduct -%}Please read and follow our [Code of Conduct](CODE_OF_CONDUCT.md).{%- endif %}
44

55
A contribution can be one of the following cases:
66

template/project_setup.md.jinja

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,12 @@ help you decide which tool to use for packaging.
100100
- Follow the [making software citable](https://guide.esciencecenter.nl/#/citable_software/making_software_citable) section in the guide.
101101
{%- endif -%}
102102

103+
{% if AddCodeConduct -%}
103104
## CODE_OF_CONDUCT.md
104105

105106
- Information about how to behave professionally
106107
- [Relevant section in the guide](https://guide.esciencecenter.nl/#/best_practices/documentation?id=code-of-conduct)
108+
{%- endif -%}
107109

108110
## CONTRIBUTING.md
109111

template/CODE_OF_CONDUCT.md.jinja renamed to template/{% if AddCodeConduct %}CODE_OF_CONDUCT.md{% endif %}.jinja

File renamed without changes.

0 commit comments

Comments
 (0)